BATTLEBOX: Robot Combat Arena
README.md
MatchDirector
The match flow on the scene's Broadcast entity. In play it takes the phase from free to title (faceoff shot) and ticks screens.match every frame: the garage (build stand or turntable), test drives, 3-2-1 countdown, the 3:00 clock (chase shot), KNOCKOUT when a bot is destroyed or immobile for KO_COUNT_SECONDS, the judges' decision (Rules.decide) at 0:00, the orbit shot round the winner, and a rematch (Rules.reset) on confirm.
Controls, each map live only while its screen is up:
screens.menu(title, KO, decision):confirm= FIGHT / REMATCH (Enter, pad A/Start, a FIGHT touch button),garage= BUILD YOUR BOT / GARAGE (G, pad Y).screens.garageNav(garage, and test drives for Esc / B): arrows / D-pad (hold-repeat) and the left stick walk the current panel (left/right steps a numeric field), Tab / Shift+Tab / LB / RB switch panel, Enter / A presses, Esc / B backs out (field → menu → pad view → title; ends a test drive), Ctrl+S saves, Ctrl+Enter / F5 / Start fights, pad Y hands the D-pad and shoulders to the 3D build view and back. While a garage field (gar-in-*) has the keyboard, keys type instead of navigating.
Edit mode never runs it, so the phase stays free there.