How it works · write-up
Semantic presentation boundary
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.
FirstSectionGame.presentationObjects queries the current typed gameplay state. It returns detached WorldObjectPresentation values defined in world-object.ts. It does not advance actors or keep a second gameplay model. Actor projections do not read sprite output. The explicit87F1 exit-effect adapter below interprets that source owner's typed coordinate/column records, which the original controller itself reads back as state.
Objects, components and source identity
ididentifies a particular lifetime. Reused core and projectile slots have a birth generation; the source owner ID and physical slot remain available undersource.archetypeIdselects replacement art.source.familydistinguishes the$E500actor,$E600core,$E800scenery and other namespaces; their numeric kinds are separate enums.componentsdescribe parts of a whole object. Actor$03has primary/secondary parts; the same-placement counter-linked$01/$02group has three source-identified parts;$1Fhas a gunner and vehicle. A five-piece$19or four-piece blast is one component. Sprite quadrants are not separate entities.relationshipspreserve established emitter/child or counter links. The genericemittedCore_00is an assigned semantic relation ID, not an assertion that every birth uses the same ASM allocator. Similar appearance or adjacent sprite slots do not establish a physical relationship.$22suppression is recorded separately from logical presence; it does not prove that$22belongs to a bridge.- Conversion and shared-blast provenance preserve an object's lifetime and original archetype while changing its animation and components. A new shared blast without known provenance receives its own lifetime.
- Scenery records remain whole objects. Unidentified background tile assemblies require source evidence before they can become additional objects.
Position and animation
nativeY is the lateral axis and nativeX is the forward screen axis. worldLateral = nativeY and worldForward = cameraPixels + nativeX; units are source pixels. The portrait renderer applies the existing rotation at its boundary. Core transforms preserve both fixed-point bytes; an offset-hold pose keeps its source displacement on the body component. Local component offsets come from the source object model, not from sprite quadrant geometry. The native coordinates retain their source wrap convention; this projection does not infer an unbounded physical trajectory.
Animation carries a named ObjectClip, semantic action, source phase, tick, remaining timer, pose selector and optional native heading. Appearance carries variant, damage stage and flash. A generic actor.state_2A6F clip preserves a source state without asserting a more specific animation that has not been established. Late actors retain their existing fidelity limits in the ROM ledger.
Source arc tables combine screen motion and an apparent arc. They do not determine physical height. Such objects report height: null and a trajectory source address with physicalHeightKnown: false. Other objects use height zero as their baseline. A 3D adapter must define scale, ground elevation and an art trajectory explicitly.
Rendering
Arcade output uses the canonical 96 typed sprite records, including retained and aliased output. It is intentionally independent of logical object presence.
worldObjectActors() adapts semantic objects for guide/model presentation. The current model view draws markers; its payload contains object/component IDs, assetId, animation, world/local transforms, relationships and trajectory metadata. It is a replacement-art boundary, not an implemented 3D renderer.
A future renderer can keep a scene-node registry keyed by object/component ID, resolve assetId and animation.clip through an art registry, update transforms and animation each frame, and dispose nodes whose lifetimes disappear. It should not inspect ROM sprite codes or pool slots to decide which model to draw.
Both HTTP pages expose Semantic objects / replacement art. This inspector receives the same read-only projection and performs no gameplay stepping. Existing shared-runtime lab scenarios exercise compounds, child births, suppression, flight, conversion, blasts and scene transitions.
Verification
tests/world-presentation.test.ts verifies actor projection independence from all 96 native sprite records, detached values, component grouping, source links, slot reuse, conversion/blast identity, native/guide axes, scene components and capture/restore. The source-owned87F1 effect adapter has a separate native-backed contract in structure-presentation.test.ts. Existing complete native transaction tests continue to verify gameplay and arcade output. Projection tests do not certify previously unreviewed ROM branches.
Live scene controllers (144)
Active cinematic and vignette payloads derive their current transform, pose, phase and timer from typed controllers. Retained scene publications serve layout/lifecycle notifications; queries do not depend on their cached poses or require a renderer publication call. Entrance/section controllers select the vehicle sequence. Its body, shadow and pulse keep stable component IDs; shadow and each pulse phase have separate named clips and the pulse's own timer/heading. Vehicle physical height and shadow/pulse relative height remain unknown (null), rather than being inferred from screen offsets.
The controlled AE91 terminal path releases the canonical E100 player before vehicle completion. Its ID continues through worldHandoff04, which already represents source play phase04 and displays the ready player. Inactive vehicle controllers disappear from the logical scene even if native output retains bytes. These are semantic projections; the arcade96-sprite renderer is unchanged. Setup-only zero-acceleration/terminal-pulse lab checkpoints reconstruct ordinary startup then seed source data, using the same runtime thereafter.
Scenery animation identity (152)
A whole scenery placement keeps its object/component IDs across standing, hit-pending and breakup. Standing uses scenery.stand_A498; hit-pending keeps that clip with action hitPending and tick0. A405's retained breakup birth selects scenery.breakup_A405 at tick0; state0F advances to tick1, continuing through expiry. Raw phase/remaining are diagnostic metadata, not an art asset selector. The model adapter exposes a typed WorldModelPayload with whole-object/component ID, asset, transform and animation; it does not require a replacement renderer to inspect sprite codes.
Player throw request versus pose (152)
92FE stores delay08 after the current control/draw pass. The semantic player therefore reports player.throwPending_92FE, action throwPending, tick0 and phase/remaining08 for that request. The following8A9A update decrements to07 and selects the first player.throw_8AB5 pose at tick0. The same player/body IDs continue throughout; neither a negative tick nor a new object lifetime is invented. A3D art binding can use the explicit pending state for a retained or anticipation pose, then map the source throw clip. Native retained sprite output remains independent.
Player projectile lineage (152)
A source936F birth records a typed player emitter separately from its unique projectile ID/lifetime. The semantic relationship playerShot_936F points to the player object, and is included in each replacement-model payload and the read-only inspector. Pool release/reuse still controls projectile lifetimes; same-ID view updates and state capture/restore preserve lineage. Imported/native snapshots without an observed factory keep lineage unknown. An art renderer can attach muzzle/trail effects using this explicit relationship instead of interpreting sprite slots or parsing object ID strings.
Player hit and death phases (152)
Contact state3F is player.hitPending_897A, action hitPending, tick0; it does not reuse the preceding walk counter. Death birth then selects ordinary8A7B, moving-terrain8A08 or lower-band8A25 according to the canonical variant. Pose countdown uses the owned40-update timer; the retained state countdown continues elapsed death time after that timer reaches zero. Source phase, remaining count and pose selector remain explicit. The same player/body IDs continue, and native retained output is independent of these replacement-art clips.
Retained fields and replacement-art input (168)
An initializer leaving a byte unchanged does not establish a gameplay dependency. The existing routine source audits distinguish the first read,overwrite and bounded unknowns. Position fractions consumed by movement,source timers and ordered firing effects remain gameplay state. Unused placement copies do not.
The1F,2B and0E/2E source owners now group literal sprite allocation and art selectors under a typed arcade compatibility record in gameplay/compatibility/scripted-actor.ts. The1F domain model no longer owns raw16 as its facing;semantic orientation uses heading02. Its gunner/vehicle components remain a single whole entity. The active2B projection has no gameplay countdown;its compatibility15 only becomes a real countdown through the source death path. The redundant cached2B death pose is removed;native output owns the literal pose.
Timed0E/2E no longer stores spawnProgress,a second removed flag or a copy of unread06. Removal is a transient controller result committed to canonical state00.06 remains solely in slot compatibility because this caller neither reads nor changes it;another family may consume it after reuse. Actor27 writes0A=C0 into slot compatibility at2895 without a duplicate active actor field. The generic actor,bridge05 and moving19 models also drop unread spawnProgress copies.
WorldModelPayload.animation preserves the complete component animation:clip,action,tick,phase,remaining,pose andheadingByte (169;criticalAI-225). Phase/pose are source values scoped by clip/asset,not model bone or animation indices. They may carry information that action/time/heading cannot reconstruct. Replacement art can map them to named stances and its own animation clips;do not discard them before that mapping exists. Each component retains its independent override. The1F gunner keeps selector16 as pose provenance separately from heading02;its fixed vehicle component uses pose0. The native renderer continues to read the canonical96 sprites.
The regular lab entry/aim presets now begin from zeroed slot inputs rather than arbitrary old-selector examples. Existing captured compatibility cases remain regression evidence;they do not claim ordinary producers or motivate further arbitrary-value matrices. Verification reuses complete native callers and ordinary gameplay routes,with existing model-boundary tests requiring lossless component animation after the169 correction.
Actor $17 attack cycle (170)
One semantic actor owns the two packed sprite pieces selected by $3833. actor17.attack_3859 preserves the complete phase counter, the low-two-bit Actor17Pose selector, the remaining two-update hold and heading. Poses are waiting_00, firstShot_01, recovery_02 and secondShot_03; both firing poses remain observable even when the shared allocator rejects a shot. The explicit actor17Shot_3891 relation identifies accepted projectiles. Native sprite output can be replaced without changing the actor or emitter lifetime. Physical identity remains unknown.
Soldier $26 (171)
A single arcade/soldier_26 owner projects soldier26.aim_305A,facing pose and actual heading. Grenade state3F is an explicit hitPending action;the same identity continues into the shared death clip on the next caller. The death pose is the actual source draw selector,including its birth-call return value,and is preserved for replacement art. Timer alone does not reconstruct that selector. Accepted shots carry soldier26Shot_307E emitter lineage. Sprite records are output only;replacing them does not change these semantic records.
Actor $18 displayed pose and phase (172)
One actor18.lifecycle_37C0 owner holds,moves,fades and releases. The source phase changes on two calls that perform no drawing. Actor18Pose therefore records the last source draw separately:holding_BE,moving_B5 andthe four fade selectors. WorldModelPayload.animation.pose can be null before this owner establishes a pose;null survives projection instead of becoming an invented0. Source image selectors are provenance for art mapping,not3D bone indices. All later phase/pose information survives state restore and changes to native sprite output. The ordinary producer and physical identity remain unknown.
Source structures and terrain layouts (28 / 83)
game.presentationStructures is a read-only collection of bounded terrain
layouts. Each has a stable ROM-derived ID, complete tile geometry/provenance,
independent actor-owner references and source-proved dependency links. The
reference's placementProgress is the table trigger, not the live object anchor;
objectId resolves the current semantic lifetime or is null. membership is
layoutContext: this is not another collision body or actor lifetime. Terrain
categories remain canonical gameplay data. Replacement art can consume the layout
and references together without absorbing emitted projectiles or children.
Actor22 is five cliff-bank patches in one display owner, with individual314E, 3156,315E,3168,3170 components. Mirrored08/normal00 poses and byte-wrapped far-bank offsets are explicit. Its previous-pass05 suppression flag means skipped native writes, not deletion. 05 has a static side/damage wall pose and independently aimed gun;14 has two panels. Existing28 fixed/moving clips remain unchanged.
The final exit87F1 effect has five8832..883A components and source-authored
visibilityMask values (ExitEffectQuarter), passed through WorldModelPayload.
Those bits identify source subparts, not model bones. Its unmatched retained birth
art has pose=null. Unlike actor state, the ASM deliberately uses its twenty typed
sprite records as canonical scroll/column-removal state. The isolated
final-exit-object.ts adapter queries only this explicit source owner; it creates
no second state array. Renderers receive semantic transforms, animation and masks
and need not read sprite output. Unknown larger physical/artistic parents stay
explicit rather than becoming fabricated gameplay entities. No 3D assets or
rendering implementation is included.