Merge goalie-tester worktree: modes, 3v3 goalies, OOB faceoffs, CF deploy.

Bring main menu (1v1/3v3), scrimmage with nets and goalies, dead-puck
whistles at the nearest faceoff circle, skater board re-entry, and
Cloudflare Workers/Pages deploy config. Keep main jersey gear stack and
compact goalie floaters.
This commit is contained in:
ryanfitzpatrickio
2026-08-03 10:41:13 -05:00
parent 7d28facd68
commit f9aa382f30
18 changed files with 3121 additions and 130 deletions
+6 -1
View File
@@ -83,10 +83,15 @@ try {
});
page.on('pageerror', (err) => errors.push(String(err?.stack ?? err)));
await page.goto(URL, { waitUntil: 'domcontentloaded' });
// 3v3 scrimmage is what the lineup / skating shots need; skip the menu.
const captureUrl = new URL(URL);
if (!captureUrl.searchParams.has('mode')) captureUrl.searchParams.set('mode', '3v3');
await page.goto(captureUrl.href, { waitUntil: 'domcontentloaded' });
// The boot overlay is removed once physics is up and the first frame ran.
await page.waitForFunction(() => !document.getElementById('boot'), { timeout: 45000 });
// Mode auto-starts from ?mode=; wait until the match handle is live.
await page.waitForFunction(() => window.tilt?.match, { timeout: 15000 });
// The canvas must fill the window exactly, at whatever pixel ratio. Checked
// at two window sizes so a resize path that only works on first load fails