Lantern Depths: Find the Shade Dash, Slay the Thorn Knight
README.md
sideScrollerKit.gates
The rules every gate kind plays by, as pure functions the Gate component calls each frame and the test suite drives without a running game. Gates.decide(kind, ctx) answers "open", "refuse" or "wait" for a gate this player is touching (crystal needs dash and a dash, smash needs slam and a slam, grip needs wallJump, seal needs its ability, door needs a key, thorns need a strike, a switch opens on touch). Gates.dropStep(dropping, ctx) is the one-way drop-through rule: a player standing on the slab who holds down, or who slams onto it, falls through it; from below it stays solid.