# hjjhgame/hushhunt architecture

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

- Interactive diagram: https://gitdiagram.com/hjjhgame/hushhunt
- Repository: https://github.com/hjjhgame/hushhunt

## Overview

Hush Hunt is a Unity prototype for an asymmetric 3:3 forest hide-and-seek deathmatch, with solo bot play documented as implemented. The main player workflow is to enter a match, move and listen for opponents, fight or collect a marked paper for a weapon, then survive or escape to win. The README also describes the forest, lighting, HUD, and spectator behavior. No source excerpts were supplied, so relationships below are limited to README-documented behavior; paths identify matching scripts from the tree, not inspected implementations.

Main entry points: [`Assets/Scripts/GameManager.cs`](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/GameManager.cs) (Match flow), [`Assets/Scripts/TreePaper.cs`](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreePaper.cs) (Paper pickup), [`Assets/Scripts/TreeLayout.cs`](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreeLayout.cs) (Forest layout), [`Assets/Scripts/Health.cs`](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Health.cs) (Player health)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_match["Match and teams"]
  node_match_flow["Match flow<br/>[GameManager.cs]"]
  node_game_rules["Game systems<br/>[GameSystems.cs]"]
  node_bot_players["Bot players<br/>[Bot.cs]"]
  node_health["Player health<br/>[Health.cs]"]
  node_spectating["Spectating<br/>[Spectator.cs]"]
end

subgraph group_play["Player actions"]
  node_movement["Player movement"]
  node_combat["Weapons and combat<br/>[HeldWeapon.cs]"]
  node_inventory["Inventory<br/>[Inventory.cs]"]
  node_paper["Paper pickup<br/>[TreePaper.cs]"]
  node_flashlight["Flashlight<br/>[Flashlight.cs]"]
end

subgraph group_world["Forest and atmosphere"]
  node_forest["Forest layout<br/>[TreeLayout.cs]"]
  node_props["World props<br/>[PropLayout.cs]"]
  node_zones["Blockade zones<br/>[Zones.cs]"]
  node_atmosphere["Night atmosphere<br/>[NightAtmosphere.cs]"]
end

subgraph group_feedback["Player feedback"]
  node_sound["Gameplay sound<br/>[Footsteps.cs]"]
  node_heartbeat["Heartbeat cue<br/>[Heartbeat.cs]"]
  node_hud["Player HUD<br/>[PlayerHud.cs]"]
  node_map["Minimap<br/>[Minimap.cs]"]
end

node_player(("Player"))

node_player -->|"starts match"| node_match_flow
node_match_flow -->|"includes five bots"| node_bot_players
node_player -->|"moves with controls"| node_movement
node_player -->|"attacks opponents"| node_combat
node_player -->|"collects paper"| node_paper
node_paper -->|"adds item"| node_inventory
node_paper -->|"grants rifle"| node_combat
node_player -->|"toggles light"| node_flashlight
node_movement -->|"produces footsteps"| node_sound
node_sound -->|"reveals nearby movement"| node_player
node_heartbeat -->|"warns nearby hunters"| node_player
node_player -->|"views status"| node_hud
node_player -->|"views map"| node_map
node_match_flow -->|"uses player health"| node_health
node_health -->|"death leads to spectating"| node_spectating
node_match_flow -->|"opens zones at search start"| node_zones
node_player -->|"escapes through zone"| node_zones
node_forest -->|"avoids prop overlaps"| node_props
node_forest -.->|"sets forest scene"| node_atmosphere

