How zulfiqarrrr/the-last-exit-master works
THE LAST EXIT is a browser-based first-person survival-horror game. The player starts from the site’s Play action, enters the game controller, explores a selected environment, evades a stalking creature, finds keys, and uses the exit; HUD, map, CCTV, audio, and touch controls support that loop. The graph also preserves the documented alternate environments and monster viewer. Sampled excerpts and the source index support the main wiring; unsampled subsystems are included where documented, with uncertain links omitted.
Main entry points: game.js Game Controller · main.js App Bootstrap · level.js Level Builder · factory.js Creature Factory
Components 24
Entry and Controls
- Input Binding
src/game/input.js - Touch Controls
src/game/touch.js - Site Play UI
src/site/site.js - App Bootstrap
src/main.js - Game Controller
src/game/game.js
World and Navigation
- Level Builder
src/game/level.js - Environment Maps
src/game/maps - World Props
src/game/props.js
Survival Systems
- Player
src/game/player.js - Interactions
src/game/interactions.js - Lumen System
src/game/lumen.js - Lumen Key
src/game/lumen-key.js
Game Presentation
- Facility Map
src/game/map.js - Map Selection
src/game/map-select-ui.js - CCTV Console
src/game/cctv.js - HUD
src/game/hud.js - Audio Engine
src/game/audio.js
Creature Systems
- Creature AI
src/game/enemy.js - Creature Factory
src/game/creatures/factory.js - Warden Model
src/game/warden-model.js - Crawler Model
src/game/creatures/crawler-model.js - Archivist Model
src/game/creatures/archivist-model.js - Monster Viewer
src/game/monster-inspector.js
Other components
- Player
Connections 36
- Player → Site Play UI: presses Play
README.md - Site Play UI → App Bootstrap: starts game
src/site/site.js - App Bootstrap → Game Controller: creates
src/main.js - App Bootstrap → Warden Model: loads model
src/main.js - App Bootstrap → Crawler Model: loads model
src/main.js - App Bootstrap → Archivist Model: loads model
src/main.js - App Bootstrap → HUD: imports HUD
src/main.js - App Bootstrap → Audio Engine: imports audio
src/main.js - App Bootstrap → Map Selection: imports selector
src/main.js - App Bootstrap → Monster Viewer: opens viewer
src/main.js - Game Controller → Input Binding: routes input
src/game/game.js - Game Controller → Touch Controls: routes touch
src/game/game.js - Game Controller → Player: controls
src/game/game.js - Game Controller → Level Builder: builds level
src/game/game.js - Game Controller → Creature AI: updates creature
src/game/game.js - Game Controller → Interactions: routes actions
src/game/game.js - Game Controller → Lumen System: updates light
src/game/game.js - Game Controller → Lumen Key: spawns key
src/game/game.js - Game Controller → Facility Map: updates map
src/game/game.js - Game Controller → CCTV Console: updates CCTV
src/game/game.js - Level Builder → Environment Maps: uses layouts
src/game/level.js - Level Builder → World Props: builds props
src/game/level.js - Creature AI → Level Builder: queries navigation
src/game/enemy.js - Creature AI → Creature Factory: creates creature
src/game/enemy.js - Creature Factory → Warden Model: uses model
src/game/creatures/factory.js - Creature Factory → Crawler Model: uses model
src/game/creatures/factory.js - Creature Factory → Archivist Model: uses model
src/game/creatures/factory.js - CCTV Console → Level Builder: reads scene
src/game/cctv.js - Player → Input Binding: provides controls
README.md - Player → Touch Controls: uses mobile controls
README.md - Game Controller → HUD: updates display
- Game Controller → Audio Engine: plays effects
- Map Selection → Environment Maps: selects environment
- Monster Viewer → Warden Model: views model
src/game/monster-inspector.js - Monster Viewer → Crawler Model: views model
src/game/monster-inspector.js - Monster Viewer → Archivist Model: views model
src/game/monster-inspector.js