# daveagill/gamutofblob architecture

> Architecture diagram of the GitHub repository daveagill/gamutofblob, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/daveagill/gamutofblob
- Repository: https://github.com/daveagill/gamutofblob

## Overview

##### Component Relationships

a) Core Flow:
- DesktopLauncher → StandardGameApp → WoAGame
- WoAGame ↔ GameState implementations
- GameState implementations ↔ World

b) Service Dependencies:
- RenderService
- JukeboxService
- Resource Managers

##### Specific Implementation Details

a) Game State Management:
- Relationships between different states:
- StartScreenState
- PlayGameState
- DialogState
- FinalStageState
- ShadowAndButtonState

b) World Components:
- Level
- Blob
- Tile
- WorldEvents
- Grid System

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Framework
        SGA[StandardGameApp]
        Services[Services]
        GameState[GameState]
        RM[Resource Managers]
        
        subgraph ResourceManagers
            GR[Graphics Resources]
            SR[Sound Resources]
        end
        
        RM --> GR
        RM --> SR
    end
    
    subgraph GameComponents
        WoA[WoAGame]
        
        subgraph GameStates
            SSS[Start Screen State]
            PGS[Play Game State]
            DS[Dialog State]
            FSS[Final Stage State]
            SBS[Shadow Button State]
        end
        
        subgraph WorldSystem
            World[World]
            Level[Level]
            LevelLoader[Level Loader]
        end
        
        GameRenderer[Game Renderer]
    end
    
    subgraph Services
        RS[Render Service]
        JS[Jukebox Service]
    end
    
    subgraph Assets
        Fonts[Fonts]
        Music[Music]
        SFX[Sound Effects]
        LevelData[Level Data]
    end
    
    DL[Desktop Launcher]
    
    %% Core Flow
    DL --> SGA
    SGA --> WoA
    WoA --> GameStates
    GameStates --> World
    
    %% Service Dependencies
    Services <--> RS
    Services <--> JS
    Services <--> RM
    
    %% Asset Dependencies
    Assets --> RM
    World --> LevelLoader
    LevelLoader --> LevelData
    
    %% Rendering Flow
    GameRenderer --> World
    RS --> GameRenderer
    
    %% Audio Flow
    JS --> Music
    JS --> SFX
    
    classDef framework fill:#b3d9ff
    classDef game fill:#90EE90
    classDef assets fill:#FFE5B4
    classDef services fill:#FFB6C1
    
    class SGA,Services,GameState,RM,GR,SR framework
    class WoA,World,Level,LevelLoader,GameRenderer,SSS,PGS,DS,FSS,SBS game
    class Fonts,Music,SFX,LevelData assets
    class RS,JS services
    
    %% Click Events
    click SGA "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/StandardGameApp.java"
    click Services "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/Services.java"
    click GameState "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/GameState.java"
    click GR "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/GraphicsResources.java"
    click SR "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/SoundResources.java"
    click WoA "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/WoAGame.java"
    click SSS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/StartScreenState.java"
    click PGS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/PlayGameState.java"
    click DS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/DialogState.java"
    click FSS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/FinalStageState.java"
    click SBS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/ShadowAndButtonState.java"
    click World "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/World.java"
    click Level "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/Level.java"
    click LevelLoader "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/LevelLoader.java"
    click GameRenderer "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/game/GameRenderer.java"
    click Fonts "https://github.com/daveagill/GamutOfBlob/tree/master/core/assets/fonts/"
    click Music "https://github.com/daveagill/GamutOfBlob/tree/master/core/assets/music/"
    click SFX "https://github.com/daveagill/GamutOfBlob/tree/master/core/assets/sfx/"
    click LevelData "https://github.com/daveagill/GamutOfBlob/blob/master/core/assets/level*.txt"
    click DL "https://github.com/daveagill/GamutOfBlob/blob/master/desktop/src/week/of/awesome/desktop/DesktopLauncher.java"
    click JS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/JukeboxService.java"
    click RS "https://github.com/daveagill/GamutOfBlob/blob/master/core/src/week/of/awesome/framework/RenderService.java"
```
