Log inGet started
World

Storm Front Kit: Storm Walls, Fog, Lava and Hazards That Chase the Player

README.md

stormFrontKit.api

The game-facing API for stormFrontKit: find fronts (Storm.get(name), Storm.all(), Storm.nearest()), read the local player's danger (Storm.localDistance(), Storm.localDanger() 0-1 for a HUD), subscribe to any front's events in one call (Storm.on("caught", fn, owner?), which returns the function that unsubscribes; with owner the listener leaves with that front), find where a player could safely come back (Storm.safePointAhead(player?): their last checkpoint still ahead of the front, else the nearest safe point ahead of it), check whether a player is eliminated (Storm.isOut(player)), and revive one (Storm.revive(player)). Hand in the optional integrations once with Storm.integrate({ trapline, secondWind }). Owns the stormFrontKit.cmd channel non-owner peers send control calls on; its registry lives in modules.state() and a listener from an earlier play session or module run is inert, so replays run clean. require("stormFrontKit.api").