How it works · write-up
Static spawn catalog
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.
Which scripted $E500 actors can be stood early in the 3D view without showing anything the arcade would not. The 3D view
sees two to three screens beyond the arcade's spawn edge, so an object created at the edge appears inside the view
(measured in POPIN_AUDIT.md, regenerate with tools/popin_audit.mjs).
An actor is previewable when its birth state is fixed by its initializer: no random numbers, no player position, no
retained slot residue and no terrain test decide what it looks like when the placement is admitted. Previewing stands the
placement at its position, in that first-update pose, up to 768 pixels past the camera. The preview shares the live ids
where the live object does, so the model carries over at birth (src/presentation/project-static-preview.ts,
StaticPreviewMode, the Early static objects select on playlab.html).
Evidence is the admission function (src/gameplay/<kind>-world.ts) and the initializer it calls, read 2026-10-26. These are
ports of the ROM routines, so each verdict is source-read, not yet compared with a controlled MAME trace of a preview
frame; the unreviewed rows say so.
Previewed (birth state fixed)
| Kind | Admission and initializer | Fixed birth state | Previewed pose | Notes |
|---|---|---|---|---|
$03 mortar |
admitProjectileLauncher, initializeCompound03 |
heading $C0, phase wait, mode 0 |
closed, heading $C0, crew soldier shown |
The $1F48 residue only seeds the arc child. It aims at the player after birth. |
$05 river gun |
admitBridgeGun, initializeBridgeGun |
heading 0, phase 0, mode 3, no contacts | aim clip at heading 0, wall pose by lateral side | Heading 0 turns it to the right until its first aim. |
$13/$14 gate door |
admitGateDoor, enterGateDoor14 |
idle phase | closed | Its timer is copied from the slot residue but only counts while the door opens. |
$23 grenade supply |
admitGrenadeSupply, initializeSupply23 |
variant = lateral byte & 3, lateral byte &= $FC |
variant block(s), blinking with the global tick | Lateral differs from the placement byte by the low two bits. |
$0E raised shooter, $2E lower shooter |
admitTimedShooter, initializeSourceTimedShooter ($2971/$297E) |
phase opening, timer $0A |
opening, heading $C0 |
After ten updates it is removed if the player's native X has passed it, else it aims (random timers, heading from the player). The soldiers that rise from cover and rocks. |
$26 soldier |
admitSoldier26, initializeSourceSpawner |
heading $C0, phase 1, timer 1, facing 4 |
aim clip | |
$0A troop transport |
admitCoreEmitter, initializeCoreEmitterParent |
phase opening, timer $40, aux 0 (read 2026-10-27; an earlier note called it residue-seeded, which was wrong) |
the transport model at its birth position | It drives off at once, so the preview is a frozen frame of the first update. The soldiers it releases are core objects. |
$12 hut door |
admitEmplacementEmitter, enterEmplacement12 |
phase ready, timer 0 | closed | Soldiers it later emits are core objects, not previewed. |
$29 panel emitter |
admitCoreEmitter, initializeCoreEmitterParent |
selector = lateral & 3, lateral &= ~3, phase and timer 0 |
door at rest |
Fixed state but nothing to draw
| Kind | Why it is not previewed |
|---|---|
$00, $2F soldier spawner |
Same initializer as $26 (heading $C0, phase 1, timer 1, facing 4), but the 3D art binding hides it (its soldiers are separate core objects). |
$15, $24, $25 static actors |
Fixed state (admitStaticScriptedActor), but $15/$24 draw nothing and $25 is stage relief. |
$1A, $1B, $22, $28 bridge and wall parts |
Part of the stage models, which are always placed. |
$20 segment boundary, $21 soldier emitter |
Controllers with no body. |
Position fixed, pose not (candidates for a placeholder pose, not done)
| Kind | What the slot residue or player decides |
|---|---|
$17 alternating shooter |
Phase is fixed (waiting) but heading and timer come from the retained slot record (headingByte, retained.timer) of whichever actor used the slot before, and it keeps that heading until the player enters its arc. |
$27 aimed emplacement |
Facing, timer and heading come from slot residue (admitAimedActor); variant is lateral & 1. A turret facing the wrong way would show something the arcade does not, so it is left out. |
Dynamic (not previewable)
| Kind | Why |
|---|---|
$2B armored vehicle |
Variant from slot residue; rejected at birth unless its native X is at least $F0; then drives. |
$2C small vehicle, $2D cargo truck |
Lateral is the player's lateral plus a tick-derived jitter (initializeRoadVehicle); rejected below native X $F0; then drives. |
$19 motorbike, $2A returning launcher |
Born moving (initial velocity, approach phase); residue-seeded fields. |
$1F mobile gunner |
Entry uses the player's lateral and the tick. |
$01/$02 linked group |
Born walking as a group; velocity from the $6C64 entry. |
Core soldiers ($00-$0A core kinds) |
Birth depends on random countdowns and cooldowns, terrain checks and the wave record in runCoreBirthEntry; the section-wave scripts have fixed templates but not fixed timing. |
| Shots, grenades, arcing shells | Created by other objects. |
Not reviewed
$0B covered vehicle and its $0C projectile (covered-vehicle-world.ts, 261 lines) were not read; the audit shows one
birth, at the edge. $16 impact effect and $18 fading projectile are born by other objects.
Share of the pop-in this covers
In the route of POPIN_AUDIT.md, births at nativeX 200 or more: previewed kinds ($23 45, $0E 26, $2E 4,
$26 12, $29 10, $14 10, $03 9, $12 4, $05 6) account for 126 of them, plus the palms and rocks from the scenery table
(44 more). The largest remaining group is core soldiers coming from the right edge and the section waves (about 290 at the
edge) and enemy shots (237), which need the fade-in.