[modularization] Phase 4: Effects — Matrix Rain, Lightning, Beam, Runes, Gravity, Shockwave #423
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 4 of App.js Modularization (Refs #409)
What
Extract all visual effects into individual modules:
modules/effects/matrix-rain.js— Commit-density-driven rainmodules/effects/lightning.js— Lightning arcs between zonesmodules/effects/energy-beam.js— Agent-count-tethered beammodules/effects/rune-ring.js— Portal-tethered rune ringmodules/effects/gravity-zones.js— Portal-position gravity anomaliesmodules/effects/shockwave.js— Shockwave, fireworks, merge flashEach Effect Module
Depends on: Phase 3 (panels/)
Refs #409
PR #444 created.
Created six
modules/effects/modules as Phase 4 of the modularization:matrix-rain.js— density tethered tostate.zoneIntensitylightning.js— crystal float + arcs tethered tototalActivity()energy-beam.js— intensity tethered tostate.activeAgentCountrune-ring.js— count/colors/status tethered tostate.portalsgravity-zones.js— positions/intensity tethered tostate.portalsshockwave.js— triggered by merge events; exposesonMergeFlash()callback for stars.jsAll follow
init(scene,state,theme)/update(elapsed,delta)contract.app.jsunchanged — wiring happens in Phase 5.