# image-campus-2025-trayecto-godot/clase-13 architecture

> Architecture diagram of the GitHub repository image-campus-2025-trayecto-godot/clase-13, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/image-campus-2025-trayecto-godot/clase-13
- Repository: https://github.com/image-campus-2025-trayecto-godot/clase-13

## Overview

##### Project type and purpose
- This is a 2D platformer game built with the Godot Engine.
- There is no server or database; it is a standalone game application.
- Key features: scene-based game elements (player, enemies, props), UI screens (menus, levels, HUD), global managers, resource packs (Kenney assets), and two Godot plugins (ruake REPL and slides).

##### File structure
- Top-level folders:
- addons/ruake and addons/slides – in-editor plugins (REPL, presentation slides)
- assets/… – imported audio and graphics from Kenney asset packs
- globals/ – singleton scenes and scripts (GameState, LevelManager)
- resources/ – .tres files for themes, tilesets, label settings
- scenes/ – all game scenes, subdivided into game_elements/enemies/props, hud, screens (levels, menus), ui
- Configuration files: project.godot, game_settings.gd, plugin.cfg in each addon
- Build/deployment: handled by Godot’s export system (no custom scripts)

##### README
- (Empty in this case; structure implies Godot conventions)
- Plugins are standard Godot addons; no additional architecture notes.

