WP-043: Showdown’s stage: the sandbags, and Jenny under the trapdoor (Gen 1)

Status: ✅ Done (2026-11-15) Phase: 4 (game logic) Depends on: WP-031 ✅ (suspects and clues), WP-022 ✅ (movies), WP-021 ✅ (clickables), WP-020 ✅ (exits) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-043-2026-11-15


Result (2026-11-15)

The reference is wp043_ref.py: WP-042’s, plus the stage, written from the trace before the engine ran. It reads the placements and step counts from the art and whether each opening has a first line from the sound archives’ indexes, and never runs the engine. At script level 3 the chase check now logs 122 lines on Showdown, the earlier 114 and 8 for the stage; the reference prints the same 122, none different, on the first run. On Phantom both print the one line saying there is no chase.

Exit criteria:

  1. Against the reference: ✅ Showdown:
    • The stage. Hung by level: 0111 at levels 0 and 1, 1000 at level 2, BagsRandomized set, and a bag set by hand is kept on the next visit. Each sandbag at depth -1001, hidden while up. Before Jenny is met she isn’t there and the way down is; Shaggy walks in DL from the saloon and UR from under the stage.
    • Under the stage. The levers clickables at depth -500, hit type 2; the sandbags on their last step at depth y - 240, a raised one on its RAISE; the trapdoor at -100; the way out at -1000. The knock countdown is -5 on entry, 72 after tick 1, -1 after tick 74 and 72 after tick 75. The openings: 370BS_ at level 0 on every visit; 370B_, 370B2_, 370B3_, 370B3_ at levels 1 and 2.
    • The levers. From all four bags down, with the aliases in order: level 0 moves one bag, level 1 one or two, level 2 three, as the trace’s table has it. Another alias set moves the alias’s bags, and level 3 moves none. A pull raises the bag with TRAPDOOR_SANDBAG1_RAISE, the levers go to hit type 0, and they come back on tick 28 as the 9-step raise stops; the same lever then drops it again.
    • The trapdoor. The last bag up: DOOROPEN, Jenny met, TRAPDOOR_DOOR_OPEN, the way out and the levers at hit type 0. Out to the stage on tick 34 as the 11-step door stops, through movie 4; the stage on tick 35.
    • Jenny. The hammer, Stage.380D2_ held, her clue, then GIVES (13 steps) on tick 1 with input held; the thanks on tick 40, then the suspects. Back, no scene. Clicked with the arrow she says one of her three lines, not held; with the hammer, nothing.
  2. Live, Showdown: ✅ Through test_script, minimized, from profiles in the original’s form:
    • The trapdoor. At level 0 with one bag down, the click on lever 1 hit it, the bag rose and the trapdoor opened. Movie 4 played (785 frames). On the stage, the hammer was in the toolbar and Jenny said Stage.380D2_, gave, and the thanks took the gang to the suspects with her clue.
    • A level 1 lever. From all four down, lever 1 raised bags 1 and 2 together, with the opening 370B_.
  3. Build and diff: ✅

Deviations and gaps:


Goal

Make Showdown’s stage and the room under it play as the original does. Until now they had the base class: the levers under the stage did nothing, the trapdoor never opened, and Jenny never came out.

Background

The stage (scooby-exe) has two rooms:

Scope

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

Out of scope:

Exit criteria

  1. Showdown matches an independent reference line for line:
    • the classes;
    • the stage’s sandbags hung by level and kept, Jenny and the way down before she is met, and Shaggy’s walk-ins;
    • under the stage, the placements, the knock countdown and the openings by level;
    • each lever at each level, another alias set, and a level with no moves;
    • a lever’s sandbag, sound and the levers held until it stops, then the same lever again;
    • the trapdoor opening, Jenny met, and the way up through movie 4, with its ticks;
    • on the stage, the hammer, her scene, clue, giving and thanks with their ticks, and her lines when clicked.

    Phantom prints that it has no chase, as its reference does.

  2. Live, in Showdown, from profiles in the original’s form:
    • the last sandbag raised, the trapdoor open, movie 4, and Jenny on the stage with the hammer, her clue and the suspects;
    • a level 1 lever moving two bags.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged but for what the stage sets. The fork diff stays inside engines/scooby/, staged by name.

Deliverables