destroyulator/game/dev/probe_gauntlet.gd
Monster Robot Party e5f4e8c5e4 LANE7: the Gauntlet, four modes, two more provocations, and ambient attrition
THE GAUNTLET (Gauntlet.gd + Cabinet.gd)
Five identical cabinets, each with its alphabetical range on a Label3D. The brief names
a CLIENT, never a cabinet, so working out that HENDERSON lives in F-J is the puzzle —
no waypoint, nothing glows. Destruction is granular on purpose: pull a drawer, it
slides out on a spring and goes live, and the folders inside become individual
smashables. Doing that by hand inside the clock isn't really possible.

The perfect tool: every site hides a SHREDDER that eats a whole open drawer at once,
and the game never says so. Noticing it and working out what it's for IS the level.
Getting it wrong isn't fatal, just slow — the right shape for a secret, since it
rewards the observant without hard-failing everyone else.

Each site nominates its own records area in its spec. Building the bank 3.4 m in front
of wherever the player happened to be standing put it through walls.

MODES (Modes.gd, M cycles)
  CUBICLE HELL       the main loop
  THE GAUNTLET       above
  TOTAL DESTRUCTION  no job, no pay, clear the site, scored on time
  AGAINST THE CLOCK  fixed timer, maximise damage VALUE — the exact inverse of Cubicle
                     Hell, where expensive things become the goal rather than the
                     mistake. Same level, opposite instinct.
Entering a mode arms only what that mode needs; Cubicle Hell and the Gauntlet are
mutually exclusive, because you cannot be doing your job and shredding the Henderson
file at the same time.

TWO MORE PROVOCATIONS (Tasks.gd)
  STAPLES     SPACE lifts a staple, then it must be pulled the way it's bent — and it's
              bent differently each time. Dither and the sheet tears, bundle reprints.
  GUILLOTINE  align to a mark and cut. The guide has a PERMANENT offset and nothing on
              screen admits it. Once you work out the error it's easy, which is the
              joke: you have to learn to distrust the equipment.
Desks now alternate spreadsheet/staples so "a desk" isn't always the same minigame.

AMBIENCE (Ambience.gd) — the attrition you can't play around. The tube above your desk
flickers, and actually flickers the real lights. Fish in the microwave. A phone ringing
four desks away. Reply-all, forty-one recipients, "thanks!". Small periodic ticks with
no interaction at all; it's what makes the room hostile rather than merely beige.

Fixes: the payslip was rendering over the Gauntlet (it belongs to Cubicle Hell, and only
once the shift has actually ended); gauntlet drawer reach was 2.0 m when the true
distance from standing-at-a-cabinet to a bottom drawer is over 2 m.

dev/probe_gauntlet.gd drives a whole run headlessly — mode switch, labels, open every
drawer, shred, win — because that catches the failure that matters: a run you can't
finish because the files never become destroyable.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 18:12:20 +10:00

55 lines
1.9 KiB
GDScript

extends SceneTree
## Drive a whole Gauntlet run headlessly: switch mode, confirm the cabinet bank exists
## and is labelled, open every drawer of the target, and check the shredder actually
## empties them. Faster than eyeballing video, and it catches the failure that matters —
## a run you cannot finish because the files never become destroyable.
##
## Godot --headless --path game --script dev/probe_gauntlet.gd
func _initialize() -> void:
var main: Node = (load("res://main.tscn") as PackedScene).instantiate()
get_root().add_child(main)
for i in 4:
await physics_frame
var modes = main.get("_modes")
var g = main.get("_gauntlet")
modes.set_mode(Modes.M.GAUNTLET)
for i in 4:
await physics_frame
print("mode : ", modes.name_of())
print("client : ", g.client, " -> drawer ", g.target_range)
print("files on them : ", g.remaining(), " / ", g.total())
var cabs = g._cabs
print("cabinets : ", cabs.size(), " labels: ",
", ".join(PackedStringArray(cabs.map(func(c): return c.label_range))))
print("shredder found: ", g._shredder != null)
# open every drawer of the target cabinet and let them slide
var target = g._target
for i in Cabinet.DRAWERS:
target.open(i)
for i in 90:
await physics_frame
print("after opening : files still intact = ", g.remaining())
# stand at the shredder and feed it
var player = main.get("_player")
player.global_position = g._shredder.global_position
await physics_frame
print("at shredder : ", g.at_shredder())
g.interact()
for i in 10:
await physics_frame
print("after shred : files still intact = ", g.remaining())
print("running : ", g.running, " result: ", g.result)
# and the other modes at least arm
for m in [Modes.M.TOTAL, Modes.M.CLOCK, Modes.M.CUBICLE_HELL]:
modes.set_mode(m)
await physics_frame
print("mode %-20s -> %s" % [modes.name_of(), modes.hud_line().substr(0, 60)])
quit()