# gdgfgf123-creator/final_project architecture

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

- Interactive diagram: https://gitdiagram.com/gdgfgf123-creator/final_project
- Repository: https://github.com/gdgfgf123-creator/final_project

## Overview

This Unity project appears to be a 2D action game: players enter through a menu, control a character in combat encounters, use powers, and receive score and UI feedback. The tree also shows enemy waves and bosses, dialogue, and multiple enemy and attack types. With no README or source excerpts, relationships below are tentative, inferred from module names and project structure; no call flow could be verified.

Main entry points: [`Assets/Script/Player/Player.cs`](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/Player.cs) (Player), [`Assets/Script/Enemy/Boss.cs`](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Boss.cs) (Boss), [`Assets/Script/Manager/WaveSpawner.cs`](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/WaveSpawner.cs) (Wave Spawner), [`Assets/Script/Manager/LevelManager.cs`](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/LevelManager.cs) (Level Manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and Scenes"]
  node_menu["Main Menu<br/>[MainMenu.cs]"]
  node_scenes["Game Scenes"]
end

subgraph group_combat["Player Combat"]
  node_player["Player<br/>[Player.cs]"]
  node_input["Input Controller<br/>[InputController.cs]"]
  node_movement["Movement<br/>[Movement.cs]"]
  node_attack["Basic Attack<br/>[BasicAttack.cs]"]
  node_health["Health Status<br/>[HealthStatus.cs]"]
  node_projectiles["Projectile Types<br/>[Bullet.cs]"]
end

subgraph group_encounters["Enemies and Encounters"]
  node_enemy["Enemy<br/>[Enemy.cs]"]
  node_wave["Wave Spawner<br/>[WaveSpawner.cs]"]
  node_enemy_variants["Enemy Variants"]
  node_boss["Boss<br/>[Boss.cs]"]
  node_boss_attacks["Boss Attacks<br/>[BossAttack.cs]"]
  node_level["Level Manager<br/>[LevelManager.cs]"]
end

subgraph group_powers["Powers and Progression"]
  node_power_manager["Power Manager<br/>[PowerManager.cs]"]
  node_power_unlock["Power Unlock<br/>[PowerUnlock.cs]"]
  node_power_types["Power Types<br/>[Power.cs]"]
end

subgraph group_presentation["Dialogue and Feedback"]
  node_dialogue["Dialogue<br/>[Dialogue.cs]"]
  node_score["Score System"]
  node_score_ui["Score UI<br/>[ScoreUI.cs]"]
  node_boss_ui["Boss Health UI<br/>[BossHealthUI.cs]"]
  node_game_over["Game Over UI<br/>[GameOverUI.cs]"]
end

node_gamer(("Player"))

node_gamer -.->|"selects"| node_menu
node_menu -.->|"enters"| node_scenes
node_gamer -.->|"provides input"| node_input
node_input -.->|"controls"| node_player
node_player -.->|"uses"| node_movement
node_player -.->|"attacks with"| node_attack
node_attack -.->|"fires"| node_projectiles
node_wave -.->|"spawns"| node_enemy
node_enemy -.->|"specializes as"| node_enemy_variants
node_wave -.->|"spawns"| node_boss
node_boss -.->|"uses"| node_boss_attacks
node_player -.->|"has health"| node_health
node_power_manager -.->|"manages"| node_power_types
node_power_unlock -.->|"unlocks"| node_power_manager
node_level -.->|"manages"| node_wave
node_level -.->|"coordinates"| node_dialogue
node_score -.->|"updates"| node_score_ui
node_boss -.->|"updates"| node_boss_ui
node_health -.->|"triggers"| node_game_over

click node_player "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/Player.cs"
click node_input "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/InputController.cs"
click node_movement "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/Movement.cs"
click node_attack "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/BasicAttack.cs"
click node_health "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/HealthStatus.cs"
click node_projectiles "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/Bullet.cs"
click node_enemy "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Enemy.cs"
click node_wave "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/WaveSpawner.cs"
click node_enemy_variants "https://github.com/gdgfgf123-creator/final_project/tree/main/Assets/Script/Enemy/1"
click node_boss "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Boss.cs"
click node_boss_attacks "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Boss/BossAttack.cs"
click node_level "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/LevelManager.cs"
click node_power_manager "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/PowerManager.cs"
click node_power_unlock "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/PowerUnlock.cs"
click node_power_types "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/Power.cs"
click node_menu "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/MainMenu.cs"
click node_scenes "https://github.com/gdgfgf123-creator/final_project/tree/main/Assets/Scenes"
click node_dialogue "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Dialogue/Dialogue.cs"
click node_score "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Score/RewardScoreSystem.cs"
click node_score_ui "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Score/ScoreUI.cs"
click node_boss_ui "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/BossHealthUI.cs"
click node_game_over "https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Prefabs/UI_ON/GameOverUI.cs"

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_menu,node_scenes toneBlue
class node_player,node_input,node_movement,node_attack,node_health,node_projectiles toneAmber
class node_enemy,node_wave,node_enemy_variants,node_boss,node_boss_attacks,node_level toneMint
class node_power_manager,node_power_unlock,node_power_types toneRose
class node_dialogue,node_score,node_score_ui,node_boss_ui,node_game_over,node_gamer toneIndigo
```

## Components

### Entry and Scenes

- [Main Menu](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/MainMenu.cs): `Assets/Script/Manager/MainMenu.cs`
- [Game Scenes](https://github.com/gdgfgf123-creator/final_project/tree/main/Assets/Scenes): `Assets/Scenes`

### Player Combat

- [Player](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/Player.cs): `Assets/Script/Player/Player.cs`
- [Input Controller](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/InputController.cs): `Assets/Script/Player/InputController.cs`
- [Movement](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Player/Movement.cs): `Assets/Script/Player/Movement.cs`
- [Basic Attack](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/BasicAttack.cs): `Assets/Script/Combat/BasicAttack.cs`
- [Health Status](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/HealthStatus.cs): `Assets/Script/Combat/HealthStatus.cs`
- [Projectile Types](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Combat/Bullet.cs): `Assets/Script/Combat/Bullet.cs`

### Enemies and Encounters

- [Enemy](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Enemy.cs): `Assets/Script/Enemy/Enemy.cs`
- [Wave Spawner](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/WaveSpawner.cs): `Assets/Script/Manager/WaveSpawner.cs`
- [Enemy Variants](https://github.com/gdgfgf123-creator/final_project/tree/main/Assets/Script/Enemy/1): `Assets/Script/Enemy/1`
- [Boss](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Boss.cs): `Assets/Script/Enemy/Boss.cs`
- [Boss Attacks](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Enemy/Boss/BossAttack.cs): `Assets/Script/Enemy/Boss/BossAttack.cs`
- [Level Manager](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/LevelManager.cs): `Assets/Script/Manager/LevelManager.cs`

### Powers and Progression

- [Power Manager](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/PowerManager.cs): `Assets/Script/Power/PowerManager.cs`
- [Power Unlock](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/PowerUnlock.cs): `Assets/Script/Power/PowerUnlock.cs`
- [Power Types](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Power/Power.cs): `Assets/Script/Power/Power.cs`

### Dialogue and Feedback

- [Dialogue](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Dialogue/Dialogue.cs): `Assets/Script/Dialogue/Dialogue.cs`
- [Score System](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Score/RewardScoreSystem.cs): `Assets/Script/Score/RewardScoreSystem.cs`
- [Score UI](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Score/ScoreUI.cs): `Assets/Script/Score/ScoreUI.cs`
- [Boss Health UI](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Script/Manager/BossHealthUI.cs): `Assets/Script/Manager/BossHealthUI.cs`
- [Game Over UI](https://github.com/gdgfgf123-creator/final_project/blob/main/Assets/Prefabs/UI_ON/GameOverUI.cs): `Assets/Prefabs/UI_ON/GameOverUI.cs`

### Other components

- **Player**

## Connections

- Player → Main Menu: selects
- Main Menu → Game Scenes: enters
- Player → Input Controller: provides input
- Input Controller → Player: controls
- Player → Movement: uses
- Player → Basic Attack: attacks with
- Basic Attack → Projectile Types: fires
- Wave Spawner → Enemy: spawns
- Enemy → Enemy Variants: specializes as
- Wave Spawner → Boss: spawns
- Boss → Boss Attacks: uses
- Player → Health Status: has health
- Power Manager → Power Types: manages
- Power Unlock → Power Manager: unlocks
- Level Manager → Wave Spawner: manages
- Level Manager → Dialogue: coordinates
- Score System → Score UI: updates
- Boss → Boss Health UI: updates
- Health Status → Game Over UI: triggers
