# reyhanitsme/midnight-stream-godot architecture

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

- Interactive diagram: https://gitdiagram.com/reyhanitsme/midnight-stream-godot
- Repository: https://github.com/reyhanitsme/midnight-stream-godot

## Overview

Midnight Stream is an offline, Android-focused Godot game. The documented user journey is playing through a mobile interface; the tree suggests menu, prologue, player interaction, dialogue, and in-game UI subsystems. No source excerpts were provided, so most runtime connections below are dashed and unverified; directory paths identify tree-supported subsystems, not inspected implementations.

Main entry points: [`scripts/ui/screens`](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/ui/screens) (Screen flow), [`scenes/gameplay/prologue`](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/gameplay/prologue) (Prologue), [`scenes/entities/player`](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/entities/player) (Player character), [`scripts/components/behaviors`](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors) (Gameplay behaviors)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Game entry"]
  node_project["Godot project<br/>[project.godot]"]
end

subgraph group_screens["Menus and screens"]
  node_screen_scripts["Screen flow"]
  node_main_menu["Main menu"]
  node_load_screen["Load game"]
  node_settings["Settings"]
  node_intro["Intro"]
end

subgraph group_gameplay["Gameplay"]
  node_prologue["Prologue"]
  node_player_entity["Player character"]
  node_interactables["Interactables"]
  node_behaviors["Gameplay behaviors"]
  node_dialogue["Dialogue"]
  node_interaction["Interaction"]
end

subgraph group_interface["In-game interface"]
  node_hud["HUD"]
  node_inventory["Inventory"]
  node_pause["Pause menu"]
  node_touch_controls["Touch controls"]
end

subgraph group_assets["Game content"]
  node_game_assets["Game assets"]
end

node_player(("Player"))

node_player -.->|"launches"| node_project
node_project -.->|"opens"| node_main_menu
node_main_menu -.->|"uses"| node_screen_scripts
node_screen_scripts -.->|"routes"| node_load_screen
node_screen_scripts -.->|"routes"| node_settings
node_screen_scripts -.->|"routes"| node_intro
node_screen_scripts -.->|"starts"| node_prologue
node_player -.->|"uses"| node_touch_controls
node_prologue -.->|"features"| node_player_entity
node_player_entity -.->|"interacts"| node_interactables
node_player_entity -.->|"uses"| node_behaviors
node_behaviors -.->|"includes"| node_dialogue
node_behaviors -.->|"includes"| node_interaction
node_player -.->|"views"| node_hud
node_hud -.->|"opens"| node_inventory
node_hud -.->|"opens"| node_pause
node_prologue -.->|"uses"| node_game_assets

click node_project "https://github.com/reyhanitsme/midnight-stream-godot/blob/main/project.godot"
click node_screen_scripts "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/ui/screens"
click node_main_menu "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/main_menu"
click node_load_screen "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/load_game"
click node_settings "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/settings"
click node_intro "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/intro"
click node_prologue "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/gameplay/prologue"
click node_player_entity "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/entities/player"
click node_interactables "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/entities/interactables"
click node_behaviors "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors"
click node_dialogue "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors/dialogue"
click node_interaction "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors/interaction"
click node_hud "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/hud"
click node_inventory "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface/modals/inventory"
click node_pause "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface/modals/pause"
click node_touch_controls "https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface"
click node_game_assets "https://github.com/reyhanitsme/midnight-stream-godot/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_project toneBlue
class node_screen_scripts,node_main_menu,node_load_screen,node_settings,node_intro toneAmber
class node_prologue,node_player_entity,node_interactables,node_behaviors,node_dialogue,node_interaction toneMint
class node_hud,node_inventory,node_pause,node_touch_controls toneRose
class node_game_assets,node_player toneIndigo
```

## Components

### Game entry

- [Godot project](https://github.com/reyhanitsme/midnight-stream-godot/blob/main/project.godot): `project.godot`

### Menus and screens

- [Screen flow](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/ui/screens): `scripts/ui/screens`
- [Main menu](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/main_menu): `scenes/ui/screens/main_menu`
- [Load game](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/load_game): `scenes/ui/screens/load_game`
- [Settings](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/settings): `scenes/ui/screens/settings`
- [Intro](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/screens/intro): `scenes/ui/screens/intro`

### Gameplay

- [Prologue](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/gameplay/prologue): `scenes/gameplay/prologue`
- [Player character](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/entities/player): `scenes/entities/player`
- [Interactables](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/entities/interactables): `scenes/entities/interactables`
- [Gameplay behaviors](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors): `scripts/components/behaviors`
- [Dialogue](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors/dialogue): `scripts/components/behaviors/dialogue`
- [Interaction](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/behaviors/interaction): `scripts/components/behaviors/interaction`

### In-game interface

- [HUD](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scenes/ui/hud): `scenes/ui/hud`
- [Inventory](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface/modals/inventory): `scripts/components/interface/modals/inventory`
- [Pause menu](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface/modals/pause): `scripts/components/interface/modals/pause`
- [Touch controls](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/scripts/components/interface): `scripts/components/interface`

### Game content

- [Game assets](https://github.com/reyhanitsme/midnight-stream-godot/tree/main/assets): `assets`

### Other components

- **Player**

## Connections

- Player → Godot project: launches (evidence: `README.md`)
- Godot project → Main menu: opens
- Main menu → Screen flow: uses
- Screen flow → Load game: routes
- Screen flow → Settings: routes
- Screen flow → Intro: routes
- Screen flow → Prologue: starts
- Player → Touch controls: uses (evidence: `README.md`)
- Prologue → Player character: features
- Player character → Interactables: interacts
- Player character → Gameplay behaviors: uses
- Gameplay behaviors → Dialogue: includes
- Gameplay behaviors → Interaction: includes
- Player → HUD: views
- HUD → Inventory: opens
- HUD → Pause menu: opens
- Prologue → Game assets: uses
