WP-129: Phantom’s Brad game, played (Gen 1)

Status: ✅ Done (2026-11-30). Fork PR barefootbetters/scummvm#54 merged on 2026-11-30 (merge commit e1dd7bea63). Phase: 5 (rooms played) Depends on: WP-070 ✅ (the port of the game), WP-116 ✅ (handleEvent()) Companion EC: none (inline checklist under Exit criteria) Pre-flight: pre-flight-WP-129-2026-11-30. Required: the packet modifies engines/terraglyph/**. Targets generation(s): Gen 1, Phantom of the Knight only. Estimated effort: Two hours


Goal

Play Brad’s game (ROOM_Brad_SPOOKY and its levels, 0x41E9E0, vtable 0x45EF50) through the engine’s own event path, against the decompile, and fix what differs.

WP-070 ported the game. Its check set the mouse’s place and button by hand and called the room class’s click(), never through the mouse. It’s the tenth of the 11 checks that click through a class or script function.

What the decompile says

What differed

Nothing. The class matches the decompile, and nothing in the engine needed a change. The pieces take the press, as the original’s do (input bit 2), so this game is played on the button going down, unlike the rooms before it.

Scope

In scope:

Exit criteria

  1. Expectations first. The new lines were written from the decompile before the run.
  2. Self-test. The new lines match the decompile, with the expectation I got wrong corrected (below). The rest matches the WP-128 run except for the per-run random keys and Maria’s item places. No new warnings.
  3. Live. A scripted run shows the introduction with no cursor, the open hand on a piece, and the first piece dragged off the pile by the mouse.
  4. Process. The fork PR against scooby-engine is open (merged on 2026-11-30).

Result

Evidence labels: log (a self-test’s debug log), live (session) (a scripted run this session drove and read, with screenshots).

Deliverables