# l0lman01/dice_n_dungeon architecture

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

- Interactive diagram: https://gitdiagram.com/l0lman01/dice_n_dungeon
- Repository: https://github.com/l0lman01/dice_n_dungeon

## Overview

This appears to be a Unity action game with player combat, enemy encounters, pickups, and dice-linked power-ups. The likely player workflow is to control the character, fight enemies, collect rewards, and use equipment effects during play. The tree also shows health/UI, camera, and map-generation systems. No README or source excerpts were provided, so the component relationships below are dashed and unverified; paths identify implementations from the file tree only.

Main entry points: [`Assets/Scripts/TestingScripts/PlayerTest/PlayerTestScript.cs`](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestScript.cs) (Player Controller), [`Assets/Scripts/TestingScripts/EnemyTest/MeleeAI.cs`](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/MeleeAI.cs) (Enemy AI), [`Assets/Scripts/PowerUpEffects/DiceEquipment.cs`](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/DiceEquipment.cs) (Dice Equipment), [`Assets/Scripts/PowerUpEffects/Power-Ups/Passives/PassiveEffectManager.cs`](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/PassiveEffectManager.cs) (Passive Effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_player["Player and Controls"]
  node_player_actor["Player<br/>[Mike Dieson.prefab]"]
  node_input_actions["Input Actions"]
  node_input_handler["Input Handler"]
  node_player_actions["Player Actions"]
  node_player_controller["Player Controller"]
  node_player_stats["Player Stats<br/>[PlayerStats.cs]"]
end

subgraph group_combat["Combat and Enemies"]
  node_health["Health<br/>[CharacterHealth.cs]"]
  node_enemy_ai["Enemy AI<br/>[MeleeAI.cs]"]
  node_enemy_combat["Enemy Combat<br/>[EnemyCombat.cs]"]
  node_enemy_spawning["Enemy Spawning"]
  node_enemy_projectile["Enemy Projectile<br/>[EnemyProjectile.cs]"]
  node_ground_spell["Ground Spell<br/>[GroundSpell.cs]"]
end

subgraph group_rewards["Pickups and Effects"]
  node_pickup_collector["Pickup Collector<br/>[PickupCollector.cs]"]
  node_world_pickup["World Pickup<br/>[WorldPickup.cs]"]
  node_reward_spawner["Reward Spawner<br/>[RewardSpawner.cs]"]
  node_dice_equipment["Dice Equipment<br/>[DiceEquipment.cs]"]
  node_face_detector["Face Detector"]
  node_passive_manager["Passive Effects"]
  node_damage_effect["Damage Effect<br/>[DamageUpEffect.cs]"]
  node_speed_effect["Speed Effect<br/>[SpeedUpEffect.cs]"]
end

subgraph group_world["World and Interface"]
  node_map_maker["Map Maker<br/>[MapMaker.cs]"]
  node_camera["Orbit Camera"]
  node_health_ui["Health UI<br/>[HealthUI.cs]"]
end

node_player(("Player"))

node_player -.->|"provides input"| node_input_handler
node_input_actions -.->|"configures controls"| node_input_handler
node_input_handler -.->|"dispatches actions"| node_player_actions
node_player_actions -.->|"controls"| node_player_controller
node_player_controller -.->|"uses stats"| node_player_stats
node_player_controller -.->|"uses health"| node_health
node_enemy_spawning -.->|"spawns"| node_enemy_ai
node_enemy_ai -.->|"engages"| node_enemy_combat
node_enemy_ai -.->|"fires"| node_enemy_projectile
node_enemy_ai -.->|"casts"| node_ground_spell
node_player_controller -.->|"collects"| node_pickup_collector
node_pickup_collector -.->|"handles"| node_world_pickup
node_reward_spawner -.->|"spawns"| node_world_pickup
node_player_controller -.->|"uses equipment"| node_dice_equipment
node_dice_equipment -.->|"reads face"| node_face_detector
node_dice_equipment -.->|"applies effects"| node_passive_manager
node_passive_manager -.->|"manages"| node_damage_effect
node_passive_manager -.->|"manages"| node_speed_effect
node_camera -.->|"follows"| node_player_actor
node_health_ui -.->|"displays health"| node_health

click node_player_actor "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Prefab/Mike%20Dieson.prefab"
click node_input_actions "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/InputSystem_Actions.inputactions"
click node_input_handler "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestInputHandler.cs"
click node_player_actions "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestActions.cs"
click node_player_controller "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestScript.cs"
click node_player_stats "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerStats.cs"
click node_health "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/Combat/CharacterHealth.cs"
click node_enemy_ai "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/MeleeAI.cs"
click node_enemy_combat "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemyCombat.cs"
click node_enemy_spawning "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemySpawnManager.cs"
click node_enemy_projectile "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemyProjectile.cs"
click node_ground_spell "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/GroundSpell.cs"
click node_pickup_collector "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/PickupCollector.cs"
click node_world_pickup "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/WorldPickup.cs"
click node_reward_spawner "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/RewardSpawner.cs"
click node_dice_equipment "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/DiceEquipment.cs"
click node_face_detector "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/DiceFaceDetector.cs"
click node_passive_manager "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/PassiveEffectManager.cs"
click node_damage_effect "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/DamageUpEffect.cs"
click node_speed_effect "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/SpeedUpEffect.cs"
click node_map_maker "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/MapMaker.cs"
click node_camera "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/OrbitCameraController.cs"
click node_health_ui "https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/Combat/HealthUI.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_player_actor,node_input_actions,node_input_handler,node_player_actions,node_player_controller,node_player_stats toneBlue
class node_health,node_enemy_ai,node_enemy_combat,node_enemy_spawning,node_enemy_projectile,node_ground_spell toneAmber
class node_pickup_collector,node_world_pickup,node_reward_spawner,node_dice_equipment,node_face_detector,node_passive_manager,node_damage_effect,node_speed_effect toneMint
class node_map_maker,node_camera,node_health_ui toneRose
class node_player toneIndigo
```

## Components

### Player and Controls

- [Player](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Prefab/Mike%20Dieson.prefab): `Assets/Prefab/Mike Dieson.prefab`
- [Input Actions](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/InputSystem_Actions.inputactions): `Assets/InputSystem_Actions.inputactions`
- [Input Handler](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestInputHandler.cs): `Assets/Scripts/TestingScripts/PlayerTest/PlayerTestInputHandler.cs`
- [Player Actions](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestActions.cs): `Assets/Scripts/TestingScripts/PlayerTest/PlayerTestActions.cs`
- [Player Controller](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerTestScript.cs): `Assets/Scripts/TestingScripts/PlayerTest/PlayerTestScript.cs`
- [Player Stats](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PlayerStats.cs): `Assets/Scripts/TestingScripts/PlayerTest/PlayerStats.cs`

### Combat and Enemies

- [Health](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/Combat/CharacterHealth.cs): `Assets/Scripts/TestingScripts/PlayerTest/Combat/CharacterHealth.cs`
- [Enemy AI](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/MeleeAI.cs): `Assets/Scripts/TestingScripts/EnemyTest/MeleeAI.cs`
- [Enemy Combat](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemyCombat.cs): `Assets/Scripts/TestingScripts/EnemyTest/EnemyCombat.cs`
- [Enemy Spawning](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemySpawnManager.cs): `Assets/Scripts/TestingScripts/EnemyTest/EnemySpawnManager.cs`
- [Enemy Projectile](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/EnemyProjectile.cs): `Assets/Scripts/TestingScripts/EnemyTest/EnemyProjectile.cs`
- [Ground Spell](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/EnemyTest/GroundSpell.cs): `Assets/Scripts/TestingScripts/EnemyTest/GroundSpell.cs`

### Pickups and Effects

- [Pickup Collector](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/PickupCollector.cs): `Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/PickupCollector.cs`
- [World Pickup](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/WorldPickup.cs): `Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/WorldPickup.cs`
- [Reward Spawner](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/RewardSpawner.cs): `Assets/Scripts/TestingScripts/PlayerTest/PickUpSystem/RewardSpawner.cs`
- [Dice Equipment](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/DiceEquipment.cs): `Assets/Scripts/PowerUpEffects/DiceEquipment.cs`
- [Face Detector](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/DiceFaceDetector.cs): `Assets/Scripts/PowerUpEffects/DiceFaceDetector.cs`
- [Passive Effects](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/PassiveEffectManager.cs): `Assets/Scripts/PowerUpEffects/Power-Ups/Passives/PassiveEffectManager.cs`
- [Damage Effect](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/DamageUpEffect.cs): `Assets/Scripts/PowerUpEffects/Power-Ups/Passives/DamageUpEffect.cs`
- [Speed Effect](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/PowerUpEffects/Power-Ups/Passives/SpeedUpEffect.cs): `Assets/Scripts/PowerUpEffects/Power-Ups/Passives/SpeedUpEffect.cs`

### World and Interface

- [Map Maker](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/MapMaker.cs): `Assets/Scripts/MapMaker.cs`
- [Orbit Camera](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/OrbitCameraController.cs): `Assets/Scripts/TestingScripts/PlayerTest/OrbitCameraController.cs`
- [Health UI](https://github.com/l0lman01/dice_n_dungeon/blob/main/Assets/Scripts/TestingScripts/PlayerTest/Combat/HealthUI.cs): `Assets/Scripts/TestingScripts/PlayerTest/Combat/HealthUI.cs`

### Other components

- **Player**

## Connections

- Player → Input Handler: provides input
- Input Actions → Input Handler: configures controls
- Input Handler → Player Actions: dispatches actions
- Player Actions → Player Controller: controls
- Player Controller → Player Stats: uses stats
- Player Controller → Health: uses health
- Enemy Spawning → Enemy AI: spawns
- Enemy AI → Enemy Combat: engages
- Enemy AI → Enemy Projectile: fires
- Enemy AI → Ground Spell: casts
- Player Controller → Pickup Collector: collects
- Pickup Collector → World Pickup: handles
- Reward Spawner → World Pickup: spawns
- Player Controller → Dice Equipment: uses equipment
- Dice Equipment → Face Detector: reads face
- Dice Equipment → Passive Effects: applies effects
- Passive Effects → Damage Effect: manages
- Passive Effects → Speed Effect: manages
- Orbit Camera → Player: follows
- Health UI → Health: displays health
