# poridaby/pori-the-game architecture

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

- Interactive diagram: https://gitdiagram.com/poridaby/pori-the-game
- Repository: https://github.com/poridaby/pori-the-game

## Overview

Pori-The-Game is a Godot role-playing game. Its apparent player workflow is exploration, interaction with characters or signs, item management, and turn-based combat; the tree also shows dialogue, enemy, inventory, and game-over systems. The README provides no workflow details, and no source excerpts were supplied, so these connections are shown as unverified rather than asserted calls. Paths identify the available implementation directories or files; relationships should be checked against scene and script contents.

Main entry points: [`pori-the-game/script/persos_script/Tonar.gd`](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/persos_script/Tonar.gd) (Player), [`pori-the-game/script/combat/combat.gd`](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/combat.gd) (Turn-Based Combat), [`pori-the-game/script/stats/combat_info.gd`](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/combat_info.gd) (Combat Stats), [`pori-the-game/script/inventory/Inventory.gd`](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/inventory/Inventory.gd) (Inventory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_exploration["Exploration"]
  node_player["Player<br/>[Tonar.gd]"]
  node_world["Exploration World"]
  node_enemies_world["World Enemies"]
  node_warps["World Warps<br/>[warp.gd]"]
end

subgraph group_interaction["Interaction"]
  node_dialogue["Dialogue"]
  node_signs["Signs"]
  node_inventory["Inventory<br/>[Inventory.gd]"]
  node_inventory_ui["Inventory UI<br/>[InventoryUI.tscn]"]
  node_items["Item Data<br/>[Item_Stock.gd]"]
end

subgraph group_combat["Combat"]
  node_combat_entry["Combat Entry<br/>[lancer_combat.gd]"]
  node_combat["Turn-Based Combat<br/>[combat.gd]"]
  node_turns["Turn Queue<br/>[TurnQueue.gd]"]
  node_combat_enemies["Combat Enemies"]
end

subgraph group_game_state["Game State"]
  node_combat_stats["Combat Stats<br/>[combat_info.gd]"]
  node_player_stats["Player Stats"]
  node_enemy_stats["Enemy Stats<br/>[ennemi_stats.gd]"]
  node_global_state[("Global State<br/>[global_var.gd]")]
  node_game_over["Game Over<br/>[GAME_OVER.tscn]"]
end

node_player_actor(("Player"))

node_player_actor -.->|"controls"| node_player
node_player -.->|"explores"| node_world
node_player -.->|"interacts"| node_signs
node_signs -.->|"opens"| node_dialogue
node_player -.->|"manages items"| node_inventory
node_inventory_ui -.->|"displays"| node_inventory
node_inventory -.->|"uses data"| node_items
node_player -.->|"triggers"| node_warps
node_enemies_world -.->|"starts encounter"| node_combat_entry
node_combat_entry -.->|"launches"| node_combat
node_combat -.->|"uses turns"| node_turns
node_combat -.->|"fights"| node_combat_enemies
node_combat -.->|"uses stats"| node_combat_stats
node_combat_stats -.->|"tracks player"| node_player_stats
node_combat_stats -.->|"tracks enemy"| node_enemy_stats
node_combat -.->|"ends at"| node_game_over
node_player -.->|"updates state"| node_global_state

click node_player "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/persos_script/Tonar.gd"
click node_world "https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/d%C3%A9cor_explo"
click node_enemies_world "https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/enemy_explo"
click node_warps "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/warp_script/warp.gd"
click node_dialogue "https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/script/dialog_box_script"
click node_signs "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/dialog_box_script/interact%20panneau.gd"
click node_inventory "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/inventory/Inventory.gd"
click node_inventory_ui "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/scenes/d%C3%A9cor_explo/InventoryUI.tscn"
click node_items "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/inventory/Item_Stock.gd"
click node_combat_entry "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/lancer_combat.gd"
click node_combat "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/combat.gd"
click node_turns "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/TurnQueue.gd"
click node_combat_enemies "https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/enemy_combat"
click node_combat_stats "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/combat_info.gd"
click node_player_stats "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/player_stats_script.gd"
click node_enemy_stats "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/ennemi_stats.gd"
click node_global_state "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/save_script/global_var.gd"
click node_game_over "https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/scenes/HUD/GAME_OVER.tscn"

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_world,node_enemies_world,node_warps toneBlue
class node_dialogue,node_signs,node_inventory,node_inventory_ui,node_items toneAmber
class node_combat_entry,node_combat,node_turns,node_combat_enemies toneMint
class node_combat_stats,node_player_stats,node_enemy_stats,node_global_state,node_game_over toneRose
class node_player_actor toneIndigo
```

## Components

### Exploration

- [Player](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/persos_script/Tonar.gd): `pori-the-game/script/persos_script/Tonar.gd`
- [Exploration World](https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/d%C3%A9cor_explo): `pori-the-game/scenes/décor_explo`
- [World Enemies](https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/enemy_explo): `pori-the-game/scenes/enemy_explo`
- [World Warps](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/warp_script/warp.gd): `pori-the-game/script/warp_script/warp.gd`

### Interaction

- [Dialogue](https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/script/dialog_box_script): `pori-the-game/script/dialog_box_script`
- [Signs](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/dialog_box_script/interact%20panneau.gd): `pori-the-game/script/dialog_box_script/interact panneau.gd`
- [Inventory](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/inventory/Inventory.gd): `pori-the-game/script/inventory/Inventory.gd`
- [Inventory UI](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/scenes/d%C3%A9cor_explo/InventoryUI.tscn): `pori-the-game/scenes/décor_explo/InventoryUI.tscn`
- [Item Data](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/inventory/Item_Stock.gd): `pori-the-game/script/inventory/Item_Stock.gd`

### Combat

- [Combat Entry](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/lancer_combat.gd): `pori-the-game/script/combat/lancer_combat.gd`
- [Turn-Based Combat](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/combat.gd): `pori-the-game/script/combat/combat.gd`
- [Turn Queue](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/combat/TurnQueue.gd): `pori-the-game/script/combat/TurnQueue.gd`
- [Combat Enemies](https://github.com/poridaby/pori-the-game/tree/main/pori-the-game/scenes/enemy_combat): `pori-the-game/scenes/enemy_combat`

### Game State

- [Combat Stats](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/combat_info.gd): `pori-the-game/script/stats/combat_info.gd`
- [Player Stats](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/player_stats_script.gd): `pori-the-game/script/stats/player_stats_script.gd`
- [Enemy Stats](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/stats/ennemi_stats.gd): `pori-the-game/script/stats/ennemi_stats.gd`
- [Global State](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/script/save_script/global_var.gd): `pori-the-game/script/save_script/global_var.gd`
- [Game Over](https://github.com/poridaby/pori-the-game/blob/main/pori-the-game/scenes/HUD/GAME_OVER.tscn): `pori-the-game/scenes/HUD/GAME_OVER.tscn`

### Other components

- **Player**

## Connections

- Player → Player: controls
- Player → Exploration World: explores
- Player → Signs: interacts
- Signs → Dialogue: opens
- Player → Inventory: manages items
- Inventory UI → Inventory: displays
- Inventory → Item Data: uses data
- Player → World Warps: triggers
- World Enemies → Combat Entry: starts encounter
- Combat Entry → Turn-Based Combat: launches
- Turn-Based Combat → Turn Queue: uses turns
- Turn-Based Combat → Combat Enemies: fights
- Turn-Based Combat → Combat Stats: uses stats
- Combat Stats → Player Stats: tracks player
- Combat Stats → Enemy Stats: tracks enemy
- Turn-Based Combat → Game Over: ends at
- Player → Global State: updates state
