XSharp

Direct X1 assembly-to-C# adaptations

The current workflow is extraction of original assets, assembly, tables and metadata, followed by direct semantic C# adaptation. The extractor does not need a transpiler for these ports. The existing bounded Creeper generator remains a previous milestone; it was not expanded for the following actors.

Source is X1 USA SHA-1 449A00631208FBCC8D58209E66D0D488674B7FB1. x1-direct-ai-source.json records source spans and SHA256 values. Historical disassembly labels are navigation aids; the pinned ROM bytes determine the actual tables and offsets.

Mad Pecker and Creeper release

MadPeckerControl directly adapts $82:A84F..A934; actor initialization follows $82:A808..A84E, proximity follows $82:A951..A988, and parent destruction releases a retained child as in $82:A935..A949.

Animation selectors 0/1 use $AF:B90F and original duration/flags/frame scripts. The child uses the previously ported Creeper procedures and original subtype speeds. The parent/child setup avoids mutable Entity init parameters: those parameters are reapplied after OnSpawn and would otherwise restore the child’s held position or undo the parent’s initialization shift.

The native population test is retained as AI behavior. Allocation uses engine capacity rather than emulating the original 15-slot physical actor pool. Engine culling and removal order still require original-runtime comparison.

Metal Wing live flight

MetalWingControl directly adapts $83:DC27..DCD2. Initialization starts the native horizontal speed at $0480 (4.5 pixels/tick) and uses animation 2. The actor flies right and does not emit the former generic horizontal shots.

The native player-status activation gate, same-type spawning cap, falling death stage and debris are still pending. Normal engine damage/destruction is retained in this milestone. This is a live-flight adaptation, not a completed native port.

Deferred verification

At the user’s request, behavioral tests, regression runs, save-state continuation and BizHawk frame comparison are deferred. This milestone is checked by compilation only. Earlier 1,655/55 test results belong to f176c02, before these adaptations.

The existing generic spawn test’s Mad Pecker setup was moved inside the native strict proximity window; its former 50-pixel separation becomes exactly 64 after native initialization. The updated test has not been run in this milestone. Further dedicated cases should cover holding/release order, allocation failure, global population, RNG call counts, parent death, subpixel braking/cap timing, activation gates and native death stages. No native parity percentage is certified.