[modularization] Phase 5: Terrain, Portals, Narrative + Final Slim-Down #424
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 5 of App.js Modularization (Refs #409)
What
Extract remaining systems and slim app.js to ~200-line orchestrator:
Terrain:
modules/terrain/island.js— Floating island + crystalsmodules/terrain/clouds.js— Weather-tethered cloud layermodules/terrain/stars.js— Star field + constellations (BTC-tethered)Portals:
modules/portals/portal-system.js— Portal creation, warp, health checksmodules/portals/commit-banners.js— Floating commit bannersNarrative:
modules/narrative/bookshelves.js— Floating bookshelvesmodules/narrative/oath.js— Oath display + enter/exitmodules/narrative/chat.js— Chat panel, speech bubbles, NPC dialogUtils:
modules/utils/perlin.js— Perlin noise generatormodules/utils/geometry.js— Shared geometry helpersmodules/utils/canvas-utils.js— Canvas texture creation helpersFinal State of app.js
Acceptance Criteria
node --check app.jspassesDepends on: Phase 4 (effects/)
Refs #409
Closed per direction shift (#542). Reason: Modularization phase 5 (duplicate) — modularizing deleted code.
The Nexus has three jobs: Heartbeat, Harness, Portal Interface. This issue doesn't serve any of them.