# 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

- **Space:** game-assets-and-ai-public (https://github.com/Tech-Realm/space-game-assets-and-ai-public/tree/main/procedural-game-sfx)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use game-assets-and-ai-public/procedural-game-sfx` or MCP `get_pack game-assets-and-ai-public/procedural-game-sfx`
- **Files:** CHANGELOG.md, code/sfx.py, code/verify_sfx.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal
A starter SFX set with no licensing questions, regenerated identically from a seed, normalised without clipping.

## Steps
1. Run `python3 code/sfx.py out/sfx --seed 1` -> six WAVs (44.1 kHz mono 16-bit).
2. Tweak presets in `PRESETS` (waveform, pitch slide, envelope, noise).
3. Convert for the web: `ffmpeg -i coin.wav -c:a libopus coin.ogg` (+ m4a for old Safari).
4. 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.



---

Canonical URL: https://logicpacks.io/packs/game-assets-and-ai-public/procedural-game-sfx

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