click node_match_flow "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/GameManager.cs"
click node_game_rules "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/GameSystems.cs"
click node_bot_players "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Bot.cs"
click node_health "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Health.cs"
click node_spectating "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Spectator.cs"
click node_movement "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/FirstPersonController.cs"
click node_combat "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/HeldWeapon.cs"
click node_inventory "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Inventory.cs"
click node_paper "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreePaper.cs"
click node_flashlight "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Flashlight.cs"
click node_forest "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreeLayout.cs"
click node_props "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/PropLayout.cs"
click node_zones "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Zones.cs"
click node_atmosphere "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/NightAtmosphere.cs"
click node_sound "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Footsteps.cs"
click node_heartbeat "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Heartbeat.cs"
click node_hud "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/PlayerHud.cs"
click node_map "https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Minimap.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_match_flow,node_game_rules,node_bot_players,node_health,node_spectating toneBlue
class node_movement,node_combat,node_inventory,node_paper,node_flashlight toneAmber
class node_forest,node_props,node_zones,node_atmosphere toneMint
class node_sound,node_heartbeat,node_hud,node_map toneRose
class node_player toneIndigo
```

## Components

### Match and teams

- [Match flow](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/GameManager.cs): `Assets/Scripts/GameManager.cs`
- [Game systems](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/GameSystems.cs): `Assets/Scripts/GameSystems.cs`
- [Bot players](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Bot.cs): `Assets/Scripts/Bot.cs`
- [Player health](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Health.cs): `Assets/Scripts/Health.cs`
- [Spectating](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Spectator.cs): `Assets/Scripts/Spectator.cs`

### Player actions

- [Player movement](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/FirstPersonController.cs): `Assets/Scripts/FirstPersonController.cs`
- [Weapons and combat](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/HeldWeapon.cs): `Assets/Scripts/HeldWeapon.cs`
- [Inventory](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Inventory.cs): `Assets/Scripts/Inventory.cs`
- [Paper pickup](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreePaper.cs): `Assets/Scripts/TreePaper.cs`
- [Flashlight](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Flashlight.cs): `Assets/Scripts/Flashlight.cs`

### Forest and atmosphere

- [Forest layout](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/TreeLayout.cs): `Assets/Scripts/TreeLayout.cs`
- [World props](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/PropLayout.cs): `Assets/Scripts/PropLayout.cs`
- [Blockade zones](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Zones.cs): `Assets/Scripts/Zones.cs`
- [Night atmosphere](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/NightAtmosphere.cs): `Assets/Scripts/NightAtmosphere.cs`

### Player feedback

- [Gameplay sound](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Footsteps.cs): `Assets/Scripts/Footsteps.cs`
- [Heartbeat cue](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Heartbeat.cs): `Assets/Scripts/Heartbeat.cs`
- [Player HUD](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/PlayerHud.cs): `Assets/Scripts/PlayerHud.cs`
- [Minimap](https://github.com/hjjhgame/hushhunt/blob/main/Assets/Scripts/Minimap.cs): `Assets/Scripts/Minimap.cs`

### Other components

- **Player**

## Connections

- Player → Match flow: starts match (evidence: `README.md`)
- Match flow → Bot players: includes five bots (evidence: `README.md`)
- Player → Player movement: moves with controls (evidence: `README.md`)
- Player → Weapons and combat: attacks opponents (evidence: `README.md`)
- Player → Paper pickup: collects paper (evidence: `README.md`)
- Paper pickup → Inventory: adds item (evidence: `README.md`)
- Paper pickup → Weapons and combat: grants rifle (evidence: `README.md`)
- Player → Flashlight: toggles light (evidence: `README.md`)
- Player movement → Gameplay sound: produces footsteps (evidence: `README.md`)
- Gameplay sound → Player: reveals nearby movement (evidence: `README.md`)
- Heartbeat cue → Player: warns nearby hunters (evidence: `README.md`)
- Player → Player HUD: views status (evidence: `README.md`)
- Player → Minimap: views map (evidence: `README.md`)
- Match flow → Player health: uses player health (evidence: `README.md`)
- Player health → Spectating: death leads to spectating (evidence: `README.md`)
- Match flow → Blockade zones: opens zones at search start (evidence: `README.md`)
- Player → Blockade zones: escapes through zone (evidence: `README.md`)
- Forest layout → World props: avoids prop overlaps (evidence: `README.md`)
- Forest layout → Night atmosphere: sets forest scene
