How it works · write-up
Gate door $14
Working notes, rendered as they are: they were written while building the game, so expect ROM addresses, register names and references to source files that are not published.
ArcadeActorKind.gateDoor_14 names the same original actor previously called
unidentified_14. It is one entity with two synchronized nine-piece panels.
The first placement is $7256, progress $07D4, lateral $50, sprites $FE70.
The adjacent background wall's membership and collision footprint remain open.
gate-door-14.ts translates $294E/$39AD/$39E5: phase $00 idle, $01
opening, $02 held, $03 closing. $875D writes the shared $E094 request
during player exit control, before $272F walks the scripted slots. The first
consumer clears it. Repeated requests preserve opening and restart a later
phase through a one-count opening. Raw $3A08 is indexed by the previous
phase: normal opening takes 16 updates, hold 80, close 64.
presentation/gate-door-14.ts uses raw $3A0C paired templates and the shared
$2B88 writer. On offscreen removal $3AAB clears the owner's sprite Y bytes
and advances IY; the discarded return skips phase stepping, then both draw
calls write after the cleared block. The native adapter preserves this
pointer effect. General world sprite-slot ownership remains in backlog67.
$8939 prioritizes the player's nonzero exit flag even when its state is
hit-pending $3F. Alignment writes heading $00/$80; forward motion writes
$40. At $D0, the edge return preserves the previous player sprites, and
the rest of the active-frame actor/projectile pass runs before mode $05.
Verification: 385 controlled door updates compare all 32 record bytes and all
384 sprite bytes; 47 approach updates compare the complete player record,
12 player sprite bytes and request/edge latches. Runtime regressions test
same-update request consumption and death-dispatch priority. In the HTTP lab,
select Area 1 movement and collision → Gate door gateDoor_14 and step.
The fixture initializes state only; all updates use FirstSectionGame.