WP-027: Room classes, and the title, menu, level select and quit screen (Gen 1)

Status: ✅ Done (2026-11-14) Phase: 4 (game logic: room classes) Depends on: WP-022 ✅ (movies), WP-023 ✅ (the toolbar’s quit button), WP-025 ✅ (menus hide the toolbar), WP-026 ✅ (the profile’s level) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Day Pre-flight: pre-flight-WP-027-2026-11-14


Result (2026-11-14)

The reference is wp027_ref.py, written from the trace. It reads the art and the sound indexes through the repo’s probes, and never runs the engine. At script level 3 the engine drives the front end through its own room classes and logs 15 lines; the reference prints the same 15 on each title, none different.

Exit criteria:

  1. Against the reference: ✅ On both titles:
    • The title. It asks for movie 27, then 28, then shows. Layer 0 goes −638, −636, … 0, then −1278 on tick 321; on tick 324 the game goes to Sign In.
    • The buttons. Each of the four main-menu and three level-select buttons is hit by its polygon, has 3 steps, and shows frames 0, 1 and 2 at rest, under the mouse and pressed. Options and New Mystery bring the narrator’s lines. The level buttons sound Shaggy’s Level_Select lines.
    • Where they go. Play goes back to the game room, or to Sign In from the title. Options, New Mystery and Quit go to their rooms. The level buttons set levels 0–2, then movie 1 and ROOM_P01_Town_Center (Phantom: ROOM_P01_Drawbridge).
    • The quit screen. The eyes look at No (step 1) or Yes (step 2), and Scooby says Quit_Screen.No_1_SCOOBY or …Yes_1_SCOOBY; then back to the menu, or quit.
  2. Live, Showdown: ✅ The input played through test_script, minimized.
    • The title. A cold start played movies 27 and 28 (3.7 s and 10.0 s), then the panning title. A click skipped it to Sign In.
    • The menus. From Town Center, the toolbar’s quit button opened the main menu. Options lit up and the narrator explained it, once. Quit opened the quit screen, where No lit up. Scooby’s No line ended back in the menu, and Play returned to Town Center.
    • The level select. Spooky played movie 1 (55.9 s) and opened Town Center.
  3. Build and diff: ✅

Deviations and gaps:


Goal

Give rooms their own classes, as the original’s factory does, and use them for the front end:

Background

Until now every room ran the base room class. The original builds one object per room name, and 47 rooms (Showdown) have a class of their own. The front end’s classes are the menus, built from one kind of button (details in scooby-exe):

Scope

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

Out of scope:

Exit criteria

  1. Both discs match an independent reference line for line:
    • the title’s movie steps, its pan and its countdown;
    • every main-menu and level-select button’s hit test, steps, frames, sound and destination;
    • the quit screen’s eyes, lines and endings.
  2. Live, in Showdown:
    • the title after its movies;
    • the toolbar’s quit button opening the menu, the menu’s Options narration, Quit, No and Play back to the game;
    • a level starting movie 1 and Town Center.
  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