towerdef/public/assets/music
Claude faf0cfa603 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
2026-10-09 19:57:27 +00:00
..
battle.mp3 Upload files to "public/assets/music" 2026-10-09 19:48:56 +00:00
boss.mp3 Upload files to "public/assets/music" 2026-10-09 19:48:56 +00:00
lose.mp3 Upload files to "public/assets/music" 2026-10-09 19:34:29 +00:00
menu.mp3 Upload files to "public/assets/music" 2026-10-09 19:49:37 +00:00
README.md Add Netwall solo client, shared simulation core and protocol spec 2026-10-09 19:14:35 +00:00
tracks.json Add co-op server, deploy docs, e2e suite and wire in the music tracks 2026-10-09 19:57:27 +00:00
win.mp3 Upload files to "public/assets/music" 2026-10-09 19:34:29 +00:00

Music

Netwall plays a built-in synth melody. To use your own tracks (for example from Suno), put the files in this folder and name them in tracks.json:

{ "theme": "menu.mp3", "battle": "battle.mp3", "boss": "boss.mp3", "win": "win.mp3", "lose": "lose.mp3" }
  • theme: main menu. battle: in game (loops). boss: plays while a Rootkit boss is on the board (loops).
  • win / lose: short one-shot stingers on the end screens.
  • Formats: mp3, ogg, m4a or wav. Anything left null keeps the synth version.
  • Loops are played with the browser's loop flag, so crop the track to a whole number of bars for a clean seam.
  • Keep files small (a few MB) so phones start playing quickly.

Suno prompts

Style: instrumental, cyberpunk synthwave, dark ambient electronica, driving arpeggiated synth, pulsing sub bass, 110 bpm, A minor, tense but hypnotic, digital glitch percussion, retro sci-fi, seamless loop, no vocals

Exclude: vocals, rap, acoustic guitar, orchestral, fade out, long intro, spoken word

Lyrics box: [Instrumental]

Track Style tweak
theme slow 80 bpm, atmospheric pads, minimal, curious, wide reverb
battle the prompt above, plus [Loop-friendly: steady energy, no big breakdown]
boss 140 bpm, aggressive, distorted bass, heavy industrial, urgent, pounding kick
win short victory fanfare, 8 seconds
lose short descending glitch, system failure, 6 seconds

Words that fit the game: data stream, packet traffic, firewall, mainframe, server room, neon grid, circuit board, binary, handshake, encrypted, modem blips, bitcrushed snares, FM bells, filtered saw lead, sidechained pads.