XSharp

X2 landing and top-ladder descent

The subsequent ladder-release correction records the latest continuous prefix. This page preserves the descent milestone.

The X2 controller finishes landing before accepting Up or Down ladder acquisition. Down at a ladder top uses the current input, separately from walking and Up acquisition. The descent request, initialization, animation and first ladder movement occupy distinct updates.

Read-only BizHawk 2.11/BSNESv115+ execution of the USA ROM and Gap Jumps.bk2 establishes the following sequence. Coordinates retain the original 8-bit fractional byte.

Frame Original behavior
1580 Acquire ladder-top floor contact while falling; retain stored fall speed
1581–1583 Play landing, ignoring ladder acquisition
1584 Enter idle while retaining the landing speed
1585 Clear idle speed and request descent $28/00, keeping X unchanged
1586 Initialize $28/01, center integer X in the 16-pixel cell, retain its fraction and select the first animation frame
1587–1594 Advance the two four-tick animation frames, then load the end marker
1595 Enter ordinary ladder control, add 24 pixels to Y and apply held Down movement 376/256 in this update
1599 Jump releases the ladder without applying gravity until the next update

$08:B2C7..B2D3 masks integer X with $FFF0 and adds eight. It does not write the fraction. $08:B2E0..B2EA adds $18 to integer Y. Animation script $2F:A477 contains 04 00 49 04 00 48 FF 80 48 FD FF. OriginalLadderRomTests checks these sites against the SHA-1-verified local ROM. parity/gap-top-ladder-source.json pins the source hashes and native write/control-flow evidence.

The engine preserves the request frame’s previous animation, performs centering on the following update and observes animation completion on the next controller update. The pending descent phase is persistent simulation state. X2 selects a separate 24-pixel descent offset; other profiles keep their existing offset and timing. Landing also clears stored vertical speed on the next idle update, before ladder acquisition can inherit it.

The device-free gap-landing-ladder-descent.json fixture compares frames 1578–1601 using ROM collision cells and the production player controller. Additional tests verify that Up and Down wait for landing to finish. Existing mount, release, wall, ceiling and legacy regressions remain active.

The later gap-walking-ladder-descent.json regression covers frames 3938–3970. Native full-walking $04 has no Down acquisition branch: frames 3944–3945 keep walking with Down+Right held, frame 3946 requests idle after Right is released, and only idle on 3947 requests $28/00. Centering on 3948 retains the fractional X produced by those final walking steps. The same eight-update descent animation then leads to ordinary downward movement on 3957. The X2 policy now restricts top descent to a controller that began the update in idle; legacy profiles retain their existing acquisition behavior.

parity/gap-jumps-top-ladder-descent.json records a complete continuous run of all 4,186 inputs, with one initial alignment and no later state correction. Player X/Y/VX/VY match through 1687 (40.3% of the inputs), and camera position/derived motion through 2001 (47.8%). The first remaining stored-speed difference is at 1688 on ladder release; the first player-position/camera difference is 2002. A save at the descent request on 1585 restores 20 subsequent updates of observed player/camera/RNG and engine entities exactly.

RNG still first differs at frame 1, and original/engine entity identities and class-specific states remain unmapped. Player health matches throughout this run, but full-scene parity remains unvalidated. These results measure this movie and ROM revision, rather than certifying all ladder geometry or game content.

Shooting pose cancellation on entry

X2 $08:B2D5 clears player byte 50 when top descent initializes. In the original trace, a shot at 2678 still has pose timer 12 at the descent request on 2682; initialization clears it on 2683 (the common decrement leaves FF). Ordinary downward ladder motion therefore begins with the completed descent on 2692. Keeping the previous shooting pose active in XSharp held ladder motion until 2695. Initialization now clears only the shooting pose/timer, preserving the projectile and charge ownership. A 16-state recorded regression checks the complete transition, movement and cancellation.

Down beside a ladder top

The LevelSandbox Wire Sponge replay (SHA-256 4AB236A3EEB7A24297C100FEC40EA2911FB16757766A8A25696702B0E1327BAD) holds Down on input rows 151–194 (zero-based). X stands at X 5530.7890625, Y 303.5625. One side of the foot probe reaches the top ladder tile at X 5536–5551, but X’s center is in the adjacent solid tile. The old request aligned X to 5528.7890625 in that solid column, then dropped him once the ordinary ladder controller checked the map.

BizHawk playback of the USA X2 Gap Jumps movie reaches the same platform on frame 2083. Placing X at the adjacent column in that already-loaded scene and holding Down for 44 updates left X stationary throughout. Unmodified playback from that point takes the valid descent: the center is over the top ladder tile, and the following update centers X at 5544.796875. The XSharp original-timing controller now tests the one-pixel column directly below X’s center at request time. Replaying all 327 inputs of the LevelSandbox recording keeps X stationary through all 44 Down inputs. The headless regression covers both the adjacent solid column and a valid center, including fractional X retention.