WP-074: Phantom’s hedge maze and maze map: ride the unicycle, read the map (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, for the maze map item), WP-057 ✅ (Phantom’s new game and first room) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-074-2026-11-19


Result (2026-11-19)

The reference is wp074_ref.py: WP-073’s, plus the maze, written from the trace before the engine ran. It reads the clips from the sound index and the cell tables from the binary’s resolved constants. It never runs the engine. At script level 3 the chase check now has 10 maze lines on Phantom, and one on Showdown, which has neither room. Every line matched on both titles.

ROOM_Hedge_Maze and ROOM_Maze_Map open the audit’s group 7, the maze. They are one packet, not split: the map is the maze map item’s close-up, reached by using OBJ_INV_MAZE_MAP inside the maze, and its markers jump to the maze rooms — the two are meaningless apart. The later group-7 rooms (ROOM_P23_Maze_Center, ROOM_P44_Fountain_Closeup, ROOM_P22_Well_In_Maze, ROOM_P27_Below_Balcony and its door) stay separate later packets.

Exit criteria:

  1. Against the reference: ✅ Phantom:
    • The classes: ROOM_Hedge_Maze gets HedgeMazeRoom, ROOM_Maze_Map gets MazeMapRoom.
    • The clips: Hedge_Maze.Music and the nine Hedge_Maze.Unicycle_* sfx found; the idle Hedge_Maze.240A_/240A1_ found (by prefix), 240A2_ not.
    • The moves: back/front/R/L with their dir code, step, Start/End clips and passage/wall anims.
    • The grid: the per-level cell tables (20, 32 and 60 cells), the path tables, the +0x440 patch cell.
    • The starts: the start cell from the garden, below the balcony and the centre (two cases), and the garden-exit cells.
    • The map: the four markers jump to the garden, well, centre and below the balcony.
    • Showdown prints that it has no hedge maze.
  2. Live, Phantom: ✅ Through test_script, minimized:
    • The maze draws with the unicycle and the current cell’s passages (cell 24 mask 15, all four open); Hedge_Maze.Music loops.
    • Riding a direction rode to the adjacent cell and played the Start/End unicycle clips (back → cell 23, left → cell 13).
    • The map draws its four location markers; clicking the garden marker jumped to ROOM_P06_Garden.
  3. Build and diff: ✅ Scooby-only build: 0 errors, 0 warnings. The room check is identical to WP-020’s (69 and 53 rooms, 0 bad).
    • The other checks match the prior run but for the usual per-run random keys (the drawbridge’s crest, Ewan’s CurrentQuestion).
    • Fork commit 9a0897017d (9 files staged by name) is pushed.

Ported by WP-097 (2026-11-28). The modelled navigation below is replaced by the original’s ride. That includes the ways out to the garden, below the balcony and the centre, which the model lacked. WP-097 also fixes two table cells. The mutterings’ silence turned out to be the original’s behaviour.

Deviations and gaps:

Found on the way:


Goal

Port the first of Phantom’s group-7 rooms, ROOM_Hedge_Maze and ROOM_Maze_Map (the audit’s order, group 7, the maze). Until now they had the base class: the maze drew, but no walls or passages, no riding between cells, and the map’s markers did nothing.

Background

The maze (scooby-exe): the gang rides a unicycle through a grid of hedge cells, each cell opening on some of its four sides; the maze map item shows a close-up whose markers jump straight to the garden, the well, the centre or below the balcony.

Scope

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

Exit criteria

  1. Both titles match an independent reference line for line:
    • the classes, the clips, the moves;
    • the per-level cell and path tables, the patch cell;
    • the start cells and the garden-exit cells;
    • the map’s markers.

    Showdown prints that it has neither room.

  2. Live, in Phantom: the maze draws its cell; riding a direction moves to the adjacent cell; the map’s garden marker jumps to the garden.
  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