How dam2323/the-space-archive works
The Space Archive is a static, educational browser game. The player enters through the title and time-travel introduction, explores the Archive hub, chooses a machine’s story and mini-game, then reads its historical debrief; optional branches cover scannable echoes, the Science Room, and the Wall of Names. The graph includes the five distinct machine games and the shared scene, input, rendering, state, persistence, and content layers. Several connections are documented in the README or visible in the source index; unsampled details are not inferred.
Main entry points: main.js Game entry · hub.js Archive hub · index.js Mini-game registry · scenes.js Scene manager
Components 28
Player experience
- Game entry
js/main.js - Title and options
js/scenes/title.js - Time-travel intro
js/scenes/intro.js - Archive hub
js/scenes/hub.js - Machine stories
js/scenes/story.js - Mini-game shell
js/scenes/game.js - Historical debrief
js/scenes/debrief.js - Echo fact cards
js/scenes/echo.js - Science Room
js/scenes/science.js - Wall of Names
js/scenes/wall.js - Credits and sources
js/scenes/credits.js
Machine mini-games
- Opportunity
js/minigames/opportunity.js - Ingenuity
js/minigames/ingenuity.js - Sojourner
js/minigames/sojourner.js - Lunar Roving Vehicle
js/minigames/lrv.js - Pioneer 10
js/minigames/pioneer10.js - Mini-game registry
js/minigames/index.js
Game engine
- Scene manager
js/engine/scenes.js - Input handling
js/engine/input.js - Canvas renderer
js/engine/render.js - Progress storage
js/engine/storage.js
Content and state
- Game state
js/state.js - Localized content
js/data/content.en.js - Spanish content
js/data/content.es.js - Fact sources
js/data/sources.js - Pixel sprites
js/data/sprites.js - Palette data
js/data/palette.js
Other components
- Player
Connections 34
- Player → Game entry: opens
README.md - Game entry → Scene manager: registers scenes
js/main.js - Game entry → Input handling: initializes input
js/main.js - Game entry → Progress storage: loads progress
js/main.js - Title and options → Time-travel intro: starts journey
js/scenes/title.js - Time-travel intro → Archive hub: arrives at Archive
README.md - Archive hub → Machine stories: selects machine
README.md - Machine stories → Mini-game shell: starts mini-game
js/scenes/story.js - Mini-game shell → Mini-game registry: selects game
js/scenes/game.js - Mini-game registry → Opportunity: routes to
js/minigames/index.js - Mini-game registry → Ingenuity: routes to
js/minigames/index.js - Mini-game registry → Sojourner: routes to
js/minigames/index.js - Mini-game registry → Lunar Roving Vehicle: routes to
js/minigames/index.js - Mini-game registry → Pioneer 10: routes to
js/minigames/index.js - Mini-game shell → Historical debrief: shows result
README.md - Archive hub → Echo fact cards: opens echo
README.md - Archive hub → Science Room: opens room
README.md - Archive hub → Wall of Names: opens list
README.md - Title and options → Credits and sources: opens credits
README.md - Game entry → Scene manager: starts loop
js/main.js - Scene manager → Canvas renderer: draws scenes
js/engine/scenes.js - Scene manager → Input handling: routes actions
- Progress storage → Game state: loads and saves
js/engine/storage.js - Game entry → Game state: initializes settings
js/main.js - Archive hub → Game state: reads progress
js/scenes/hub.js - Historical debrief → Fact sources: filters citations
js/scenes/debrief.js - Credits and sources → Fact sources: reads citations
js/scenes/credits.js - Science Room → Localized content: reads facts
js/scenes/science.js - Wall of Names → Localized content: reads descriptions
js/scenes/wall.js - Game entry → Localized content: loads language
js/main.js - Game entry → Spanish content: loads language
js/main.js - Archive hub → Pixel sprites: draws machines
js/scenes/hub.js - Canvas renderer → Palette data: uses palette
js/engine/render.js - Archive hub → Scene manager: changes scenes
js/scenes/hub.js