WP-044: Showdown’s jail: the blanket, the bed and the hole under it (Gen 1)

Status: ✅ Done (2026-11-15) Phase: 4 (game logic) Depends on: WP-041 ✅ (the dark tunnel), WP-023 ✅ (inventory and requires objects), WP-021 ✅ (clickables), WP-020 ✅ (scenes) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Half a day Pre-flight: pre-flight-WP-044-2026-11-15


Result (2026-11-15)

The reference is wp044_ref.py: WP-043’s, plus the jail, written from the trace before the engine ran. It reads the following from the art, object.ini and the sound archives’ indexes, and never runs the engine:

At script level 3 the chase check now logs 131 lines on Showdown: the earlier 122 and 9 for the jail.

The first run matched 130. The one difference was hotspot 3’s depth: 0 in the reference, -1 in the engine. The trace bears out -1, since 0x40AD50 gives -1 for an object without priority=. It also showed that the class’s claim of hotspots 2 and 4 had forced them to 0, and the reference had made the same mistake. With the claim dropped and the reference fixed, the second run matched all 131. On Phantom both print the one line saying there is no chase.

Exit criteria:

  1. Against the reference: ✅ Showdown:
    • The placements. The blanket a requires object at depth 1, hidden once taken. The three hotspots clickables at depth -1, with the open hand. The hole and the stool at depths 0 and 500, hidden. No opening.
    • The hotspots. The door: 150X2_, 150X23_, 150X2_. The window: 150X3_ on its B, nothing on C, D and A, then 150X3_ on B again. The bed’s first click: 150X1_. Every line held input.
    • The blanket. With an item, nothing happens. With the arrow, input is held. On tick 1 Shaggy plays TAKE_BLANKET (24 steps) and the blanket goes. On tick 73 it is in the toolbar, and 150C_ plays, held. Back again, the blanket stays gone.
    • The bed. On the second click its hit type goes to 0, its B loops, and input is held. Scooby plays BREAK_BED (22 steps) and asks for Scooby_Breaks_Bed, which isn’t on the disc. On tick 67 the bed is gone, without its open hand. The hole and the stool show, and 150D_ plays, held.
    • The drop. After 150D_, Shaggy plays LEAVE_JAIL (20 steps) at depth 501, in front of the stool at 500. Scooby is hidden, and Scooby_Shaggy_Fall_In_Hole isn’t on the disc either. On his step 6 Shaggy is at 499. 60 ticks after he starts, the room goes to the dark tunnel, with Shaggy hidden. Entering the jail again goes straight there, on tick 1.
    • The keys. A new game saves BedBroken=No. Reading Yes shows the hole and the stool and starts 150D_ on tick 1, and Yes is saved again. A reset and a missing key both read 0.
    • Leaving. With the blanket clicked, it goes in the toolbar. With the bed clicked, BedBroken is set.
    • The exit handler keeps the gang in. It does nothing without the blanket, or while a scene plays. With the blanket in a slot and no scene, Shaggy plays LEAVE_JAIL, and the dark tunnel follows on tick 60.
  2. Live, Showdown: ✅ Through test_script, minimized, from profiles in the original’s form:
    • The cell. The door said 150X2_ and the window 150X3_. On the blanket’s click Shaggy took it into the toolbar, with 150C_. The bed’s first click gave 150X1_. On the second, Scooby broke the bed (ticks 1434 to 1501), and the hole and the stool showed. 150D_ ended on tick 1683; Shaggy started down the hole on the next tick, and on tick 1744 the gang was in the dark tunnel, with its opening 170A_.
    • A saved broken bed. From BedBroken=Yes the hole and the stool were there at once. 150D_ played on tick 1, and the two dropped into the dark tunnel on tick 242.
  3. Build and diff: ✅

Deviations and gaps:


Goal

Make Showdown’s jail cell play as the original does. Until now it had the base class: the blanket couldn’t be taken, the bed never broke, and the gang had no way out of the cell.

Background

The jail (scooby-exe) locks Shaggy and Scooby in a cell with no exit object:

Scope

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

Out of scope:

Exit criteria

  1. Showdown matches an independent reference line for line:
    • the class;
    • the placements, with and without the blanket taken;
    • the door’s lines in turn, the window’s on its B, the bed’s first click;
    • the blanket: not with an item; with the arrow, Shaggy, the toolbar and 150C_, with their ticks;
    • the bed: Scooby, the sound, the hole and the stool, 150D_, with their ticks;
    • the drop: Shaggy’s depths by the stool, Scooby gone, the room, and the jail again;
    • BedBroken saved and read, and a new game’s reset;
    • what leaving finishes, and the exit handler.

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

  2. Live, in Showdown, from profiles in the original’s form:
    • the door and the window, the blanket, the bed twice, 150D_ and the dark tunnel;
    • a saved broken bed: the hole at once, 150D_ and the dark tunnel.
  3. Scooby-only build: 0 errors and 0 warnings. The earlier checks and the room check are unchanged. The fork diff stays inside engines/scooby/, staged by name.

Deliverables