WP-075: Phantom’s maze interior — the centre, the fountain and the well (Gen 1)

Status: ✅ Done (2026-11-19) Phase: 4 (game logic) Depends on: WP-018 ✅ (hotspots and exits), WP-021 ✅ (clickables), WP-023 ✅ (the inventory), WP-057 ✅ (Phantom’s new game and first room), WP-074 ✅ (the hedge maze and maze map — the hook these connect to) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-075-2026-11-19


Result (2026-11-19)

The centre played by WP-103 (2026-11-28). Its exits toward the garden and below the balcony go into the hedge maze, which the fork skipped. Its opening alternates 250_ and 250C_; the fork had none. Shaggy’s take now hides the shears. The centre’s lines below describe the old build.

The fountain close-up played by WP-108 (2026-11-28). The self-test now plays it through the engine’s mouse and tick. Nothing needed changing: the class below matches the original.

The well played by WP-109 (2026-11-28). The yellow ball’s movie is 66, or 4 once the blue ball is found. The return after it enters the well again through movie 57, not the gallery. And the Jester is placed only once the yellow ball is found. The well’s lines below describe the old build.

The reference is wp075_ref.py: WP-074’s, plus the maze interior, written from the trace before the engine ran. It reads the clips from the sound index. It never runs the engine. At script level 3 the chase check now has nine maze-interior lines on Phantom, and one on Showdown, which has none of the three rooms. Every line matched on both titles.

ROOM_P23_Maze_Center, ROOM_P44_Fountain_Closeup and ROOM_P22_Well_In_Maze are the audit’s group-7 second packet, the maze interior (WP-074 landed the entry pair). They are one packet, not split: the trace shows the centre and the fountain are coupled (the fountain is a close-up reached only from the centre, token-gated, and exits back to it) and the well is the most independent (its own ball/rope/bottle interaction, out to the royal gallery), but all three are the maze’s interiors, delivered together as WP-074’s pair was. The last group-7 packet (ROOM_P27_Below_Balcony and its door) stays separate.

Exit criteria:

  1. Against the reference: ✅ Phantom:
    • The classes: ROOM_P23_Maze_Center gets MazeCenterRoom, ROOM_P44_Fountain_Closeup gets FountainCloseupRoom, ROOM_P22_Well_In_Maze gets WellInMazeRoom.
    • The clips (dotted, prefix for the voice lines): the centre’s water sfx (exact) at volume 90, the shears line (exact), and Center_of_Maze.250B_/250X_/250X1_/250_/250C_ (prefix) found; the fountain’s opening Fountain.250D_, its cycle, exit line, water, the doubled swim loop, the grab/lunge/eats found; the well’s three lines found.
    • The placements: the centre’s water (sprite, −1500), the shears (requires until taken), the token-gated way to the fountain; the fountain’s piranha (idle/full), the tokens (requires), the exit, the grab; the well’s yellow ball, the rope-gated climb.
    • The state: the centre’s start flag from the garden (1) and the balcony (0), the Entrances save round-trip; the well’s movies (ball 66/4, rope 59, return 54/57).
    • Showdown prints that it has no maze interior.
  2. Live, Phantom: ✅ Through test_script, minimized:
    • The centre loads with the water sprite (ANIM_P23_MAZE_CENTER_WATERA, depth −1500) and music group 1; the hotspots, the shears, the token-gated OBJ_P23_TO_P44 and the hedge-maze exits are all present.
    • The fountain plays its opening Fountain.250D_ at tick 100, music group 1, with the piranha and the tokens placed.
    • The well sets WellVisited on entry (well: …, visited), music group 1, no opening, with the well, the Jester ball-target and the yellow ball present.
  3. Build and diff: ✅

Deviations and gaps:

Found on the way:


Goal

Port the second of Phantom’s group-7 rooms, ROOM_P23_Maze_Center, ROOM_P44_Fountain_Closeup and ROOM_P22_Well_In_Maze (the audit’s order, group 7, the maze). Until now they had the base class: the rooms drew, but the water did not babble, the piranha did not guard the tokens, and the well did nothing.

Background

The maze interior (scooby-exe): inside the hedge maze (WP-074) the gang reaches the centre, the fountain close-up off it, and the well. The centre is the hub — its water babbles, the rusty shears lie there to take, and the way to the fountain opens until the tokens are grabbed. The fountain’s piranha guards the tokens: fed the burger it eats, and Shaggy grabs them. The well links back to the royal gallery and sets WellVisited.

Scope

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

Exit criteria

  1. Both titles match an independent reference line for line:
    • the classes, the clips (dotted, prefix for the voice lines);
    • the placements and their gating, the save key, the movies.

    Showdown prints that it has none of the three rooms.

  2. Live, in Phantom: each room is reached and draws its placements; the fountain plays its opening; the well sets WellVisited.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged but for the usual random keys. The fork diff stays inside engines/scooby/, staged by name.

Deliverables