##### Diagramming conventions
- “Engine loads → Global Singleton”
- “LevelManager triggers → Level Scene”
- “Player interacts → Physics Engine”
- “Scenes request → Asset/Resource”
- Game logic (scenes, singletons) in another (e.g., green)
- Plugins in a third (e.g., orange)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Core
    subgraph "Godot Engine Core"
        direction TB
        Engine["Godot Engine Core"]:::core
        Physics["Physics Engine"]:::core
    end

    %% Addons
    subgraph "Addons Layer"
        direction TB
        Ruake["Ruake REPL Plugin"]:::plugin
        Slides["Slides Plugin"]:::plugin
    end

    %% Global Singletons
    subgraph "Global Singletons"
        direction TB
        GameState["GameState (autoloader)"]:::logic
        LevelManager["LevelManager (autoloader)"]:::logic
        GameSettings["GameSettings Resource"]:::resource
    end

    %% Game Scenes
    subgraph "Game Scenes"
        direction TB
        subgraph "Game Elements"
            direction TB
            Player["Player Scene + Script"]:::logic
            EnemyBee["Bee Enemy"]:::logic
            EnemyPath["Path-follow Enemy"]:::logic
            Slime["Slime Enemy"]:::logic
            Spawner["Enemy Spawner"]:::logic
            subgraph "Props"
                direction TB
                Coin["Collectible Coin"]:::logic
                CoinEffect["Coin Collected Effect"]:::logic
                Goal["Goal Prop"]:::logic
            end
        end
        subgraph "UI"
            direction TB
            HUD["Scoreboard HUD"]:::logic
            PauseMenu["Pause Menu"]:::logic
        end
        subgraph "Screens"
            direction TB
            subgraph "Menus"
                direction TB
                MainMenu["Main Menu"]:::logic
                LevelSelector["Level Selector"]:::logic
                Settings["Settings Menu"]:::logic
            end
            subgraph "Levels"
                direction TB
                Level1["Level 1 Scene"]:::logic
                Level2["Level 2 Scene"]:::logic
                Level3["Level 3 Scene"]:::logic
            end
        end
    end

    %% Assets & Resources
    subgraph "Assets & Resources"
        direction TB
        Graphics["Kenney Platformer Pack"]:::resource
        UIAssets["Kenney UI Pack"]:::resource
        Themes["Themes & Tilesets (.tres)"]:::resource
    end

    %% Connections
    Engine -->|registers| Ruake
    Engine -->|registers| Slides
    Engine -->|autoloads| GameState
    Engine -->|autoloads| LevelManager
    Engine -->|loads| GameSettings
    Engine -->|loads| Player
    Engine -->|loads| EnemyBee
    Engine -->|loads| EnemyPath
    Engine -->|loads| Slime
    Engine -->|loads| Spawner
    Engine -->|loads| Coin
    Engine -->|loads| CoinEffect
    Engine -->|loads| Goal
    Engine -->|loads| HUD
    Engine -->|loads| PauseMenu
    Engine -->|loads| MainMenu
    Engine -->|loads| LevelSelector
    Engine -->|loads| Settings
    Engine -->|loads| Level1
    Engine -->|loads| Level2
    Engine -->|loads| Level3

    Player -->|collides| Physics
    EnemyBee -->|collides| Physics
    EnemyPath -->|collides| Physics
    Slime -->|collides| Physics

    Player -->|requests| Graphics
    Player -->|requests| UIAssets
    EnemyBee -->|requests| Graphics
    Slime -->|requests| Graphics

    HUD -->|reads| GameState
    HUD -->|reads| LevelManager
    PauseMenu -->|reads| GameState

    LevelManager -->|controls| Level1
    LevelManager -->|controls| Level2
    LevelManager -->|controls| Level3

    Player -->|uses theme| Themes
    MainMenu -->|uses theme| Themes
    LevelSelector -->|uses theme| Themes
    Settings -->|uses theme| Themes

    %% Click Events
    click Engine "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/project.godot"
    click Ruake "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/addons/ruake/plugin.cfg"
    click Ruake "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/addons/ruake/plugin.gd"
    click Slides "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/addons/slides/plugin.cfg"
    click Slides "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/addons/slides/slides_plugin.gd"
    click GameState "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/globals/GameState.tscn"
    click GameState "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/globals/game_state.gd"
    click LevelManager "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/globals/LevelManager.tscn"
    click LevelManager "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/globals/level_manager.gd"
    click GameSettings "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/resources/game_settings.tres"
    click GameSettings "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/game_settings.gd"
    click Graphics "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/assets/kenney_new-platformer-pack-1.0"
    click UIAssets "https://github.com/image-campus-2025-trayecto-godot/clase-13/tree/main/assets/kenney_ui-pack"
    click Themes "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/resources/menu_theme.tres"
    click Themes "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/resources/tileset.tres"
    click Themes "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/resources/title_label_settings.tres"
    click Player "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/player/player.tscn"
    click Player "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/player/player.gd"
    click EnemyBee "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/bee/bee.tscn"
    click EnemyBee "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/bee/bee.gd"
    click EnemyPath "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/enemy_that_follows_path/enemy_that_follows_path.tscn"
    click EnemyPath "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/enemy_that_follows_path/enemy_that_follows_path.gd"
    click Slime "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/slime/slime.tscn"
    click Slime "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/slime/slime.gd"
    click Spawner "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/enemies/enemy_spawner.gd"
    click Coin "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/collectibles/coin.tscn"
    click Coin "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/collectibles/coin.gd"
    click CoinEffect "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/collectibles/coin_collected_effect.tscn"
    click CoinEffect "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/collectibles/coin_collected_effect.gd"
    click Goal "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/goal/goal.tscn"
    click Goal "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/game_elements/props/goal/goal.gd"
    click HUD "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/hud/scoreboard.gd"
    click PauseMenu "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/ui/Pause.tscn"
    click PauseMenu "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/ui/pause.gd"
    click MainMenu "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/main_menu/MainMenu.tscn"
    click MainMenu "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/main_menu/main_menu.gd"
    click LevelSelector "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/level_selector/level_selector.tscn"
    click LevelSelector "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/level_selector/level_selector.gd"
    click Settings "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/settings/Settings.tscn"
    click Settings "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/menues/settings/settings.gd"
    click Level1 "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/levels/level_1.tscn"
    click Level2 "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/levels/level_2.tscn"
    click Level3 "https://github.com/image-campus-2025-trayecto-godot/clase-13/blob/main/scenes/screens/levels/level_3.tscn"

    %% Styles
    classDef core fill:#AED6F1,stroke:#1F618D
    classDef plugin fill:#F5B041,stroke:#B9770E
    classDef logic fill:#58D68D,stroke:#196F3D
    classDef resource fill:#D5DBDB,stroke:#616A6B
```
