# chakib08/dragon-ball-z-buu-s-fury architecture

> Architecture diagram of the GitHub repository chakib08/dragon-ball-z-buu-s-fury, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chakib08/dragon-ball-z-buu-s-fury
- Repository: https://github.com/chakib08/dragon-ball-z-buu-s-fury

## Overview

This is a Pygame fan remake of Dragon Ball Z: Buu’s Fury. The player starts the game, enters the main menu, and then moves the player character through maps, where collisions and portals change location and nearby NPCs can start dialogue. The runtime also includes animated characters and map-specific music. The README documents movement, running, and talking controls; relationships beyond the excerpts are omitted where their implementation is uncertain.

Main entry points: [`src/pathmanager.py`](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/pathmanager.py) (Asset path lookup), [`src/game.py`](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/game.py) (Game loop), [`src/map.py`](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/map.py) (Map manager), [`src/animation.py`](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/animation.py) (Sprite animation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game runtime"]
  node_main["Application entry<br/>[main.py]"]
  node_game["Game loop<br/>[game.py]"]
  node_menu["Main menu<br/>[menu.py]"]
  node_paths["Asset path lookup<br/>[pathmanager.py]"]
  node_config["Runtime configuration<br/>[config.py]"]
end

subgraph group_world["World and interaction"]
  node_dialog["Dialogue box<br/>[dialogbox.py]"]
  node_maps["Map manager<br/>[map.py]"]
  node_npc["NPC movement<br/>[npc.py]"]
end

subgraph group_characters["Characters"]
  node_saiyan["Player character<br/>[saiyan.py]"]
  node_character["Character movement<br/>[character.py]"]
  node_animation["Sprite animation<br/>[animation.py]"]
end

subgraph group_resources["Game resources"]
  node_settings["Game settings<br/>[config.yaml]"]
  node_character_data["Character definitions"]
  node_map_data["TMX maps"]
  node_art["Graphics assets"]
  node_audio["Music and sound"]
end

node_player(("Player"))

node_player -->|"launches"| node_main
node_main -->|"initializes"| node_config
node_main -->|"starts"| node_game
node_game -->|"launches"| node_menu
node_game -->|"updates and draws"| node_maps
node_game -->|"renders and opens"| node_dialog
node_game -->|"creates and controls"| node_saiyan
node_maps -->|"registers and moves"| node_npc
node_maps -->|"opens on interaction"| node_dialog
node_saiyan -->|"extends"| node_character
node_npc -->|"extends"| node_character
node_character -->|"extends"| node_animation
node_animation -->|"resolves character data"| node_paths
node_animation -->|"reads timing settings"| node_config
node_maps -->|"resolves map paths"| node_paths
node_npc -->|"loads map points"| node_maps
node_dialog -->|"resolves dialogue assets"| node_paths
node_menu -->|"resolves menu images"| node_paths
node_paths -->|"reads media directories"| node_config
node_config -->|"loads"| node_settings
node_paths -->|"locates"| node_map_data
node_paths -->|"locates"| node_character_data
node_game -->|"resolves soundtrack"| node_paths
node_paths -->|"locates"| node_audio
node_animation -->|"loads sprite sheets"| node_art
node_dialog -->|"loads dialogue images"| node_art

click node_main "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/main.py"
click node_game "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/game.py"
click node_menu "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/menu.py"
click node_dialog "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/dialog/dialogbox.py"
click node_maps "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/map.py"
click node_npc "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/npc.py"
click node_saiyan "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/saiyan.py"
click node_character "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/character.py"
click node_animation "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/animation.py"
click node_paths "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/pathmanager.py"
click node_config "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/utils/config.py"
click node_settings "https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/Config/config.yaml"
click node_character_data "https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Config/characters"
click node_map_data "https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Graphics/maps"
click node_art "https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Graphics"
click node_audio "https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Sounds"

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_main,node_game,node_menu,node_paths,node_config toneBlue
class node_dialog,node_maps,node_npc toneAmber
class node_saiyan,node_character,node_animation toneMint
class node_settings,node_character_data,node_map_data,node_art,node_audio toneRose
class node_player toneIndigo
```

## Components

### Game runtime

- [Application entry](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/main.py): `src/main.py`
- [Game loop](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/game.py): `src/game.py`
- [Main menu](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/menu.py): `src/menu.py`
- [Asset path lookup](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/pathmanager.py): `src/pathmanager.py`
- [Runtime configuration](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/utils/config.py): `src/utils/config.py`

### World and interaction

- [Dialogue box](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/dialog/dialogbox.py): `src/dialog/dialogbox.py`
- [Map manager](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/map.py): `src/map.py`
- [NPC movement](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/npc.py): `src/npc.py`

### Characters

- [Player character](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/saiyan.py): `src/saiyan.py`
- [Character movement](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/character.py): `src/character.py`
- [Sprite animation](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/src/animation.py): `src/animation.py`

### Game resources

- [Game settings](https://github.com/chakib08/dragon-ball-z-buu-s-fury/blob/main/Config/config.yaml): `Config/config.yaml`
- [Character definitions](https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Config/characters): `Config/characters`
- [TMX maps](https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Graphics/maps): `Graphics/maps`
- [Graphics assets](https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Graphics): `Graphics`
- [Music and sound](https://github.com/chakib08/dragon-ball-z-buu-s-fury/tree/main/Sounds): `Sounds`

### Other components

- **Player**

## Connections

- Player → Application entry: launches (evidence: `README.md`)
- Application entry → Runtime configuration: initializes (evidence: `src/main.py`)
- Application entry → Game loop: starts (evidence: `src/main.py`)
- Game loop → Main menu: launches (evidence: `src/game.py`)
- Game loop → Map manager: updates and draws (evidence: `src/game.py`)
- Game loop → Dialogue box: renders and opens (evidence: `src/game.py`)
- Game loop → Player character: creates and controls (evidence: `src/game.py`)
- Map manager → NPC movement: registers and moves (evidence: `src/map.py`)
- Map manager → Dialogue box: opens on interaction (evidence: `src/game.py`)
- Player character → Character movement: extends (evidence: `src/saiyan.py`)
- NPC movement → Character movement: extends (evidence: `src/npc.py`)
- Character movement → Sprite animation: extends (evidence: `src/character.py`)
- Sprite animation → Asset path lookup: resolves character data (evidence: `src/animation.py`)
- Sprite animation → Runtime configuration: reads timing settings (evidence: `src/animation.py`)
- Map manager → Asset path lookup: resolves map paths (evidence: `src/map.py`)
- NPC movement → Map manager: loads map points (evidence: `src/map.py`)
- Dialogue box → Asset path lookup: resolves dialogue assets (evidence: `src/dialog/dialogbox.py`)
- Main menu → Asset path lookup: resolves menu images (evidence: `src/menu.py`)
- Asset path lookup → Runtime configuration: reads media directories (evidence: `src/pathmanager.py`)
- Runtime configuration → Game settings: loads (evidence: `src/utils/config.py`)
- Asset path lookup → TMX maps: locates (evidence: `src/pathmanager.py`)
- Asset path lookup → Character definitions: locates (evidence: `src/pathmanager.py`)
- Game loop → Asset path lookup: resolves soundtrack (evidence: `src/game.py`)
- Asset path lookup → Music and sound: locates (evidence: `src/pathmanager.py`)
- Sprite animation → Graphics assets: loads sprite sheets (evidence: `src/animation.py`)
- Dialogue box → Graphics assets: loads dialogue images (evidence: `src/dialog/dialogbox.py`)
