WP-017: Sprite animation at the original tick rate (Gen 1)

Status: ✅ Done (2026-11-14) Phase: 3 (graphics; leads into Phase 4 room logic) Depends on: WP-016 ✅ (rooms with placed sprites), WP-001 ✅ (sprite player traced) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half-day Pre-flight: pre-flight-WP-017-2026-11-14


Result (2026-11-14)

Exit criterion Result
1. Tick 0 and tick 37 match ✅ At graphics level 3 the engine loads each room, hashes it, runs 37 ticks and hashes it again. A reference model logs the same hashes; it uses the probe’s tree, the WP-016 blend model, and each placement at step floor(T / 3) mod n. The logs are identical: 69 Showdown rooms (55 of which change by tick 37) and 53 Phantom rooms (34 change). Draw orders still match too.
2. 36 ticks per second ✅ A live run of the Saloon logged 36, 72 … 360 ticks at 1,000 … 10,000 ms, and 432 at 12,002 ms. That is exact, because the engine counts ticks from getMillis() with the original’s integer formula.
3. Captures differ ✅ Two window captures 0.25 s apart differ: Scooby’s tail, the chandelier candles and the steam over the pie. Both were sent to Jeff and are not in git.
4. Build and diff ✅ Scooby-only build: 0 errors, 0 warnings. Fork commit 7fd40d5da6 stages its four files by name, inside engines/scooby/, and is pushed.

Notes:


Goal

Make the rooms move. Each placed sprite plays its sequence the way Scooby.exe does, at the original game-tick rate, and the screen redraws when a step changes.

Background

From WP-001’s decompile, read again for this WP:

Scope

In scope (fork, engines/scooby/ only):

Out of scope:

Exit criteria

  1. After 0 and after 37 ticks (step 12 mod n), every room in Showdown and Phantom matches a reference model (MD5), which uses the probe’s tree and blend model with each sprite at step floor(T / 3) mod n.
  2. The engine’s tick counter advances 36 ticks per second of wall time, within ±1 over 10 s.
  3. Two window captures a fraction of a second apart show the same room at different steps.
  4. Scooby-only build: 0 errors and 0 warnings in engines/scooby/. The fork diff stays inside engines/scooby/, staged by name.

Deliverables