WP-029: Each room’s own setup, and Town Center (Gen 1)

Status: ✅ Done (2026-11-14) Phase: 3 (game logic: the story rooms) Depends on: WP-024 ✅ (snacks), WP-026 ✅ (the profile), WP-027 ✅ (room classes), WP-028 ✅ (the story’s values: MoaningActive) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Day Pre-flight: pre-flight-WP-029-2026-11-14


Result (2026-11-14)

Exit criteria:

  1. Every room’s music and opening: ✅
  2. Town Center against the trace: ✅
  3. Live, Showdown: ✅ start_room=ROOM_P01_Town_Center, driven by the engine’s test_script, with real Escape key events (key 27):
    • The opening held input and started on tick 100; Escape skipped it.
    • The exit gave Town_Center.100A_, the toolbar came in, and the snack box flashed.
    • Scooby ate the snack.
    • The hanging sign came down, and Scooby carried the sign into the toolbar.
    • The exit then walked the gang to Street 3, whose opening Street_3.320A_ started on tick 100.
    • Nine frames were captured from the screen.
  4. Build and regressions: ✅

Deviations and gaps:

Goal

Give every room the setup its class gives it in the original, and play the first story room, Showdown’s Town Center, as its class has it. This is the groundwork every later story room builds on.

Background

Every room is an object the factory builds at startup (Showdown 0x42E0E0). Each class constructor passes two strings to the base constructor (0x40B0F0), and its reset (vtable +0x08) can set a third value:

The setup of every room of both titles, from the trace, is in scooby-exe.

Town Center (0x42CFD0, vtable 0x45F300):

Scope

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

Out of scope: every other story room; the Credits room’s opening (its factory passes two scenes, not traced).

Exit criteria

  1. Every room of both titles: the music played on entry and the opening scene match a reference that reads the trace output and the sound files, not the engine’s table.
  2. Town Center from a new game, against the trace: the opening at tick 100; exits blocked, rotating scenes, until a snack; the snack-given line; the hanging sign, the sign, Scooby taking it, the item and the scenes; SignClicked, OpeningPlayed and SnacksGiven saved and read back.
  3. Live, in Showdown: Town Center’s opening, the blocked exit, feeding Scooby, and the sign into the toolbar.
  4. Scooby-only build: 0 errors and 0 warnings. The earlier checks pass. The fork diff stays inside engines/scooby/, staged by name.

Deliverables