XSharp

X2 ladder mount, movement and release

Native acquisition order and mount controller

The current X2 controller distinguishes acquisition while rising from acquisition while falling. Jump state $06 tests Up through $08:C418 before gravity, movement and collision; fall state $08 calls $08:C61A/C2D3 first. An accepted rising request therefore retains that update’s position, whereas a falling request retains its already resolved displacement. Idle also tests Up directly. These checks use the current input, independently of the legacy input history used by other controls.

The request enters mount $24/00 without aligning X. The next update initializes $24/01, aligns the integer X word while preserving its fractional byte, clears the shooting timer and starts sprite script $68. The script runs for seven updates; the following controller update observes its completion marker and requests ladder $2A/00. Movement starts on the subsequent ladder initializer. Stored VX/VY remain unchanged throughout the mount. Serialized mount phases, countdown and pending alignment preserve these boundaries across same-build snapshots. LadderMountDuration is seven in the X2 profile and eight in the common profile; the original timing policy remains opt-in through its game profile.

Device-free tests replay both the falling acquisition at frames 161–193 and the rising acquisition at frames 3744–3770 from Gap Jumps.bk2, including X/Y/VX/VY and mount/ladder states. Their revision-pinned captures are XSharp.Tests/Fixtures/X2/gap-first-ladder-mount.json and gap-rising-ladder-mount.json. This supersedes the earlier approximation below that combined delayed acquisition with an eight-update resource animation. Passing these clips does not establish full-scene movie equivalence.

Historical first mount milestone

For the later user-recorded air-climbing defect, original X1/X2 acquisition routines and the common anchor validation repair, see ladder acquisition after a gap jump. The timing milestone below remains historical.

The complete 4,186-input Gap Jumps.bk2 run now matches X/Y/VX/VY through frame 292. The next stored-speed difference is the dash-stop transition on frame 293, followed by position on 295. The engine remains alive throughout this run, unlike the earlier baseline. This still fails exact full-movie parity. parity/gap-jumps-ladders.json records the result and a successful 20-update snapshot replay from mount frame 163.

The source is the same revision-pinned X2 USA ROM/movie and BizHawk 2.11/BSNESv115+ capture documented in movie calibration. Fresh CPU/WRAM callbacks on frames 163–187 and 233–236 establish these details:

parity/gap-ladder-mount-writes.csv, gap-ladder-release-writes.csv and gap-ladders-source.json retain the write evidence and hashes. The native write-time PC commonly points immediately after the instruction. The original ROM, movie, memory and inputs were not changed.

At this historical milestone, UseOriginalLadderTiming preserved fractional X and stored mount speeds, suppressed mount displacement, restored walking air speed and paused the Jump release transition. LadderMovementInputLatency=0 selected immediate Up/Down control while attached, while acquisition still used the legacy delay. These options were enabled only by the X2 preset. Mount timing then depended on animation progress; the explicit native phases described above replace that approximation.

Device-free regressions run the real input/controller/collision code through the source mount and release sequences and compare X/Y/VX/VY. The probe marks its player alive so hitbox queries use the gameplay box rather than the dead/respawn preview box, and supplies the production eight-update mount duration. This test setup needs no rendering or audio device. The native full run separately checks the real stage, resource animations, scheduler and same-build state restoration.

Top-ladder transitions, other stage geometry and historical save-state compatibility are not certified by this milestone. Full-movie errors after frame 292 remain pending.