# moshezelinger/star-journey architecture

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

- Interactive diagram: https://gitdiagram.com/moshezelinger/star-journey
- Repository: https://github.com/moshezelinger/star-journey

## Overview

Star Journey is a browser-based Three.js platformer in which the player explores four small-planet stages and rescues friends. The documented journey runs from Wind Gardens through Basalt Mines and Ink Swamp to Furnace Moon; controls include movement, jumping, punching, and camera reset. The JavaScript tree also identifies shared gameplay, character/model, day-cycle, and tuning subsystems. Source excerpts focus on QA tools rather than runtime wiring, so internal connections beyond the documented stage sequence are omitted. The stage sequence and capabilities are grounded in the README; unsampled runtime integration is not asserted.

Main entry points: [`index.html`](https://github.com/moshezelinger/star-journey/blob/main/index.html) (Game page), [`js/wind-gardens.js`](https://github.com/moshezelinger/star-journey/blob/main/js/wind-gardens.js) (Wind Gardens), [`js/basalt-mines.js`](https://github.com/moshezelinger/star-journey/blob/main/js/basalt-mines.js) (Basalt Mines), [`js/ink-swamp.js`](https://github.com/moshezelinger/star-journey/blob/main/js/ink-swamp.js) (Ink Swamp)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Game experience"]
  node_page["Game page<br/>[index.html]"]
  node_shared["Shared gameplay<br/>[shared.js]"]
end

subgraph group_worlds["Planet stages"]
  node_wind["Wind Gardens<br/>[wind-gardens.js]"]
  node_mines["Basalt Mines<br/>[basalt-mines.js]"]
  node_swamp["Ink Swamp<br/>[ink-swamp.js]"]
  node_furnace["Furnace Moon<br/>[furnace-moon.js]"]
end

subgraph group_presentation["Characters and presentation"]
  node_characters["Character designs<br/>[characters.js]"]
  node_models["3D models<br/>[models.js]"]
  node_daycycle["Day and night<br/>[day-cycle.js]"]
end

subgraph group_configuration["Tuning and controls"]
  node_tuning["Game tuning<br/>[tuning.js]"]
  node_tunepanel["Tuning panel<br/>[tune-panel.js]"]
end

node_player(("Player"))

node_player -->|"plays"| node_page
node_page -->|"begins journey"| node_wind
node_wind -->|"continues to"| node_mines
node_mines -->|"continues to"| node_swamp
node_swamp -->|"continues to"| node_furnace

click node_page "https://github.com/moshezelinger/star-journey/blob/main/index.html"
click node_shared "https://github.com/moshezelinger/star-journey/blob/main/js/shared.js"
click node_wind "https://github.com/moshezelinger/star-journey/blob/main/js/wind-gardens.js"
click node_mines "https://github.com/moshezelinger/star-journey/blob/main/js/basalt-mines.js"
click node_swamp "https://github.com/moshezelinger/star-journey/blob/main/js/ink-swamp.js"
click node_furnace "https://github.com/moshezelinger/star-journey/blob/main/js/furnace-moon.js"
click node_characters "https://github.com/moshezelinger/star-journey/blob/main/js/characters.js"
click node_models "https://github.com/moshezelinger/star-journey/blob/main/js/models.js"
click node_daycycle "https://github.com/moshezelinger/star-journey/blob/main/js/day-cycle.js"
click node_tuning "https://github.com/moshezelinger/star-journey/blob/main/js/tuning.js"
click node_tunepanel "https://github.com/moshezelinger/star-journey/blob/main/js/tune-panel.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_shared toneBlue
class node_wind,node_mines,node_swamp,node_furnace toneAmber
class node_characters,node_models,node_daycycle toneMint
class node_tuning,node_tunepanel toneRose
class node_player toneIndigo
```

## Components

### Game experience

- [Game page](https://github.com/moshezelinger/star-journey/blob/main/index.html): `index.html`
- [Shared gameplay](https://github.com/moshezelinger/star-journey/blob/main/js/shared.js): `js/shared.js`

### Planet stages

- [Wind Gardens](https://github.com/moshezelinger/star-journey/blob/main/js/wind-gardens.js): `js/wind-gardens.js`
- [Basalt Mines](https://github.com/moshezelinger/star-journey/blob/main/js/basalt-mines.js): `js/basalt-mines.js`
- [Ink Swamp](https://github.com/moshezelinger/star-journey/blob/main/js/ink-swamp.js): `js/ink-swamp.js`
- [Furnace Moon](https://github.com/moshezelinger/star-journey/blob/main/js/furnace-moon.js): `js/furnace-moon.js`

### Characters and presentation

- [Character designs](https://github.com/moshezelinger/star-journey/blob/main/js/characters.js): `js/characters.js`
- [3D models](https://github.com/moshezelinger/star-journey/blob/main/js/models.js): `js/models.js`
- [Day and night](https://github.com/moshezelinger/star-journey/blob/main/js/day-cycle.js): `js/day-cycle.js`

### Tuning and controls

- [Game tuning](https://github.com/moshezelinger/star-journey/blob/main/js/tuning.js): `js/tuning.js`
- [Tuning panel](https://github.com/moshezelinger/star-journey/blob/main/js/tune-panel.js): `js/tune-panel.js`

### Other components

- **Player**

## Connections

- Player → Game page: plays (evidence: `README.md`)
- Game page → Wind Gardens: begins journey (evidence: `README.md`)
- Wind Gardens → Basalt Mines: continues to (evidence: `README.md`)
- Basalt Mines → Ink Swamp: continues to (evidence: `README.md`)
- Ink Swamp → Furnace Moon: continues to (evidence: `README.md`)
