Files

36 lines
1.8 KiB
Markdown

# Attack sound candidate library
Open `index.html` through the project's local web server to compare every candidate against the current in-game attack sound.
```powershell
python -m http.server 5501 --bind 127.0.0.1
```
Then visit <http://127.0.0.1:5501/assets/audio/attack-candidates/>.
The current `assets/audio/sfx-attack.ogg` is the A reference. The ice-combat update selected `layered-swish-phaser.ogg` for the normal note-blade attack. The former Kenney RPG Audio `knifeSlice2.ogg` version is preserved as `assets/audio/sfx-attack-legacy.ogg`.
## Candidates
| Files | Count | Purpose | Source |
| --- | ---: | --- | --- |
| `physical-swish-*.ogg` | 8 | Fast wind and weapon movement | Swishes Sound Pack |
| `physical-knife-slice-alt.ogg` | 1 | Alternate physical slice | Kenney RPG Audio |
| `energy-*.ogg` | 6 | Digital, laser, and short magic accents | Kenney Digital Audio / Magic Spell SFX |
| `layered-*.ogg` | 3 | Physical attack plus a quieter energy layer | CC0 sources above |
All candidates are mono 48 kHz Ogg Vorbis files normalized near -18 LUFS, with a -2 dB true-peak target. The longer laser and magic sources are trimmed and faded for a short player attack.
## Replacing the current sound
Back up the current sound, then copy the selected file over it:
```powershell
Copy-Item -LiteralPath 'assets\audio\sfx-attack.ogg' -Destination 'assets\audio\sfx-attack.backup.ogg'
Copy-Item -LiteralPath 'assets\audio\attack-candidates\layered-swish-phaser.ogg' -Destination 'assets\audio\sfx-attack.ogg' -Force
```
Alternatively, point `SFX_TRACKS.attack` in `game.js` at a candidate file. Browser caching can preserve the previous sound during development; use a hard refresh after replacing it.
See `LICENSES.md` for source and license details. Rebuild the processed files with `tools/build_attack_candidates.ps1`.