# neudron/neudron.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/neudron/neudron.github.io
- Repository: https://github.com/neudron/neudron.github.io

## Overview

neu is a personal portfolio site with an optional, lazily loaded pixel-art game. A visitor browses the portfolio, then can enter the game; within it, the room engine handles movement, interaction, rendering, and transitions, while Act IV content supplies rooms, activities, and encounters. Progress and world state have dedicated owners. The README documents module load order and broad responsibilities; sampled engine excerpts show dispatch to entity kinds and transition classification. Most game subsystems were not sampled, so their internal connections are omitted.

Main entry points: [`js/core/engine.js`](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine.js) (Room engine), [`js/core/dev.js`](https://github.com/neudron/neudron.github.io/blob/main/js/core/dev.js) (Game bootstrap), [`js/page/main.js`](https://github.com/neudron/neudron.github.io/blob/main/js/page/main.js) (Portfolio interface), [`js/act4`](https://github.com/neudron/neudron.github.io/tree/main/js/act4) (Act IV content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_page["Portfolio interface<br/>[main.js]"]
  node_scene["3D scene<br/>[scene.js]"]
  node_stars["Star field<br/>[stars.js]"]
end

subgraph group_runtime["Game runtime"]
  node_kernel["Game bootstrap<br/>[dev.js]"]
  node_engine["Room engine<br/>[engine.js]"]
  node_entities["Entity behavior<br/>[engine-kinds.js]"]
  node_roomart["Room rendering<br/>[engine-look.js]"]
  node_exits["Exit presentation<br/>[engine-doors.js]"]
  node_transitions["Scene transitions<br/>[engine-trans.js]"]
  node_combat["Combat systems<br/>[danmaku.js]"]
  node_soundtrack["Synth soundtrack<br/>[music.js]"]
end

subgraph group_content["Game content"]
  node_gameplay["Game activities"]
  node_act4["Act IV content"]
  node_worlddata["World and sprites"]
end

subgraph group_state["Game state"]
  node_progress[("Quest progress<br/>[quest.js]")]
  node_worldstate[("Saved world<br/>[save.js]")]
  node_settings[("Player settings<br/>[settings.js]")]
end

node_visitor(("Visitor"))

node_visitor -.->|"browses"| node_page
node_page -->|"bridges to"| node_scene
node_visitor -.->|"enters game"| node_kernel
node_engine -->|"dispatches"| node_entities
node_engine -->|"classifies exits"| node_transitions
node_engine -.->|"draws rooms"| node_roomart
node_engine -.->|"draws exits"| node_exits
node_kernel -.->|"drives"| node_engine
node_kernel -->|"loads after"| node_progress
node_kernel -.->|"uses"| node_worldstate
node_kernel -.->|"uses"| node_settings
node_act4 -.->|"provides room content"| node_engine
node_gameplay -.->|"uses"| node_combat
node_act4 -.->|"hosts activities"| node_gameplay
node_worlddata -.->|"supplies content"| node_engine
node_kernel -.->|"drives"| node_soundtrack
node_page -.->|"renders"| node_stars

click node_page "https://github.com/neudron/neudron.github.io/blob/main/js/page/main.js"
click node_scene "https://github.com/neudron/neudron.github.io/blob/main/js/page/scene.js"
click node_stars "https://github.com/neudron/neudron.github.io/blob/main/js/page/stars.js"
click node_kernel "https://github.com/neudron/neudron.github.io/blob/main/js/core/dev.js"
click node_engine "https://github.com/neudron/neudron.github.io/blob/main/js/core/engine.js"
click node_entities "https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-kinds.js"
click node_roomart "https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-look.js"
click node_exits "https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-doors.js"
click node_transitions "https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-trans.js"
click node_combat "https://github.com/neudron/neudron.github.io/blob/main/js/core/danmaku.js"
click node_gameplay "https://github.com/neudron/neudron.github.io/tree/main/js/game"
click node_act4 "https://github.com/neudron/neudron.github.io/tree/main/js/act4"
click node_worlddata "https://github.com/neudron/neudron.github.io/tree/main/js/data"
click node_progress "https://github.com/neudron/neudron.github.io/blob/main/js/core/quest.js"
click node_worldstate "https://github.com/neudron/neudron.github.io/blob/main/js/core/save.js"
click node_settings "https://github.com/neudron/neudron.github.io/blob/main/js/core/settings.js"
click node_soundtrack "https://github.com/neudron/neudron.github.io/blob/main/js/core/music.js"

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_page,node_scene,node_stars toneBlue
class node_kernel,node_engine,node_entities,node_roomart,node_exits,node_transitions,node_combat,node_soundtrack toneAmber
class node_gameplay,node_act4,node_worlddata toneMint
class node_progress,node_worldstate,node_settings toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Portfolio interface](https://github.com/neudron/neudron.github.io/blob/main/js/page/main.js): `js/page/main.js`
- [3D scene](https://github.com/neudron/neudron.github.io/blob/main/js/page/scene.js): `js/page/scene.js`
- [Star field](https://github.com/neudron/neudron.github.io/blob/main/js/page/stars.js): `js/page/stars.js`

### Game runtime

- [Game bootstrap](https://github.com/neudron/neudron.github.io/blob/main/js/core/dev.js): `js/core/dev.js`
- [Room engine](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine.js): `js/core/engine.js`
- [Entity behavior](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-kinds.js): `js/core/engine-kinds.js`
- [Room rendering](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-look.js): `js/core/engine-look.js`
- [Exit presentation](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-doors.js): `js/core/engine-doors.js`
- [Scene transitions](https://github.com/neudron/neudron.github.io/blob/main/js/core/engine-trans.js): `js/core/engine-trans.js`
- [Combat systems](https://github.com/neudron/neudron.github.io/blob/main/js/core/danmaku.js): `js/core/danmaku.js`
- [Synth soundtrack](https://github.com/neudron/neudron.github.io/blob/main/js/core/music.js): `js/core/music.js`

### Game content

- [Game activities](https://github.com/neudron/neudron.github.io/tree/main/js/game): `js/game`
- [Act IV content](https://github.com/neudron/neudron.github.io/tree/main/js/act4): `js/act4`
- [World and sprites](https://github.com/neudron/neudron.github.io/tree/main/js/data): `js/data`

### Game state

- [Quest progress](https://github.com/neudron/neudron.github.io/blob/main/js/core/quest.js): `js/core/quest.js`
- [Saved world](https://github.com/neudron/neudron.github.io/blob/main/js/core/save.js): `js/core/save.js`
- [Player settings](https://github.com/neudron/neudron.github.io/blob/main/js/core/settings.js): `js/core/settings.js`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio interface: browses
- Portfolio interface → 3D scene: bridges to (evidence: `js/page/main.js`)
- Visitor → Game bootstrap: enters game
- Room engine → Entity behavior: dispatches (evidence: `js/core/engine.js`)
- Room engine → Scene transitions: classifies exits (evidence: `js/core/engine.js`)
- Room engine → Room rendering: draws rooms
- Room engine → Exit presentation: draws exits
- Game bootstrap → Room engine: drives
- Game bootstrap → Quest progress: loads after
- Game bootstrap → Saved world: uses
- Game bootstrap → Player settings: uses
- Act IV content → Room engine: provides room content
- Game activities → Combat systems: uses
- Act IV content → Game activities: hosts activities
- World and sprites → Room engine: supplies content
- Game bootstrap → Synth soundtrack: drives
- Portfolio interface → Star field: renders
