# shathe1/2drpg-groupproject architecture

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

- Interactive diagram: https://gitdiagram.com/shathe1/2drpg-groupproject
- Repository: https://github.com/shathe1/2drpg-groupproject

## Overview

This repository is a Unity 2D RPG. The tree suggests a player journey through menus and level scenes, with movement, combat, hazards, and win/lose screens. It also shows supporting audio, cutscene, and world-interaction systems. No source excerpts were provided, and the README only identifies the project as a 2D RPG, so the component roles are inferred from filenames; relationships and call flow cannot be verified and are omitted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player Gameplay"]
  node_movement["Player Movement<br/>[PlayerMovement.cs]"]
  node_combat["Player Combat<br/>[PlayerCombat.cs]"]
  node_health["Health System<br/>[HealthManager.cs]"]
  node_enemies["Enemies"]
end

subgraph group_world["World Interaction"]
  node_doors["Doors<br/>[DoorController.cs]"]
  node_platforms["Moving Platforms<br/>[MovingPlatform.cs]"]
  node_hazards["Hazards<br/>[HazardKill.cs]"]
  node_tiles["Level Tiles<br/>[TileManager.cs]"]
end

subgraph group_flow["Game Flow"]
  node_menu["Main Menu<br/>[MainMenuUI.cs]"]
  node_scene_loading["Scene Loading<br/>[SceneLoader.cs]"]
  node_level_scenes["Level Scenes"]
  node_win_screen["Win Screen"]
  node_lose_screen["Lose Screen"]
end

subgraph group_presentation["Presentation"]
  node_cutscenes["Cutscenes"]
  node_audio["Audio Manager<br/>[AudioManager.cs]"]
  node_camera["Camera Follow<br/>[CameraFollow.cs]"]
end

node_player_actor(("Player"))

click node_movement "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/PlayerMovement.cs"
click node_combat "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/PlayerCombat.cs"
click node_health "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/HealthManager.cs"
click node_enemies "https://github.com/shathe1/2drpg-groupproject/tree/main/Assets/Enemies"
click node_doors "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/DoorController.cs"
click node_platforms "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/MovingPlatform.cs"
click node_hazards "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/HazardKill.cs"
click node_tiles "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/TileManager.cs"
click node_menu "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/MainMenuUI.cs"
click node_scene_loading "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/SceneLoader.cs"
click node_level_scenes "https://github.com/shathe1/2drpg-groupproject/tree/main/Assets/Scenes"
click node_win_screen "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/WinScreenManager.cs"
click node_lose_screen "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/LoseScreenManager.cs"
click node_cutscenes "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/CutsceneController.cs"
click node_audio "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/AudioManager.cs"
click node_camera "https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/CameraFollow.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_movement,node_combat,node_health,node_enemies toneBlue
class node_doors,node_platforms,node_hazards,node_tiles toneAmber
class node_menu,node_scene_loading,node_level_scenes,node_win_screen,node_lose_screen toneMint
class node_cutscenes,node_audio,node_camera toneRose
class node_player_actor toneIndigo
```

## Components

### Player Gameplay

- [Player Movement](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/PlayerMovement.cs): `Assets/Scripts/PlayerMovement.cs`
- [Player Combat](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/PlayerCombat.cs): `Assets/Scripts/PlayerCombat.cs`
- [Health System](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/HealthManager.cs): `Assets/Scripts/HealthManager.cs`
- [Enemies](https://github.com/shathe1/2drpg-groupproject/tree/main/Assets/Enemies): `Assets/Enemies`

### World Interaction

- [Doors](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/DoorController.cs): `Assets/Scripts/DoorController.cs`
- [Moving Platforms](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/MovingPlatform.cs): `Assets/Scripts/MovingPlatform.cs`
- [Hazards](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/HazardKill.cs): `Assets/Scripts/HazardKill.cs`
- [Level Tiles](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/TileManager.cs): `Assets/Scripts/TileManager.cs`

### Game Flow

- [Main Menu](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/MainMenuUI.cs): `Assets/Scripts/MainMenuUI.cs`
- [Scene Loading](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/SceneLoader.cs): `Assets/Scripts/SceneLoader.cs`
- [Level Scenes](https://github.com/shathe1/2drpg-groupproject/tree/main/Assets/Scenes): `Assets/Scenes`
- [Win Screen](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/WinScreenManager.cs): `Assets/Scripts/WinScreenManager.cs`
- [Lose Screen](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/LoseScreenManager.cs): `Assets/Scripts/LoseScreenManager.cs`

### Presentation

- [Cutscenes](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/CutsceneController.cs): `Assets/Scripts/CutsceneController.cs`
- [Audio Manager](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/AudioManager.cs): `Assets/Scripts/AudioManager.cs`
- [Camera Follow](https://github.com/shathe1/2drpg-groupproject/blob/main/Assets/Scripts/CameraFollow.cs): `Assets/Scripts/CameraFollow.cs`

### Other components

- **Player**
