Add Netwall solo client, shared simulation core and protocol spec
- public/js/sim.js: pure game rules shared by browser and server (flow-field pathing with no corner cutting, placement validation that can never seal the route, towers, enemies, waves, economy, snapshots) - Responsive canvas client: desktop, landscape and portrait phones (board rotates 90 degrees in portrait), mouse + touch input, pinch zoom/pan, tap-to-preview placement, route preview, effects, synth sfx + music - Local and Remote controllers behind one interface (remote: snapshot interpolation, auto-reconnect, seat resume) - docs/PROTOCOL.md: co-op wire protocol and server requirements - README, PWA manifest and icons, 20 sim unit tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tb8pW2KAN4oFkh1aK1BfD8
This commit is contained in:
commit
107ef60ec6
20 changed files with 4100 additions and 0 deletions
33
public/assets/music/README.md
Normal file
33
public/assets/music/README.md
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# 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`:
|
||||
|
||||
```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.
|
||||
8
public/assets/music/tracks.json
Normal file
8
public/assets/music/tracks.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"_help": "Put your music files in this folder and name them here, for example \"battle\": \"my-song.mp3\". Leave a track as null to use the built-in synth melody.",
|
||||
"theme": null,
|
||||
"battle": null,
|
||||
"boss": null,
|
||||
"win": null,
|
||||
"lose": null
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue