How ncase/wbwwb works
This repository implements a browser game about news cycles, social escalation, and violence. The principal workflow is: initialize and load assets, enter a scene, explore a world, and use the camera to photograph events that advance the story. The scene scripts preserve distinct acts and post-game content; character behaviors and world effects form the simulation layer. Evidence is limited to the supplied excerpts and README, so unsampled scene transitions and implementation details are not inferred.
Main entry points: SceneManager.js Scene manager · Game.js Game loop and assets · Act_II.js Act II escalation · Act_III.js Act III murders
Components 24
Game runtime
- Game loop and assets
js/core/Game.js - Scene manager
js/core/SceneManager.js - Scene lifecycle
js/core/Scene.js - Howler audio
js/lib/howler.js
Story scenes
- Preloader
js/scenes/Scene_Preloader.js - Act I
js/scenes/Act_I.js - Act II escalation
js/scenes/Act_II.js - Act III murders
js/scenes/Act_III.js - Game scene
js/scenes/Scene_Game.js - Meta scene
js/scenes/Scene_Meta.js - Credits and endings
js/scenes/Scene_Credits.js - Localized text
js/textStrings.js - Post-credits scenes
js/scenes/Scene_Post_Credits.js - Further post-credits
js/scenes/Scene_Post_Post_Credits.js - Quote scene
js/scenes/Scene_Quote.js - Prototype ending
js/scenes/Scene_EndPrototype.js
World simulation
- Photo director
js/game/Director.js - World and props
js/game/World.js - Camera
js/game/Camera.js - Cricket prop
js/misc/Cricket.js
Characters and audio
- Everyday characters
js/peeps/NormalPeep.js - Character behavior
js/game/Peep.js - Murderers
js/peeps/MurderPeep.js
Other components
- Player
Connections 20
- Player → Game loop and assets: plays
README.md - Game loop and assets → Scene manager: updates
js/core/Game.js - Game loop and assets → Howler audio: loads and mutes
js/core/Game.js - Scene manager → Scene lifecycle: updates and kills
js/core/SceneManager.js - Scene manager → Preloader: dispatches scenes
js/core/SceneManager.js - Scene manager → Game scene: dispatches scenes
- Scene manager → Act I: dispatches scenes
- Scene manager → Act II escalation: dispatches scenes
- Scene manager → Act III murders: dispatches scenes
- Scene manager → Meta scene: dispatches scenes
- Scene manager → Credits and endings: dispatches scenes
- Scene manager → Post-credits scenes: dispatches scenes
- Scene manager → Further post-credits: dispatches scenes
- Scene manager → Quote scene: dispatches scenes
- Scene manager → Prototype ending: dispatches scenes
- Act II escalation → Localized text: reads captions
js/scenes/Act_II.js - Act II escalation → World and props: replaces characters
js/scenes/Act_II.js - Act III murders → Murderers: creates murderers
js/scenes/Act_III.js - Photo director → Cricket prop: adds prop
js/game/Director.js - Game loop and assets → Photo director: registers audio assets