WP-028: Sign In, players and the new game (Gen 1)

Status: ✅ Done (2026-11-14) Phase: 4 (game logic: room classes) Depends on: WP-026 ✅ (the profile and saves), WP-027 ✅ (room classes, the title and the level select) Companion EC: none (inline checklist under Exit criteria) Estimated effort: Day Pre-flight: pre-flight-WP-028-2026-11-14


Result (2026-11-14)

The reference is wp028_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 Sign In through its class and logs 41 lines; the reference prints the same 41 on each title, none different.

Exit criteria:

  1. Against the reference: ✅ On both titles:
    • The room. The list and the typed field are where their placements say (Showdown 184,210 and 192,153; Phantom 118,187 and 157,130). The 36 letter buttons type M123456789ABCDEFGHIJKL0NOPQRSTUVWXYZ in placement order. Typing starts on tick 61, the prompt on tick 90, and the idle line on tick 1080.
    • Names. Five names lay out letter by letter at the font’s first-cel widths, centred in 240 pixels.
    • Typing. Keys and buttons: case, the 10-letter limit, no leading or double space, backspace, and Enter playing. Keys before the prompt are dropped.
    • The list. Hover holds strictly inside each row, the arrows show and hide over 14 clicks, and Delete removes the scrolled-to last player.
    • Leaving. A saved player clicked twice loads their slot. A new player gets a new game at the level select, with Showdown’s story values (Phantom: none). Quit goes to ROOM_Quit.
  2. Live, Showdown: ✅ The input played through test_script, minimized, with keys sent as key events:
    • A new player. scooby typed, the 1 button and backspace showed SCOOBY centred. Play: Shaggy’s 5.4 s line, a new game, slot 1, the level select. Spooky played movie 1 and opened Town Center, and SCOOBY was saved in slot 1.
    • The saved player. The next start listed SCOOBY, lit up the name under the mouse, and loaded Town Center on two clicks.
    • Delete. A third start selected SCOOBY and Delete removed the save.
  3. Build and diff: ✅

Deviations and gaps:


Goal

Make Sign In work, as the original’s does:

The new game sets the story’s random values.

Background

WP-027 leads the title and New Mystery to a Sign In room that does nothing. The original’s Sign In class (details in scooby-exe):

ScummVM has save slots, not files named after players. WP-026 made a save hold the profile, so here a player is a save whose description is the player’s name.

Scope

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

Out of scope:

Exit criteria

  1. Both discs match an independent reference line for line:
    • the fields’ places, the letter buttons, the timers;
    • names laid out with the font’s widths;
    • keys and buttons typing;
    • the list’s hover, arrows and delete;
    • a saved player loading;
    • a new player’s new game and Showdown’s story values;
    • Quit.
  2. Live, in Showdown:
    • a typed name, a button letter and backspace;
    • Play, the level select and the game, with the player saved;
    • the player in the list, under the mouse and loaded by two clicks;
    • Delete.
  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