api
Hazard respawn on the last safe ground for twoDKit players. `SG.track(body, state, now)` each frame remembers solid footing (grounded, not dashing or slamming, not beside spikes) and keeps a private Trapline checkpoint there; `SG.moveTo(x, y)` sets the respawn point yourself (a b…
safeGround2D.api
Hazard respawn on the last safe ground for twoDKit players. SG.track(body, state, now) each frame remembers solid footing (grounded, not dashing or slamming, not beside spikes) and keeps a private Trapline checkpoint there; SG.moveTo(x, y) sets the respawn point yourself (a bench); SG.lastSafe(), SG.footing(state), SG.isSafeSpot(x, y), SG.configure({ interval, margin }), SG.stop(). Called by the SafeGround2D component, or by a kit that runs its own frame loop (sideScrollerKit).
Scoped to this part · feeds back into the world's score.