# project-wordseekers/wordseekers-game architecture

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

- Interactive diagram: https://gitdiagram.com/project-wordseekers/wordseekers-game
- Repository: https://github.com/project-wordseekers/wordseekers-game

## Overview

WordSeekers is a Godot game prototype. Its documented core loop is grid movement across a 10×10 map, approaching an NPC, and seeing a brief greeting; a tilted 3D camera follows the player. The tree also shows systems for dialogue, combat, scene transitions, character selection, and a world map. The README documents the core behavior, but no relevant gameplay source was excerpted, so links beyond that documented loop are omitted; component paths identify existing likely implementations, not inspected call sites.

Main entry points: [`scripts/player/player.gd`](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/player/player.gd) (Player Movement), [`scripts/npcs/simple_dialogue_npc.gd`](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/npcs/simple_dialogue_npc.gd) (NPC Greeting), [`scripts/systems/player_camera.gd`](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/player_camera.gd) (Follow Camera), [`prototypes/legacy_3d/main_map.gd`](https://github.com/project-wordseekers/wordseekers-game/blob/main/prototypes/legacy_3d/main_map.gd) (Main Map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_world["World Navigation"]
  node_map["Main Map<br/>[main_map.gd]"]
  node_worldmap["World Map<br/>[world_map.tscn]"]
  node_map_point["Map Points<br/>[map_point.gd]"]
  node_portal["Scene Portals<br/>[scene_portal.gd]"]
  node_spawn["Scene Spawn<br/>[scene_spawn.gd]"]
  node_transition["Scene Transition"]
end

subgraph group_interaction["Player Interaction"]
  node_player["Player Movement<br/>[player.gd]"]
  node_npc["NPC Greeting"]
  node_dialogue["Dialogue UI<br/>[dialogue_ui.gd]"]
  node_dialogue_system["Dialogue Logic<br/>[cena1_dialogue.gd]"]
end

subgraph group_gameplay["Gameplay Systems"]
  node_battle["Battle System<br/>[batalha.gd]"]
  node_state["Game State<br/>[game_state.gd]"]
end

subgraph group_presentation["Game Presentation"]
  node_camera["Follow Camera<br/>[player_camera.gd]"]
  node_selection["Character Selection"]
  node_hud["Game HUD<br/>[game_hud.gd]"]
  node_intro["Intro Screen<br/>[intro.gd]"]
end

node_player_actor(("Player"))

node_player_actor -->|"moves"| node_player
node_player -->|"moves across"| node_map
node_player -->|"approaches"| node_npc
node_npc -->|"shows greeting"| node_player_actor
node_camera -->|"follows"| node_player

click node_player "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/player/player.gd"
click node_map "https://github.com/project-wordseekers/wordseekers-game/blob/main/prototypes/legacy_3d/main_map.gd"
click node_npc "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/npcs/simple_dialogue_npc.gd"
click node_camera "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/player_camera.gd"
click node_worldmap "https://github.com/project-wordseekers/wordseekers-game/blob/main/scenes/world/world_map.tscn"
click node_map_point "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/map_point.gd"
click node_portal "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_portal.gd"
click node_spawn "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_spawn.gd"
click node_transition "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_transition.gd"
click node_dialogue "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/dialogue_ui.gd"
click node_dialogue_system "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/cena1_dialogue.gd"
click node_battle "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/batalha.gd"
click node_state "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/game_state.gd"
click node_selection "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/character_selection.gd"
click node_hud "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/game_hud.gd"
click node_intro "https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/intro.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_map,node_worldmap,node_map_point,node_portal,node_spawn,node_transition toneBlue
class node_player,node_npc,node_dialogue,node_dialogue_system toneAmber
class node_battle,node_state toneMint
class node_camera,node_selection,node_hud,node_intro toneRose
class node_player_actor toneIndigo
```

## Components

### World Navigation

- [Main Map](https://github.com/project-wordseekers/wordseekers-game/blob/main/prototypes/legacy_3d/main_map.gd): `prototypes/legacy_3d/main_map.gd`
- [World Map](https://github.com/project-wordseekers/wordseekers-game/blob/main/scenes/world/world_map.tscn): `scenes/world/world_map.tscn`
- [Map Points](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/map_point.gd): `scripts/systems/map_point.gd`
- [Scene Portals](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_portal.gd): `scripts/systems/scene_portal.gd`
- [Scene Spawn](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_spawn.gd): `scripts/systems/scene_spawn.gd`
- [Scene Transition](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/scene_transition.gd): `scripts/systems/scene_transition.gd`

### Player Interaction

- [Player Movement](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/player/player.gd): `scripts/player/player.gd`
- [NPC Greeting](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/npcs/simple_dialogue_npc.gd): `scripts/npcs/simple_dialogue_npc.gd`
- [Dialogue UI](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/dialogue_ui.gd): `scripts/ui/dialogue_ui.gd`
- [Dialogue Logic](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/cena1_dialogue.gd): `scripts/systems/cena1_dialogue.gd`

### Gameplay Systems

- [Battle System](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/batalha.gd): `scripts/systems/batalha.gd`
- [Game State](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/game_state.gd): `scripts/systems/game_state.gd`

### Game Presentation

- [Follow Camera](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/systems/player_camera.gd): `scripts/systems/player_camera.gd`
- [Character Selection](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/character_selection.gd): `scripts/ui/character_selection.gd`
- [Game HUD](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/game_hud.gd): `scripts/ui/game_hud.gd`
- [Intro Screen](https://github.com/project-wordseekers/wordseekers-game/blob/main/scripts/ui/intro.gd): `scripts/ui/intro.gd`

### Other components

- **Player**

## Connections

- Player → Player Movement: moves (evidence: `README.md`)
- Player Movement → Main Map: moves across (evidence: `README.md`)
- Player Movement → NPC Greeting: approaches (evidence: `README.md`)
- NPC Greeting → Player: shows greeting (evidence: `README.md`)
- Follow Camera → Player Movement: follows (evidence: `README.md`)
