Skip to content

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

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-game-assets-and-ai-public

Install

logicpacks pack use game-assets-and-ai-public/procedural-game-sfx
get_pack game-assets-and-ai-public/procedural-game-sfx

The 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

  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.