How kevintngo/voidlight works
VOIDLIGHT DEPTHS is a browser-based 3D action game. The principal workflow is gameplay input and frame updates, with the game operating on a generated deck populated by the hero, enemies, bosses, and world objects; rendering, effects, and synthesized audio support the experience. The source is a set of globally shared JavaScript modules rather than an import graph. The map preserves the major systems named by the source index, but several links remain unshown because the excerpts do not expose their callers.
Main entry points: 09_build.js Deck Builder · 13_world.js World Objects · 12_boss.js Boss Fights · 15_audio.js Synthesized Audio
Components 24
Runtime and Rendering
- Game Loop
src/16_game.js - Mobile Controls
src/17_mobile.js - Core Utilities
src/01_core.js - WebGL Engine
src/01b_engine.js - Geometry
src/03_geom.js - Camera and Post
src/04_gx.js - Procedural Textures
src/02_tex.js
Deck and Content
- Deck Layout
src/06_deckgen.js - Themes
src/08_themes.js - Theme Content
src/08b_themes2.js - Prop Library
src/07_props.js - Prop Extensions
src/07b_props2.js - Deck Builder
src/09_build.js
Combatants and World
- Star Knight
src/10_hero.js - Monsters
src/11_monsters.js - Monster Content
src/11b_monsters2.js - Boss Fights
src/12_boss.js - Boss Content
src/12b_boss2.js - World Objects
src/13_world.js - Game AI
src/14_brain.js
Effects and Audio
- Visual Effects
src/05_fx.js - Synthesized Audio
src/15_audio.js
Other components
- Player
- Web Audio API
Connections 16
- Player → Game Loop: plays
- Mobile Controls → Game Loop: provides controls
- Procedural Textures → WebGL Engine: constructs textures
src/02_tex.js - Camera and Post → WebGL Engine: initializes GX
src/04_gx.js - Deck Builder → Deck Layout: generates layout
src/09_build.js - Deck Builder → Prop Library: builds batches
src/09_build.js - Deck Builder → World Objects: creates objects
src/09_build.js - Deck Builder → Camera and Post: activates lights
src/09_build.js - Deck Builder → Visual Effects: registers emitters
src/09_build.js - Monsters → World Objects: uses dangers
src/11_monsters.js - Boss Fights → Visual Effects: triggers effects
src/12_boss.js - Boss Fights → Synthesized Audio: plays sounds
src/12_boss.js - Boss Fights → World Objects: drops loot
src/12_boss.js - World Objects → Visual Effects: triggers effects
src/13_world.js - World Objects → Synthesized Audio: plays sounds
src/13_world.js - Synthesized Audio → Web Audio API: synthesizes audio