# deepnight/gamefeel architecture

> Architecture diagram of the GitHub repository deepnight/gamefeel, 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/deepnight/gamefeel
- Repository: https://github.com/deepnight/gamefeel

## Overview

This is a Haxe/Heaps prototype for demonstrating how individual game-feel details affect a game's perceived quality. The documented interaction is that users toggle features with START or ENTER; the tree also shows gameplay, UI, asset, and scripting code, but no source excerpts establish how those pieces call one another. The graph therefore avoids inferring internal wiring.

Main entry points: [`src/game/Game.hx`](https://github.com/deepnight/gamefeel/blob/master/src/game/Game.hx) (Game runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Game runtime"]
  node_game["Game runtime<br/>[Game.hx]"]
  node_scripts["Game scripting<br/>[Script.hx]"]
end

subgraph group_interaction["Interaction"]
  node_options["Feature options<br/>[Options.hx]"]
  node_ui["Menus and HUD"]
end

subgraph group_content["Game content"]
  node_entities["Game entities"]
  node_world["World assets<br/>[World.hx]"]
end

node_user(("Player"))

node_user -->|"toggles features"| node_game

click node_game "https://github.com/deepnight/gamefeel/blob/master/src/game/Game.hx"
click node_options "https://github.com/deepnight/gamefeel/blob/master/src/game/Options.hx"
click node_ui "https://github.com/deepnight/gamefeel/tree/master/src/game/ui"
click node_entities "https://github.com/deepnight/gamefeel/tree/master/src/game/en"
click node_world "https://github.com/deepnight/gamefeel/blob/master/src/game/assets/World.hx"
click node_scripts "https://github.com/deepnight/gamefeel/blob/master/src/game/tools/script/Script.hx"

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_game,node_scripts toneBlue
class node_options,node_ui toneAmber
class node_entities,node_world toneMint
class node_user toneIndigo
```

## Components

### Game runtime

- [Game runtime](https://github.com/deepnight/gamefeel/blob/master/src/game/Game.hx): `src/game/Game.hx`
- [Game scripting](https://github.com/deepnight/gamefeel/blob/master/src/game/tools/script/Script.hx): `src/game/tools/script/Script.hx`

### Interaction

- [Feature options](https://github.com/deepnight/gamefeel/blob/master/src/game/Options.hx): `src/game/Options.hx`
- [Menus and HUD](https://github.com/deepnight/gamefeel/tree/master/src/game/ui): `src/game/ui`

### Game content

- [Game entities](https://github.com/deepnight/gamefeel/tree/master/src/game/en): `src/game/en`
- [World assets](https://github.com/deepnight/gamefeel/blob/master/src/game/assets/World.hx): `src/game/assets/World.hx`

### Other components

- **Player**

## Connections

- Player → Game runtime: toggles features (evidence: `README.md`)
