WP-122: Phantom’s Maria game, played (Gen 1)

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


Goal

Play Maria’s game (ROOM_Maria, 0x428770, vtable 0x45F2C0) through the engine’s own event path, against the decompile, and fix what differs.

WP-064 ported the game. Its check set the mouse’s position and called the room class’s click() directly. It’s the fifth of the 11 checks that click through a class or script function, after the drawbridge, the room of doors, the throne room and the dining room (WP-117, WP-119–121).

What the decompile says

What differed

One thing, in the engine and the class. The fork took and let go on the press: the room class’s click(), which the engine calls when the button goes down. WP-064 listed this as a deviation. A click on one spot played the same, but a drag didn’t. Down on a cup, moved away, up: the fork carried the cup, where the original takes nothing. Now:

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 check slips corrected (below). The rest matches the WP-121 run except for the per-run random keys; WP-064’s Maria lines are unchanged. No new warnings.
  3. Live. A scripted run takes a cup on the release, throws it, drags another without taking it, and drops one into a tray.
  4. Process. The fork PR against scooby-engine is open (merged on 2026-11-29).

Result

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

Deliverables