Co-op robustness, audio/a11y, new towers and enemies, Uplink rebalance
Co-op (QA'd with two to three real browsers, TCP-proxy chaos scenarios): - partner's tower changes are never dropped after a render stall or snapshot burst - half-open connections show "reconnecting" in ~6 s instead of 45-65 s - upgrade and next-wave are idempotent (stale commands refused), restart message, promoted host gets Play again, failed joins never kill a live game, listener leaks Audio / keyboard / a11y: - one Audio element per track, fade/stinger supersede tokens, play() retry on the next gesture, 5 s fallback to the synth, mute works everywhere, dialogs with role/aria-modal/focus handling, accessible names for sound/speed/pause New content: - enemies: Daemon (healer), Proxy (regenerating shield), Botnet (flyer swarm); waves weave them in from wave 9 (waves 1-8 unchanged) - towers: Sandbox (stun pulse), Load Balancer (fire-rate aura); hotkeys 1-9 - glyphs/shapes, stun/heal effects, gallery e2e that pixel-checks every kind Orbital Uplink rebalanced after playtesting (was affordable by wave ~6 and buyable in bulk from boss rewards): 1500 credits, upgrades 1200/2000/3200, and every Uplink already owned makes the next one 25% dearer to buy AND to upgrade (each tower remembers its multiplier, carried in the tower list as a 9th field). Shared TD.priceFor/upgradePrice so the UI shows exactly what the sim charges. Also: tablet/foldable viewports in the layout matrix (tolerant colour check), docs (README tower/enemy tables, PROTOCOL shield/stun/pm encodings, NEXT roadmap). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tb8pW2KAN4oFkh1aK1BfD8
This commit is contained in:
parent
962189419a
commit
28502984ec
29 changed files with 3370 additions and 230 deletions
13
README.md
13
README.md
|
|
@ -167,11 +167,15 @@ the trailing slash). A dedicated sub-domain is simpler.
|
|||
| **Flood Mortar** | Splash damage on ground swarms. Cannot hit flyers. |
|
||||
| **Rate Limiter** | Slows everything in range. Rootkits resist it. |
|
||||
| **Router Arc** | Chain lightning between nearby packets. |
|
||||
| **Orbital Uplink** | The endgame weapon: a piercing beam that ignores armour, hits ground and air, blasts and slows around the target and reaches across most of the map. Very expensive to buy and to upgrade (4 levels). |
|
||||
| **Spoofed packets** | Fly straight over your maze: keep some anti-air. |
|
||||
| **Sandbox** | Control tower, no damage: pulses a stun on every packet in range (bosses are stunned half as long). |
|
||||
| **Load Balancer** | Support tower, no attack: nearby attack turrets fire 15 / 25 / 35% faster (the best balancer in range applies, they do not stack). |
|
||||
| **Orbital Uplink** | The endgame weapon: a piercing beam that ignores armour, hits ground and air, blasts and slows around the target and reaches across most of the map. Extremely expensive: 1500 credits, upgrades 1200 / 2000 / 3200 (4 levels), and **every Uplink you already own makes the next one 25% dearer, to buy and to upgrade** (1500, 1880, 2340, 2930, ...), so kill rewards cannot buy a carpet of them. |
|
||||
| **Spoofed packets** | Fly straight over your maze: keep some anti-air. Botnet drones are fast flying swarms. |
|
||||
| **Daemons** | Healers: they restore nearby packets (up to 12% of max health per second), so kill them first. |
|
||||
| **Proxies** | Shielded packets: the shield soaks damage first and regrows after 3 s without being hit. |
|
||||
| **Credits** | From kills and cleared waves. Upgrade turrets (3 levels, 4 for the Uplink); selling returns 70% (walls 100%). |
|
||||
|
||||
Controls, desktop: click to build, drag to paint walls, right-click cancels, `1`-`7` pick a tower, `Space` next wave,
|
||||
Controls, desktop: click to build, drag to paint walls, right-click cancels, `1`-`9` pick a tower, `Space` next wave,
|
||||
`U` upgrade, `X` sell, `T` change targeting, `P` pause, `F` speed, `A` auto-waves, `M` mute, wheel zoom, Alt+click pings.
|
||||
|
||||
Controls, touch: tap a tower type, tap the map to preview (the new route is drawn), nudge the preview with the arrow
|
||||
|
|
@ -222,7 +226,8 @@ reconnects automatically and resumes the same seat for a minute.
|
|||
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 22-layout matrix (phones, tablets, desktop, thumb reach of every control)
|
||||
# two-browser co-op incl. reconnect and chaos (stalls, half-open sockets, races), audio, keyboard / a11y, and a
|
||||
# layout matrix (many phone, tablet, foldable and desktop sizes, thumb reach of every control)
|
||||
```
|
||||
|
||||
`npm run e2e` drives Chromium through Playwright (a devDependency). Install the browser once with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue