# nsr2510/thorn architecture

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

- Interactive diagram: https://gitdiagram.com/nsr2510/thorn
- Repository: https://github.com/nsr2510/thorn

## Overview

This is a Unity 2D action game project, with scripts for a main menu, player combat and health, elemental abilities, wave progression, enemies, and a boss. The likely user journey is to enter through the menu, play through enemy waves, and face boss encounters; the file tree supports these as product areas but not their call sequence. No README or source excerpts were provided, so relationships between components are omitted rather than inferred from names or folders.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_menu["Menu and Settings"]
  node_menu_manager["Menu Manager<br/>[Mainmenumanager.cs]"]
  node_audio_settings["Audio Settings"]
  node_button_sfx["Button Sounds<br/>[Buttonsfx.cs]"]
end

subgraph group_player["Player Combat"]
  node_movement["Player Movement<br/>[PlayerMovement.cs]"]
  node_combat["Player Combat<br/>[PlayerCombat.cs]"]
  node_health["Player Health<br/>[Health.cs]"]
  node_health_ui["Health Bar UI<br/>[HealthBarUI.cs]"]
  node_game_ui["Game UI<br/>[GameUIManager.cs]"]
end

subgraph group_progression["Waves and Elements"]
  node_elemental_manager["Player Elementals"]
  node_elemental_hud["Elemental HUD<br/>[ElementalHUD.cs]"]
  node_wave_manager["Wave Manager<br/>[WaveManager.cs]"]
  node_wave_ui["Wave Display<br/>[WaveUIDisplay.cs]"]
  node_elemental_selection["Element Selection"]
  node_boss_upgrade["Boss Upgrades<br/>[BossUpgradeUI.cs]"]
end

subgraph group_encounters["Enemies and Boss"]
  node_enemy_ai["Enemy AI<br/>[Enemy_AI.cs]"]
  node_enemy_health["Enemy Health<br/>[EnemyHealth.cs]"]
  node_elemental_effect["Elemental Effects<br/>[ElementalEffect.cs]"]
  node_boss_ai["Boss AI<br/>[Boss_AI.cs]"]
  node_boss_health["Boss Health<br/>[Boss_HP.cs]"]
  node_boss_health_ui["Boss Health Bar<br/>[BossHPBarUI.cs]"]
end

node_player_actor(("Player"))

click node_menu_manager "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/Mainmenumanager.cs"
click node_audio_settings "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/AudioSettingsController.cs"
click node_button_sfx "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/Buttonsfx.cs"
click node_movement "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerMovement.cs"
click node_combat "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerCombat.cs"
click node_health "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/Health.cs"
click node_health_ui "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/HealthBarUI.cs"
click node_game_ui "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/GameUIManager.cs"
click node_elemental_manager "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerElementalManager.cs"
click node_elemental_hud "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/ElementalHUD.cs"
click node_wave_manager "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/WaveManager.cs"
click node_wave_ui "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/WaveUIDisplay.cs"
click node_elemental_selection "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/ElementalSelectionUI.cs"
click node_boss_upgrade "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/BossUpgradeUI.cs"
click node_enemy_ai "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/Enemy_AI.cs"
click node_enemy_health "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/EnemyHealth.cs"
click node_elemental_effect "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/ElementalEffect.cs"
click node_boss_ai "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/Boss_AI.cs"
click node_boss_health "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/Boss_HP.cs"
click node_boss_health_ui "https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/BossHPBarUI.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_manager,node_audio_settings,node_button_sfx toneBlue
class node_movement,node_combat,node_health,node_health_ui,node_game_ui toneAmber
class node_elemental_manager,node_elemental_hud,node_wave_manager,node_wave_ui,node_elemental_selection,node_boss_upgrade toneMint
class node_enemy_ai,node_enemy_health,node_elemental_effect,node_boss_ai,node_boss_health,node_boss_health_ui toneRose
class node_player_actor toneIndigo
```

## Components

### Menu and Settings

- [Menu Manager](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/Mainmenumanager.cs): `Assets/Scripts/Mainmenu/Mainmenumanager.cs`
- [Audio Settings](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/AudioSettingsController.cs): `Assets/Scripts/Mainmenu/AudioSettingsController.cs`
- [Button Sounds](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Mainmenu/Buttonsfx.cs): `Assets/Scripts/Mainmenu/Buttonsfx.cs`

### Player Combat

- [Player Movement](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerMovement.cs): `Assets/Scripts/Player/PlayerMovement.cs`
- [Player Combat](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerCombat.cs): `Assets/Scripts/Player/PlayerCombat.cs`
- [Player Health](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/Health.cs): `Assets/Scripts/Player/Health.cs`
- [Health Bar UI](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/HealthBarUI.cs): `Assets/Scripts/Player/HealthBarUI.cs`
- [Game UI](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/GameUIManager.cs): `Assets/Scripts/Player/GameUIManager.cs`

### Waves and Elements

- [Player Elementals](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/PlayerElementalManager.cs): `Assets/Scripts/Player/PlayerElementalManager.cs`
- [Elemental HUD](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Player/ElementalHUD.cs): `Assets/Scripts/Player/ElementalHUD.cs`
- [Wave Manager](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/WaveManager.cs): `Assets/Scripts/Wave/WaveManager.cs`
- [Wave Display](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/WaveUIDisplay.cs): `Assets/Scripts/Wave/WaveUIDisplay.cs`
- [Element Selection](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/ElementalSelectionUI.cs): `Assets/Scripts/Wave/ElementalSelectionUI.cs`
- [Boss Upgrades](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Wave/BossUpgradeUI.cs): `Assets/Scripts/Wave/BossUpgradeUI.cs`

### Enemies and Boss

- [Enemy AI](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/Enemy_AI.cs): `Assets/Scripts/Enemy/Enemy_AI.cs`
- [Enemy Health](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/EnemyHealth.cs): `Assets/Scripts/Enemy/EnemyHealth.cs`
- [Elemental Effects](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Enemy/ElementalEffect.cs): `Assets/Scripts/Enemy/ElementalEffect.cs`
- [Boss AI](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/Boss_AI.cs): `Assets/Scripts/Boss/Boss_AI.cs`
- [Boss Health](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/Boss_HP.cs): `Assets/Scripts/Boss/Boss_HP.cs`
- [Boss Health Bar](https://github.com/nsr2510/thorn/blob/main/Assets/Scripts/Boss/BossHPBarUI.cs): `Assets/Scripts/Boss/BossHPBarUI.cs`

### Other components

- **Player**
