# chanhoang-dev/rpg2d-unity architecture

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

- Interactive diagram: https://gitdiagram.com/chanhoang-dev/rpg2d-unity
- Repository: https://github.com/chanhoang-dev/rpg2d-unity

## Overview

This repository appears to be a Unity 2D action-game project centered on character, enemy, and level content. The tree shows playable-character and enemy prefabs, animation assets, level and character data assets, and combat/UI prefabs. No README or source excerpts document runtime ownership or call flow, so the graph represents the visible product subsystems without guessing how they are connected or executed.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_actors["Characters"]
  node_player_characters["Player Characters"]
  node_character_data["Character Data"]
  node_player_data["Player Data"]
  node_character_animations["Character Animations"]
end

subgraph group_combat["Enemies and Combat"]
  node_enemy_roster["Enemy Roster"]
  node_enemy_data["Enemy Data"]
  node_enemy_animations["Enemy Animations"]
  node_combat_objects["Combat Objects"]
end

subgraph group_content["Game Content"]
  node_level_content["Level Data"]
  node_ui_prefabs["UI Prefabs"]
  node_input_actions["Input Actions"]
  node_animation_overrides["Animation Overrides"]
end

click node_player_characters "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab"
click node_character_data "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/DataCharacterSO"
click node_player_data "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/PlayerSO"
click node_character_animations "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Animation"
click node_enemy_roster "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab"
click node_enemy_data "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/EnemySO"
click node_enemy_animations "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Animation"
click node_combat_objects "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab"
click node_level_content "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/LevelDataSO"
click node_ui_prefabs "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab"
click node_input_actions "https://github.com/chanhoang-dev/rpg2d-unity/blob/main/Assets/InputSystem_Actions.inputactions"
click node_animation_overrides "https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets"

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_characters,node_character_data,node_player_data,node_character_animations toneBlue
class node_enemy_roster,node_enemy_data,node_enemy_animations,node_combat_objects toneAmber
class node_level_content,node_ui_prefabs,node_input_actions,node_animation_overrides toneMint
```

## Components

### Characters

- [Player Characters](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab): `Assets/Prefab`
- [Character Data](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/DataCharacterSO): `Assets/DataCharacterSO`
- [Player Data](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/PlayerSO): `Assets/PlayerSO`
- [Character Animations](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Animation): `Assets/Animation`

### Enemies and Combat

- [Enemy Roster](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab): `Assets/Prefab`
- [Enemy Data](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/EnemySO): `Assets/EnemySO`
- [Enemy Animations](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Animation): `Assets/Animation`
- [Combat Objects](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab): `Assets/Prefab`

### Game Content

- [Level Data](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/LevelDataSO): `Assets/LevelDataSO`
- [UI Prefabs](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets/Prefab): `Assets/Prefab`
- [Input Actions](https://github.com/chanhoang-dev/rpg2d-unity/blob/main/Assets/InputSystem_Actions.inputactions): `Assets/InputSystem_Actions.inputactions`
- [Animation Overrides](https://github.com/chanhoang-dev/rpg2d-unity/tree/main/Assets): `Assets`
