Add co-op server, deploy docs, e2e suite and wire in the music tracks
- server/: Node (ws) static server + authoritative co-op rooms; dual-stack listen, proxy-aware client IP and Origin check, keep-alive pings, per-socket rate limits, graceful shutdown; 59 node:test tests - docs/DEPLOY.md + deploy/netwall.service: Debian 13 LXC, systemd, nginx Proxy Manager walk-through, path prefix, troubleshooting - e2e/: Playwright suite (smoke, touch, end flow, two-browser co-op incl. reconnect, 14-size layout matrix); npm run e2e - Music: tracks.json now points at the uploaded theme/battle/boss/win/lose files; stingers fade out when a new game starts - PAUSED indicator, refreshed icon Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tb8pW2KAN4oFkh1aK1BfD8
This commit is contained in:
parent
1c2071e6db
commit
faf0cfa603
27 changed files with 3383 additions and 28 deletions
10
README.md
10
README.md
|
|
@ -91,8 +91,12 @@ reconnects automatically and resumes the same seat for a minute.
|
|||
## Tests
|
||||
|
||||
```bash
|
||||
npm test
|
||||
npm test # rules + server: placement validation, route sealing, corner cutting, targeting, waves, economy,
|
||||
# protocol, rooms, reconnects, security checks, static files, dual stack
|
||||
npm run e2e # real browsers: desktop, phone touch (tap-to-build, drag-paint, pinch, long-press), end screens,
|
||||
# two-browser co-op incl. reconnect, and a 14-size layout matrix
|
||||
```
|
||||
|
||||
Covers the rules (placement validation, route sealing, corner cutting, targeting, waves, economy) and the server
|
||||
(protocol, rooms, reconnects, security checks, static files, dual stack).
|
||||
`npm run e2e` drives Chromium through Playwright (a devDependency). Install the browser once with
|
||||
`npx playwright-core install chromium-headless-shell` (on a minimal Debian also `npx playwright-core install-deps`
|
||||
as root). It starts its own server on a random port and writes screenshots to `e2e/out/`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue