# nasiftahmid-ux/nate_hopkins_vs._the_underworld architecture

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

- Interactive diagram: https://gitdiagram.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld
- Repository: https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld

## Overview

Nate Hopkins vs. the Underworld is a Godot side-scrolling brawler/platformer with a story-driven five-level run, boss fights, a progression shop, and a grade-adjusted rhythm finale. The graph follows the documented player-to-finale path and preserves major combat, progression, and presentation systems. No source excerpts were provided, so relationships below rely on the README; unsampled implementation details are represented at their exact enclosing directories.

Main entry points: [`autoload/game_state.gd`](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/autoload/game_state.gd) (Run and save state), [`scenes/levels`](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/levels) (Five stages), [`scenes/player/player.gd`](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/player/player.gd) (Player combat), [`scenes/bosses/final_rhythm.gd`](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/bosses/final_rhythm.gd) (Rhythm showdown)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_combat["Combat"]
  node_player["Player combat<br/>[player.gd]"]
  node_enemies["Enemy types"]
  node_bosses["Boss fights"]
  node_items["Hazards and rewards"]
end

subgraph group_stages["Stages"]
  node_levels["Five stages"]
  node_doors["Stage doors<br/>[door.gd]"]
  node_hints["Level hints<br/>[hint_zone.gd]"]
  node_platforms["Moving platforms<br/>[moving_platform.gd]"]
end

subgraph group_progression["Progression"]
  node_game_state[("Run and save state<br/>[game_state.gd]")]
  node_shop["Underworld shop<br/>[shop.gd]"]
end

subgraph group_finale["Finale"]
  node_grade["Combat grade<br/>[game_state.gd]"]
  node_rhythm["Rhythm showdown<br/>[final_rhythm.gd]"]
end

subgraph group_presentation["Presentation"]
  node_hud["Combat HUD<br/>[hud.gd]"]
  node_main_menu["Title and menus<br/>[main.gd]"]
  node_death["Death and retry<br/>[death_panel.gd]"]
  node_pause["Pause menu<br/>[pause_panel.gd]"]
  node_dialogue["Story dialogue<br/>[dialogue.gd]"]
end

node_player_actor(("Player"))

node_player_actor -->|"controls"| node_player
node_player -->|"fights"| node_enemies
node_player -->|"fights"| node_bosses
node_enemies -->|"pays rewards"| node_game_state
node_levels -->|"offers exit"| node_doors
node_doors -->|"routes through"| node_shop
node_shop -->|"stores purchases"| node_game_state
node_levels -->|"scatters hints"| node_hints
node_levels -.->|"includes"| node_platforms
node_items -.->|"damages"| node_player
node_levels -->|"records damage"| node_game_state
node_game_state -->|"calculates grade"| node_grade
node_grade -->|"sets song rules"| node_rhythm
node_bosses -->|"unlocks after both"| node_rhythm
node_game_state -->|"provides grade"| node_rhythm
node_game_state -->|"supplies penalty"| node_hud
node_game_state -->|"enables second chance"| node_death
node_main_menu -->|"starts fresh run"| node_game_state
node_grade -->|"shapes dialogue"| node_dialogue
node_pause -->|"preserves run"| node_game_state

click node_player "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/player/player.gd"
click node_enemies "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/enemies"
click node_bosses "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/bosses"
click node_items "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/items"
click node_levels "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/levels"
click node_doors "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/door.gd"
click node_hints "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/hint_zone.gd"
click node_platforms "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/moving_platform.gd"
click node_game_state "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/autoload/game_state.gd"
click node_shop "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/shop.gd"
click node_hud "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/hud.gd"
click node_main_menu "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/main.gd"
click node_death "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/death_panel.gd"
click node_pause "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/pause_panel.gd"
click node_dialogue "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/dialogue/dialogue.gd"
click node_grade "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/autoload/game_state.gd"
click node_rhythm "https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/bosses/final_rhythm.gd"

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,node_enemies,node_bosses,node_items toneBlue
class node_levels,node_doors,node_hints,node_platforms toneAmber
class node_game_state,node_shop toneMint
class node_grade,node_rhythm toneRose
class node_hud,node_main_menu,node_death,node_pause,node_dialogue,node_player_actor toneIndigo
```

## Components

### Combat

- [Player combat](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/player/player.gd): `scenes/player/player.gd`
- [Enemy types](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/enemies): `scenes/enemies`
- [Boss fights](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/bosses): `scenes/bosses`
- [Hazards and rewards](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/items): `scenes/items`

### Stages

- [Five stages](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/tree/main/scenes/levels): `scenes/levels`
- [Stage doors](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/door.gd): `scenes/levels/door.gd`
- [Level hints](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/hint_zone.gd): `scenes/levels/hint_zone.gd`
- [Moving platforms](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/levels/moving_platform.gd): `scenes/levels/moving_platform.gd`

### Progression

- [Run and save state](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/autoload/game_state.gd): `autoload/game_state.gd`
- [Underworld shop](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/shop.gd): `scenes/ui/shop.gd`

### Finale

- [Combat grade](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/autoload/game_state.gd): `autoload/game_state.gd`
- [Rhythm showdown](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/bosses/final_rhythm.gd): `scenes/bosses/final_rhythm.gd`

### Presentation

- [Combat HUD](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/hud.gd): `scenes/ui/hud.gd`
- [Title and menus](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/main.gd): `scenes/ui/main.gd`
- [Death and retry](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/death_panel.gd): `scenes/ui/death_panel.gd`
- [Pause menu](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/ui/pause_panel.gd): `scenes/ui/pause_panel.gd`
- [Story dialogue](https://github.com/nasiftahmid-ux/nate_hopkins_vs._the_underworld/blob/main/scenes/dialogue/dialogue.gd): `scenes/dialogue/dialogue.gd`

### Other components

- **Player**

## Connections

- Player → Player combat: controls (evidence: `README.md`)
- Player combat → Enemy types: fights (evidence: `README.md`)
- Player combat → Boss fights: fights (evidence: `README.md`)
- Enemy types → Run and save state: pays rewards (evidence: `README.md`)
- Five stages → Stage doors: offers exit (evidence: `README.md`)
- Stage doors → Underworld shop: routes through (evidence: `README.md`)
- Underworld shop → Run and save state: stores purchases (evidence: `README.md`)
- Five stages → Level hints: scatters hints (evidence: `README.md`)
- Five stages → Moving platforms: includes
- Hazards and rewards → Player combat: damages
- Five stages → Run and save state: records damage (evidence: `README.md`)
- Run and save state → Combat grade: calculates grade (evidence: `README.md`)
- Combat grade → Rhythm showdown: sets song rules (evidence: `README.md`)
- Boss fights → Rhythm showdown: unlocks after both (evidence: `README.md`)
- Run and save state → Rhythm showdown: provides grade (evidence: `README.md`)
- Run and save state → Combat HUD: supplies penalty (evidence: `README.md`)
- Run and save state → Death and retry: enables second chance (evidence: `README.md`)
- Title and menus → Run and save state: starts fresh run (evidence: `README.md`)
- Combat grade → Story dialogue: shapes dialogue (evidence: `README.md`)
- Pause menu → Run and save state: preserves run (evidence: `README.md`)
