XSharp

Enemy projectile presentation review

The initial functional recipes incorrectly classified several full-body poses as projectile frames. Disjoint body/shot index lists did not establish their meaning. The source register retains exact local-ROM byte spans, SHA256 hashes and revision identities for the shared-graphics discoveries and Hotareeca selectors; original packets and animation sidecars remain immutable source references for the other corrections. The review ledger records visual findings separately from original-code validation and integrated corrections. The current snapshot covers all actors with an explicit firing profile in the recent functional files; actors which deliberately spawn another enemy remain a different category.

Rules for ongoing original-code adaptations

  1. Identify the native allocation pool, projectile ID and dispatch target. Object IDs from common actors, projectiles and cosmetic helpers are not interchangeable.
  2. Follow the child’s initialization, including assembly/resource overrides, palette binding, animation selector, facing and hitbox. A sprite frame table can include full-body poses, weapons, debris and effects in any order.
  3. Resolve the actual script to frame indices and inspect the selected graphics. Checking only dimensions, visible pixels or index overlap is insufficient.
  4. Use a dedicated child controller where direction, growth, impacts, lifetime or interaction depend on native state. Preserve explicit launch/facing properties through the engine’s spawn reset.
  5. Add a focused emission regression for the reproduced defect and record its scope. Static review and an isolated headless test do not establish native gameplay, rendering or replay parity.

EnemyShot.Configure now rejects missing shot art instead of borrowing an enemy’s idle frame. EnemyDefinition no longer creates an idle-based Shot sequence when the projectile list is empty. This exposes incomplete content rather than silently rendering an enemy clone; it does not guess another actor’s weapon.

Integrated native projectile corrections

The presentation bridge had a separate indexing defect: the Original sequence repeated each assembly entry six times, while NativeSpriteAnimation.Frame is an assembly index, not an engine animation tick. Native frame 12 could therefore display assembly frame 2. That sequence now contains exactly one entry per assembly frame; native scripts remain responsible for durations. Twenty headless theory cases check every source rectangle/pivot and sequence length in all current native body definitions. Functional Idle/Move/Attack/Shot sequences retain their six-tick timing. This catches an error that merely asserting the selected native index cannot detect; GPU rendering and emulator equivalence remain unverified.

The current focused group passes 226 cases together, including all selected-pose pixel/palette checks, 24 native frame-table mappings, actual emissions and native charge/flight/facing/trajectory checks, removed attacks and registry/inventory coverage of the invalid event mapping. This is a bounded presentation/control regression group, not original-runtime or full generic-suite certification. At this milestone, the source register’s 20 records and 89 retained byte spans were also checked against all three pinned local ROMs, including SHA1, address/ offset mapping, decoded Base64 length, SHA256 and byte equality. This verifies source integrity, independently from the bounded controller checks above. The rest of the old generic arena suite has not been certified after native AI adaptations; its earlier universal initial-shot assumptions remain obsolete.

Large or owner-like graphics can also be legitimate (a turtle shell, released enemy, mace or extended dirt column). Review their original role before removing or replacing them. Pending ledger entries are not certified correct just because they are smaller than an enemy.

Run the current focused regression group, including all selected-pose pixel/ palette checks, native frame-table mappings, registry/inventory checks and actual projectile/controller cases, without a ROM or render/audio devices:

pwsh -File tools/Test-EnemyProjectiles.ps1

-NoBuild reuses an already built test assembly. The source register additionally retains the explicit Snow Slider/Wild Tank state-table extents and selected code/ animation bytes. Automatic indirect-table recovery can stop before valid states; an omitted allocation in a recovered graph is not evidence that no attack exists.

Cannon Driver and Sole Solar primary-role review

The X2 enemy-projectile pointer table at $80:FA37 is indexed by id * 2. It is not an array of five-byte trampoline records. Cannon Driver 01 uses word entry $80:FA39 -> $80:FA9D -> $02:D638; 02 uses $80:FA3B -> $80:FAA2 -> $04:CC36. Both initialize assembly 0B/selector 05, whose native loop holds frame 17. The existing atlas already contains it: 16x16 at (57,142), pivot (8,8). Its 35 frame geometries and unchanged PNG extent were validated directly; only Shot selection changes from provisional flash/impact 3/4 to flight 17. The functional primary retains its existing spread/trajectory and contact damage 4. Common 24 follows heavy allocation; the separate light role has damage 2, different motion and command 01. Naming that cue does not implement its controller.

Sole Solar primary 07 uses $80:FA45 -> $80:FABB -> $04:CE11, selecting from data bank 06 table DE82: damage/script pairs 5/09, 3/08, 2/07. Current frame 18 is selector 08’s held 24x8 beam and now requests primary allocation cue 5E. Secondary 08 uses $80:FA47 -> $80:FAC0 -> $02:D81B, selectors 0F/17 and command 13; it is not the next frame of the primary. Generic body, trajectory and damage adapters remain. Revision-pinned spans are in projectile-source.json.

Earth Commander audio review: successful or rejected paired attempts through $07:9CF1/9D04 return before Common13 is queued at $07:9BD5/9C71. Projectile04 at $04:EC0A inherits assembly09 and selects script03, frames13/14/15/16. The current one-projectile functional volley and six-update timing are retained, but its provisional 4/5/6/7 art is replaced by that native flight selection. The two allocation/order/art cases and mixed-stage DX9 smoke pass; complete body, native pairing/motion/damage/hitbox and emulator parity are not established.