Log inGet started
Package

stormFrontKit.package

README.md

stormFrontKit.pacing

The pure pacing maths behind a storm front: Pacing.new(cfg) makes a state, Pacing.step(state, cfg, dt, measures, now) advances it one frame and returns the events that happened (waiting, released, finished, looped). measures is how far along each living player stands (route metres for a wall, height for rising). Covers steady (speed + acceleration up to maxSpeed), speedUp (ramps from startSpeed to maxSpeed over rampTime seconds on a linear, easeIn or easeOut curve, then holds maxSpeed; Pacing.rampSpeed(t, cfg) and Pacing.rampDistance(t, cfg) answer the speed and the distance covered t seconds in), catchUp (rubber-band to catchDistance behind the slowest player, between minSpeed and maxSpeed, rate-limited) and checkpoints (run to each gate minus gateOffset, wait until every player passes it or holdTime runs out). state.speed and state.cap are what the authority publishes so every peer extrapolates the same front. Tested by the stormFrontKit test suite.