reach
Tick-exact 2D platformer reachability, softlock, and difficulty-curve analyzer.
Decision-point graph solver for 2D platformers that replays real input programs tick-by-tick to verify exit reachability, key/clue placement, ability requirements, softlocks, and campaign difficulty pacing.
Planned repo: BestRoiMedia/bestroi-game-tools (MIT)Why we built it
Tile-grid flood fills cannot prove a wall-jump chain, vine swing, or slide-jump is actually possible under discrete 60 Hz physics. reach runs real input sequences through an exact integer physics engine to prove solvability and catch softlocks.
Architecture & how it works
engine.py implements a discrete 60 Hz platformer simulation (variable jump, coyote time, jump buffer, wall-slide/kick, slides, springs, vines, and perks). graph.py searches from decision nodes (ground, wall contact, vine catch) using a library of input programs and caches graphs by room and physics hash. check runs reachability and ability-ablation tests; difficulty computes route time, precision, hazard exposure, and recovery-space pacing across campaigns.
Key capabilities
- Tick-exact 60 Hz integer platformer physics engine with multi-variant character support
- Ability-ablation checks proving wall-jump, slide, or vine routes cannot be bypassed
- Detects sealed SOFTLOCK states, unreachable keys, and missing or buried hidden-key clues
- Campaign difficulty curve analysis flagging regressions, flat stretches, and long no-recovery runs
- Color-coded reachability overlay PNGs and generic JSON room format support
Usage example
python3 reach/reach.py check room_01 room_02 --out ./out/reach
python3 reach/reach.py difficulty --campaign --out ./out/reach