Packs / game-assets-and-ai-public
procedural-game-sfx
Generate game sound effects (coin, jump, laser, explosion, hit, power-up) procedurally as WAV files with seeds, so they are royalty-free and reproducible
Install
logicpacks pack use game-assets-and-ai-public/procedural-game-sfxget_pack game-assets-and-ai-public/procedural-game-sfxThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 2 in
outcome/checks.yaml - Code:
sfx.pyverify_sfx.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A starter SFX set with no licensing questions, regenerated identically from a seed, normalised without clipping.
Steps
- Run
python3 code/sfx.py out/sfx --seed 1-> six WAVs (44.1 kHz mono 16-bit). - Tweak presets in
PRESETS(waveform, pitch slide, envelope, noise). - Convert for the web:
ffmpeg -i coin.wav -c:a libopus coin.ogg(+ m4a for old Safari). - Music and voice: see
music-and-sound.
Edge cases
- Very short sounds click without a fade-out: the envelope always ends at 0.
- Same seed = same bytes: commit the seed, not just the WAV.
Don'ts
- Don't normalise to 0 dBFS (no headroom); target peak -1 dBFS.