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
|
|
@ -51,9 +51,9 @@
|
|||
<div class="spacer"></div>
|
||||
<button id="btnWave" class="primary" aria-label="Start next wave"><svg class="ic"><use href="#i-play"/></svg><span id="btnWaveText">Wave 1</span></button>
|
||||
<button id="btnAuto" class="icon toggle" aria-pressed="false" aria-label="Automatic waves" title="Automatic waves (A)"><span>AUTO</span></button>
|
||||
<button id="btnSpeed" class="icon" aria-label="Game speed" title="Speed (F)"><span id="speedText">1×</span></button>
|
||||
<button id="btnSpeed" class="icon" aria-label="Game speed 1×" title="Speed (F)"><span id="speedText">1×</span></button>
|
||||
<button id="btnPause" class="icon" aria-label="Pause" aria-pressed="false" title="Pause (P)"><svg class="ic"><use href="#i-pause"/></svg></button>
|
||||
<button id="btnSound" class="icon" aria-label="Sound" title="Sound (M)"><svg class="ic"><use href="#i-sound"/></svg></button>
|
||||
<button id="btnSound" class="icon" aria-label="Mute sound" title="Sound (M)"><svg class="ic"><use href="#i-sound"/></svg></button>
|
||||
</header>
|
||||
|
||||
<main id="stage">
|
||||
|
|
@ -85,10 +85,10 @@
|
|||
</aside>
|
||||
|
||||
<!-- ===== main menu: .card-body scrolls, .card-foot (the primary buttons) is always visible ===== -->
|
||||
<div id="menu" class="overlay">
|
||||
<div id="menu" class="overlay" role="dialog" aria-modal="true" aria-labelledby="menuTitle">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="logo"><span class="logo-mark" aria-hidden="true"></span><h1>NETWALL</h1></div>
|
||||
<div class="logo"><span class="logo-mark" aria-hidden="true"></span><h1 id="menuTitle">NETWALL</h1></div>
|
||||
<p class="tag">Build the firewall. Stretch the route. Protect the server.</p>
|
||||
<div id="mapPick" class="maps" role="radiogroup" aria-label="Map"></div>
|
||||
<p id="mapDesc" class="mapdesc"></p>
|
||||
|
|
@ -103,6 +103,7 @@
|
|||
<div class="row small">
|
||||
<button id="btnHelp" class="link">How to play</button>
|
||||
<button id="btnFullscreen" class="link" hidden>Fullscreen</button>
|
||||
<button id="btnMenuSound" class="link">Sound: on</button>
|
||||
<button id="btnCloseMenu" class="link" hidden>Back to game</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -110,10 +111,10 @@
|
|||
</div>
|
||||
|
||||
<!-- ===== co-op lobby ===== -->
|
||||
<div id="lobby" class="overlay" hidden>
|
||||
<div id="lobby" class="overlay" hidden role="dialog" aria-modal="true" aria-labelledby="lobbyTitle">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h2>Co-op online</h2>
|
||||
<h2 id="lobbyTitle">Co-op online</h2>
|
||||
<p class="muted lead">Two players, one base, one pool of credits. Create a room and send the link, or enter a friend's code.</p>
|
||||
<label class="field"><span>Your name</span><input id="inName" maxlength="16" autocomplete="nickname" autocapitalize="words" spellcheck="false" placeholder="Player"></label>
|
||||
<div class="split">
|
||||
|
|
@ -140,16 +141,16 @@
|
|||
</div>
|
||||
|
||||
<!-- ===== help ===== -->
|
||||
<div id="help" class="overlay" hidden>
|
||||
<div id="help" class="overlay" hidden role="dialog" aria-modal="true" aria-labelledby="helpTitle">
|
||||
<div class="card wide">
|
||||
<div class="card-body">
|
||||
<h2>How to play</h2>
|
||||
<h2 id="helpTitle">How to play</h2>
|
||||
<ul class="howto">
|
||||
<li><b>Goal.</b> Packets pour in from the gateways (red). Don't let them reach the <b>server</b>. Each leak costs integrity (♥).</li>
|
||||
<li><b>Maze.</b> The map is open: <b>Firewalls</b> are cheap walls. Packets always take the shortest open route, so walls make them walk further, past your turrets. You can lengthen the route but never seal it off completely. <span class="kbd-only">Hover</span><span class="touch-only">Tap</span> to preview the new route.</li>
|
||||
<li><b>Turrets.</b> Filter (fast), IDS Sniper (long range, armour-piercing), Mortar (splash), Rate Limiter (slows), Router Arc (chain lightning), and the very expensive late-game <b>Orbital Uplink</b> (a piercing beam that ignores armour, hits flyers and slows what it touches). <b>Spoofed packets fly</b> over your maze, so keep some anti-air. Mortars can't hit flyers.</li>
|
||||
<li><b>Credits.</b> Earned from kills and every cleared wave. Upgrade turrets up to level 3. Sell for 70% back (walls refund in full).</li>
|
||||
<li><b>Controls.</b> <span class="kbd-only">Click to build, drag to paint walls, right-click to cancel. Keys <span id="helpKeys">1–6</span> pick a tower, Space starts a wave, U upgrades, X sells, T changes targeting, P pauses, F changes speed, wheel zooms.</span>
|
||||
<li><b>Controls.</b> <span class="kbd-only">Click to build, drag to paint walls, right-click to cancel. Keys <span id="helpKeys">1–6</span> pick a tower, Space starts a wave, U upgrades, X sells, T changes targeting, P pauses, F changes speed, M mutes, wheel zooms.</span>
|
||||
<span class="touch-only">Tap a tower type, then tap the map to preview; nudge the cell with the arrows and tap ✓ to build. Walls paint as you drag. Pinch to zoom, two fingers to pan, long-press to ping your partner.</span></li>
|
||||
<li><b>Co-op.</b> Both players share everything and can build, sell and upgrade at the same time. You see each other's cursors; long-press / Alt-click pings the map.</li>
|
||||
</ul>
|
||||
|
|
@ -159,7 +160,7 @@
|
|||
</div>
|
||||
|
||||
<!-- ===== game over / victory ===== -->
|
||||
<div id="end" class="overlay" hidden>
|
||||
<div id="end" class="overlay" hidden role="dialog" aria-modal="true" aria-labelledby="endTitle" aria-describedby="endText">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h2 id="endTitle">Breach!</h2>
|
||||
|
|
@ -173,6 +174,7 @@
|
|||
<button id="btnEndMenu" class="big">Menu</button>
|
||||
</div>
|
||||
<p id="endWait" class="msg" hidden>Waiting for the host to start a new game…</p>
|
||||
<div class="row small"><button id="btnEndSound" class="link">Sound: on</button></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue