How pranaypr9/nexus-2097 works
NEXUS: 2097 is a browser-based cyberpunk action game. The player starts or continues a campaign, controls UNIT-07 through combat and district encounters, explores story records, and ultimately fights ARCHON; victory leads to the chapter-ending reveal. The graph separates runtime orchestration, combat, campaign/story, and player-facing systems, with progression and saved state as an internal layer. Edges follow sampled calls or README statements; unsampled runtime wiring is omitted rather than inferred.
Main entry points: game.js Game Controller · main.js Input and Startup · boss.js ARCHON Boss · ui.js HUD and Menus
Components 17
Game Runtime
- Input and Startup
main.js - Game Controller
game.js
Combat Systems
- ARCHON Boss
boss.js - UNIT-07
player.js - Enemy AI
enemies.js - Weapons and Projectiles
weapons.js - Combat Effects
effects.js
Campaign and Story
- District Builder
levels.js - Story Records
story.js
Player Experience
- Game Canvas and Panels
index.html - HUD and Menus
ui.js - Synthesized Audio
audio.js
Progression and Saves
- Upgrade Catalog
progression.js - Local Save Data
saveSystem.js
Other components
- Player
- Browser
- Three.js
Connections 34
- Player → Input and Startup: provides input
main.js - Browser → Input and Startup: loads scripts
README.md - Input and Startup → HUD and Menus: initializes
main.js - Input and Startup → Game Controller: initializes
main.js - Input and Startup → Weapons and Projectiles: routes controls
main.js - Input and Startup → UNIT-07: routes abilities
main.js - Input and Startup → Story Records: routes interaction
main.js - Game Controller → District Builder: builds districts
game.js - Game Controller → Combat Effects: initializes
game.js - Game Controller → Weapons and Projectiles: initializes
game.js - Game Controller → UNIT-07: initializes
game.js - Game Controller → Enemy AI: initializes
game.js - Game Controller → ARCHON Boss: initializes
game.js - Game Controller → Story Records: starts transmissions
game.js - HUD and Menus → Game Controller: starts campaign
ui.js - HUD and Menus → Upgrade Catalog: purchases upgrades
ui.js - HUD and Menus → Local Save Data: loads settings
ui.js - HUD and Menus → Synthesized Audio: toggles audio
ui.js - Story Records → District Builder: reads terminals
story.js - Story Records → Local Save Data: saves fragments
story.js - Story Records → HUD and Menus: shows dialogue
story.js - Story Records → Synthesized Audio: plays cues
story.js - UNIT-07 → Enemy AI: applies EMP
player.js - UNIT-07 → ARCHON Boss: damages boss
player.js - UNIT-07 → Combat Effects: creates effects
player.js - Weapons and Projectiles → Combat Effects: creates feedback
weapons.js - Weapons and Projectiles → ARCHON Boss: damages boss
weapons.js - ARCHON Boss → Game Controller: starts boss state
boss.js - ARCHON Boss → HUD and Menus: updates boss display
boss.js - ARCHON Boss → Combat Effects: triggers effects
boss.js - ARCHON Boss → Synthesized Audio: plays cues
boss.js - Three.js → Game Controller: renders scene
README.md - Game Canvas and Panels → Game Controller: hosts canvas
README.md - Upgrade Catalog → Local Save Data: stores upgrade levels
README.md