Storm Front Kit: Storm Walls, Fog, Lava and Hazards That Chase the Player
README.md
StormFront
A storm front that chases the players through the level (its fields cover the style, size, route,
pacing, warning, catch outcome and swallowed zones; see the package README). Put it on an empty
entity: the entity is the start of the route, or the base of a rising level. style swaps the
whole look and sound (storm, sandstorm, glitch, fog, collapse, lava, flood, void); pacing decides
how it moves (steady, speedUp, catchUp, checkpoints); warning decides how the danger looks
(vignette, edgePulse, siren, rumbleOnly, none); onCatch decides what happens to a player it
reaches (respawn at the last checkpoint still ahead of the front, eliminate, damage, slow,
pushForward, none). Fires caught (with safePoint and safeKind) / warning / swallowed / waiting
/ released / started / finished / looped / eliminated / revived / damaged events;
safePointAhead(player?) answers where a player could safely come back. One shared front for
every player: the owner peer drives it on the session clock, every peer draws the same front.
Every listener and loop it creates is released when it is destroyed, and a late command for a
destroyed front is ignored. Needs nothing beside it; uses Trapline and SecondWind when handed in.
See the package README and its guides.
Swallowed zones: zones / zonePrefix name them, swallowEffect picks one of five effects
(fall, sink, darken, shatter, dissolve, or none; auto is the style's own), and with
carryStanding (default on) every entity standing on a zone, up to carryHeight metres above it,
goes with it wherever it sits in the hierarchy, as do the zone's children and anything marked with
the attribute stormFrontKit.zone = "<zone name>". Every peer and late joiner sees the same.