# toledosq/godot_zombies architecture

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

- Interactive diagram: https://gitdiagram.com/toledosq/godot_zombies
- Repository: https://github.com/toledosq/godot_zombies

## Overview

This is a deprecated Godot game prototype, with player movement and combat, enemies, inventory and item handling, world interaction, menus, and HUD capabilities documented in the README. The tree identifies corresponding scripts and scenes, but the only sampled source is a standalone CSV-to-JSON importer; runtime call relationships therefore cannot be verified. The graph preserves the major product areas without asserting connections between them. Paths for unsampled features point to existing implementation directories or files; the importer is shown separately.

Main entry points: [`scripts/characters/player.gd`](https://github.com/toledosq/godot_zombies/blob/main/scripts/characters/player.gd) (Player)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_gameplay["Gameplay"]
  node_player["Player<br/>[player.gd]"]
  node_controller["Player Control"]
  node_combat["Combat"]
  node_enemy["Enemy AI<br/>[basic_enemy.gd]"]
end

subgraph group_items["Items and Inventory"]
  node_itemdata["Item Definitions"]
  node_itemlibrary["Item Library<br/>[item_library.gd]"]
  node_inventory["Inventory<br/>[inventory.gd]"]
  node_importer["CSV Importer<br/>[csv_to_json.py]"]
end

subgraph group_world["World and State"]
  node_interaction["Interaction"]
  node_containers["Containers"]
  node_worldmanager["World Management<br/>[world_manager.gd]"]
  node_gamestate["Game State"]
  node_save["Save and Load<br/>[save_manager.gd]"]
end

subgraph group_interface["Interface"]
  node_mainmenu["Main Menu<br/>[main_menu.gd]"]
  node_hud["HUD<br/>[player_hud.gd]"]
  node_inventoryui["Inventory UI<br/>[inventory_ui.gd]"]
  node_contextmenu["Context Menu<br/>[context_menu.gd]"]
end

node_actor(("Player"))

node_actor -.->|"controls"| node_player

click node_player "https://github.com/toledosq/godot_zombies/blob/main/scripts/characters/player.gd"
click node_controller "https://github.com/toledosq/godot_zombies/blob/main/scripts/components/player_controller.gd"
click node_combat "https://github.com/toledosq/godot_zombies/blob/main/scripts/components/combat_component.gd"
click node_enemy "https://github.com/toledosq/godot_zombies/blob/main/scripts/characters/basic_enemy.gd"
click node_interaction "https://github.com/toledosq/godot_zombies/blob/main/scripts/components/interaction_component.gd"
click node_containers "https://github.com/toledosq/godot_zombies/blob/main/scripts/components/container_component.gd"
click node_worldmanager "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/world_manager.gd"
click node_gamestate "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/game_state_manager.gd"
click node_save "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/save_manager.gd"
click node_itemdata "https://github.com/toledosq/godot_zombies/tree/main/scripts/systems/items"
click node_itemlibrary "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/item_library.gd"
click node_inventory "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/inventory.gd"
click node_importer "https://github.com/toledosq/godot_zombies/blob/main/addons/item_importer/csv_to_json.py"
click node_mainmenu "https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/main_menu.gd"
click node_hud "https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/player_hud.gd"
click node_inventoryui "https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/inventory_ui.gd"
click node_contextmenu "https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/context_menu.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,node_controller,node_combat,node_enemy toneBlue
class node_itemdata,node_itemlibrary,node_inventory,node_importer toneAmber
class node_interaction,node_containers,node_worldmanager,node_gamestate,node_save toneMint
class node_mainmenu,node_hud,node_inventoryui,node_contextmenu toneRose
class node_actor toneIndigo
```

## Components

### Gameplay

- [Player](https://github.com/toledosq/godot_zombies/blob/main/scripts/characters/player.gd): `scripts/characters/player.gd`
- [Player Control](https://github.com/toledosq/godot_zombies/blob/main/scripts/components/player_controller.gd): `scripts/components/player_controller.gd`
- [Combat](https://github.com/toledosq/godot_zombies/blob/main/scripts/components/combat_component.gd): `scripts/components/combat_component.gd`
- [Enemy AI](https://github.com/toledosq/godot_zombies/blob/main/scripts/characters/basic_enemy.gd): `scripts/characters/basic_enemy.gd`

### Items and Inventory

- [Item Definitions](https://github.com/toledosq/godot_zombies/tree/main/scripts/systems/items): `scripts/systems/items`
- [Item Library](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/item_library.gd): `scripts/systems/item_library.gd`
- [Inventory](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/inventory.gd): `scripts/systems/inventory.gd`
- [CSV Importer](https://github.com/toledosq/godot_zombies/blob/main/addons/item_importer/csv_to_json.py): `addons/item_importer/csv_to_json.py`

### World and State

- [Interaction](https://github.com/toledosq/godot_zombies/blob/main/scripts/components/interaction_component.gd): `scripts/components/interaction_component.gd`
- [Containers](https://github.com/toledosq/godot_zombies/blob/main/scripts/components/container_component.gd): `scripts/components/container_component.gd`
- [World Management](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/world_manager.gd): `scripts/systems/world_manager.gd`
- [Game State](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/game_state_manager.gd): `scripts/systems/game_state_manager.gd`
- [Save and Load](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/save_manager.gd): `scripts/systems/save_manager.gd`

### Interface

- [Main Menu](https://github.com/toledosq/godot_zombies/blob/main/scripts/systems/main_menu.gd): `scripts/systems/main_menu.gd`
- [HUD](https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/player_hud.gd): `scripts/ui/player_hud.gd`
- [Inventory UI](https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/inventory_ui.gd): `scripts/ui/inventory_ui.gd`
- [Context Menu](https://github.com/toledosq/godot_zombies/blob/main/scripts/ui/context_menu.gd): `scripts/ui/context_menu.gd`

### Other components

- **Player**

## Connections

- Player → Player: controls
