# ztamagoru/programacion2-mariaz architecture

> Architecture diagram of the GitHub repository ztamagoru/programacion2-mariaz, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ztamagoru/programacion2-mariaz
- Repository: https://github.com/ztamagoru/programacion2-mariaz

## Overview

This appears to be a Godot platform game: its tree contains a level, a player with movement and combat states, enemies and projectiles, collectibles, effects, a HUD, and save/global services. The principal workflow is suggested by those components, but no README or source excerpts document runtime calls or scene wiring. The graph therefore preserves the visible product areas without asserting unverified connections; paths identify the available implementation files.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player control"]
  node_player_controller["Player controller<br/>[player.gd]"]
  node_player_scene["Player scene<br/>[player.tscn]"]
  node_state_base["State base<br/>[state.gd]"]
  node_state_machine["State machine<br/>[state_machine.gd]"]
  node_idle_state["Idle state<br/>[idle.gd]"]
  node_running_state["Running state<br/>[running.gd]"]
  node_jump_state["Jump state<br/>[jump.gd]"]
  node_falling_state["Falling state<br/>[falling.gd]"]
  node_attack_state["Attack state<br/>[attack.gd]"]
end

subgraph group_world["Level and combat"]
  node_level["Level 0<br/>[nivel_0.gd]"]
  node_level_scene["Level scene<br/>[nivel0.tscn]"]
  node_enemy_base["Enemy base<br/>[enemy.gd]"]
  node_flying_enemy["Flying enemy<br/>[flying_enemy.gd]"]
  node_shooting_enemy["Shooting enemy<br/>[shooting_enemy.gd]"]
  node_enemy_projectile["Enemy projectile"]
  node_projectile["Projectile<br/>[projectile.gd]"]
end

subgraph group_items["Collectibles and effects"]
  node_collectibles["Collectible behavior<br/>[collectibles.gd]"]
  node_small_coin["Small coin<br/>[small_coin.gd]"]
  node_mid_coin["Mid coin<br/>[mid_coin.gd]"]
  node_potion["Potion<br/>[potion.gd]"]
  node_double_jump["Double jump<br/>[double_jump.gd]"]
  node_vfx["Effect base<br/>[vfx.gd]"]
  node_hp_vfx["Health effect<br/>[hp_vfx.gd]"]
  node_money_vfx["Money effect<br/>[money_vfx.gd]"]
end

subgraph group_services["UI and services"]
  node_hud["HUD<br/>[hud.gd]"]
  node_save_manager["Save manager<br/>[save_manager.gd]"]
  node_globals["Global state<br/>[globals.gd]"]
end

click node_level "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/nivel_0.gd"
click node_level_scene "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/nivel0.tscn"
click node_player_controller "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/player.gd"
click node_player_scene "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/player.tscn"
click node_state_base "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/FSM/state.gd"
click node_state_machine "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/FSM/state_machine.gd"
click node_idle_state "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/idle.gd"
click node_running_state "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/running.gd"
click node_jump_state "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/jump.gd"
click node_falling_state "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/falling.gd"
click node_attack_state "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/attack.gd"
click node_enemy_base "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/enemy.gd"
click node_flying_enemy "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/flying%20enemy/flying_enemy.gd"
click node_shooting_enemy "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/shooting%20enemy/shooting_enemy.gd"
click node_enemy_projectile "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/projectiles/enemy_projectile.gd"
click node_projectile "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/projectiles/projectile.gd"
click node_collectibles "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/collectibles.gd"
click node_small_coin "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/small_coin.gd"
click node_mid_coin "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/mid_coin.gd"
click node_potion "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/potion.gd"
click node_double_jump "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/double_jump.gd"
click node_vfx "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/vfx.gd"
click node_hp_vfx "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/hp_vfx.gd"
click node_money_vfx "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/money_vfx.gd"
click node_hud "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/ui/hud/hud.gd"
click node_save_manager "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/save%20manager/save_manager.gd"
click node_globals "https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/globals/globals.gd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_player_controller,node_player_scene,node_state_base,node_state_machine,node_idle_state,node_running_state,node_jump_state,node_falling_state,node_attack_state toneBlue
class node_level,node_level_scene,node_enemy_base,node_flying_enemy,node_shooting_enemy,node_enemy_projectile,node_projectile toneAmber
class node_collectibles,node_small_coin,node_mid_coin,node_potion,node_double_jump,node_vfx,node_hp_vfx,node_money_vfx toneMint
class node_hud,node_save_manager,node_globals toneRose
```

## Components

### Player control

- [Player controller](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/player.gd): `scripts/characters/player.gd`
- [Player scene](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/player.tscn): `scripts/characters/player.tscn`
- [State base](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/FSM/state.gd): `scripts/FSM/state.gd`
- [State machine](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/FSM/state_machine.gd): `scripts/FSM/state_machine.gd`
- [Idle state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/idle.gd): `scripts/characters/states/idle.gd`
- [Running state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/running.gd): `scripts/characters/states/running.gd`
- [Jump state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/jump.gd): `scripts/characters/states/jump.gd`
- [Falling state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/falling.gd): `scripts/characters/states/falling.gd`
- [Attack state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scripts/characters/states/attack.gd): `scripts/characters/states/attack.gd`

### Level and combat

- [Level 0](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/nivel_0.gd): `scenes/nivel_0.gd`
- [Level scene](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/nivel0.tscn): `scenes/nivel0.tscn`
- [Enemy base](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/enemy.gd): `scenes/components/enemies/enemy.gd`
- [Flying enemy](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/flying%20enemy/flying_enemy.gd): `scenes/components/enemies/flying enemy/flying_enemy.gd`
- [Shooting enemy](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/enemies/shooting%20enemy/shooting_enemy.gd): `scenes/components/enemies/shooting enemy/shooting_enemy.gd`
- [Enemy projectile](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/projectiles/enemy_projectile.gd): `scenes/components/projectiles/enemy_projectile.gd`
- [Projectile](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/projectiles/projectile.gd): `scenes/components/projectiles/projectile.gd`

### Collectibles and effects

- [Collectible behavior](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/collectibles.gd): `scenes/components/collectibles/collectibles.gd`
- [Small coin](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/small_coin.gd): `scenes/components/collectibles/small_coin.gd`
- [Mid coin](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/mid_coin.gd): `scenes/components/collectibles/mid_coin.gd`
- [Potion](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/potion.gd): `scenes/components/collectibles/potion.gd`
- [Double jump](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/collectibles/double_jump.gd): `scenes/components/collectibles/double_jump.gd`
- [Effect base](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/vfx.gd): `scenes/components/effects/vfx.gd`
- [Health effect](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/hp_vfx.gd): `scenes/components/effects/hp_vfx.gd`
- [Money effect](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/effects/money_vfx.gd): `scenes/components/effects/money_vfx.gd`

### UI and services

- [HUD](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/ui/hud/hud.gd): `scenes/components/ui/hud/hud.gd`
- [Save manager](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/save%20manager/save_manager.gd): `scenes/components/save manager/save_manager.gd`
- [Global state](https://github.com/ztamagoru/programacion2-mariaz/blob/main/scenes/components/globals/globals.gd): `scenes/components/globals/globals.gd`
