77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.
Python agent-skillsai-agentsantigravityawesome-listclaude-codeclinecodexcursorgame-devgame-developmentgamedevgemini-cligithub-copilotgodotkirooh-my-piskillsunityunrealwindsurf
fix(godot): replace deprecated AudioEffectLimiter, add max_polyphony and linear volume helpers
Kiro Crew983af42f2133
diff --git a/skills/godot/godot-audio/SKILL.md b/skills/godot/godot-audio/SKILL.mdindex 06d9c03..2abd77e 100644--- a/skills/godot/godot-audio/SKILL.md+++ b/skills/godot/godot-audio/SKILL.md@@ -33,7 +33,8 @@ philosophy, ducking patterns) → `audio-design`; importing/encoding assets outsDefine buses in the Audio panel (bottom dock); each can have volume, mute, solo, andeffects.4. **Control volume in dB**, not linear (audio is logarithmic). `0 dB` = unchanged,- `-80 dB` ≈ silent. Convert with `linear_to_db`/`db_to_linear`.+ `-80 dB` ≈ silent. Convert with `linear_to_db`/`db_to_linear`, or use the linear helpers+ (`volume_linear` on players, `AudioServer.set_bus_volume_linear()`), which convert for you.5. **Drive volume/mute from code** with `AudioServer` by bus index.6. **For rhythm**, compute precise playback time using output latency compensation.@@ -48,7 +49,7 @@ func play_jump() -> void:sfx.pitch_scale = randf_range(0.95, 1.05) # slight variation avoids fatiguesfx.play()-# For many overlapping copies, use an AudioStreamPlayer with an+# For overlapping copies, raise sfx.max_polyphony (default 1), use an# AudioStreamPolyphonic stream, or spawn short-lived players and free on `finished`.```@@ -96,12 +97,14 @@ func get_playback_time() -> float:- **Treating volume as linear.** `volume_db`/`set_bus_volume_db` are decibels. Setting`volume_db = 0.5` is nearly full volume, not half. Map sliders with `linear_to_db`.-- **`linear_to_db(0.0)` is `-inf`.** Clamp the linear value to a small minimum (e.g.- `0.0001`) before converting, or special-case 0 → mute.+- **`linear_to_db(0.0)` is `-inf`.** It is silent, but tweening or doing math from `-inf`+ produces NaN. Clamp the linear value to a small minimum (e.g. `0.0001`) before converting,+ or special-case 0 → mute. `set_bus_volume_linear(bus, 0.0)` stores `-inf` too.- **Bus name typos fail quietly.** `get_bus_index("Muisc")` returns `-1`; calls then erroror no-op. Match the exact bus name from the Audio panel.-- **Short SFX cut off** when the same player is retriggered. Use separate players, an- `AudioStreamPolyphonic`, or `AudioStreamPlayer` per-shot freed on `finished`.+- **Short SFX cut off** when the same player is retriggered → `max_polyphony` defaults to 1.+ Raise it (e.g. 4) so `play()` overlaps copies, or use an `AudioStreamPolyphonic` /+ separate players freed on `finished`.- **Music doesn't loop** unless the import/stream loop is enabled (`.ogg` import has aLoop option; `AudioStreamWAV` has `loop_mode`).- **Syncing to `get_playback_position()` alone is jittery** — it updates per audio mix,diff --git a/skills/godot/godot-audio/references/buses-and-effects.md b/skills/godot/godot-audio/references/buses-and-effects.mdindex 24d9acd..3828017 100644--- a/skills/godot/godot-audio/references/buses-and-effects.md+++ b/skills/godot/godot-audio/references/buses-and-effects.md@@ -17,6 +17,7 @@ layout resource (`default_bus_layout.tres` by default; set in Project Settings >```gdscriptvar i := AudioServer.get_bus_index("Music")AudioServer.set_bus_volume_db(i, linear_to_db(0.8))+AudioServer.set_bus_volume_linear(i, 0.8) # same thing, converts for youAudioServer.set_bus_mute(i, true)AudioServer.set_bus_solo(i, true)AudioServer.get_bus_count()@@ -37,7 +38,8 @@ Add `AudioEffect*` resources to a bus (editor or `add_bus_effect`):- `AudioEffectReverb`, `AudioEffectDelay`, `AudioEffectChorus`, `AudioEffectDistortion`.- `AudioEffectEQ6/EQ10/EQ21`, `AudioEffectLowPassFilter`, `AudioEffectHighPassFilter`.-- `AudioEffectCompressor`, `AudioEffectLimiter` (mastering).+- `AudioEffectCompressor`, `AudioEffectHardLimiter` (mastering; the older+ `AudioEffectLimiter` is deprecated).- `AudioEffectPitchShift`, `AudioEffectSpectrumAnalyzer` (for visualizers/beat detection).- `AudioEffectCapture` / `AudioEffectRecord` (read/record bus output).@@ -53,12 +55,15 @@ Add `AudioEffect*` resources to a bus (editor or `add_bus_effect`):- `AudioStreamPolyphonic` — one player that can play many overlapping streams; grab a`AudioStreamPlaybackPolyphonic` from `get_stream_playback()` and call `play_stream(...)`.- `AudioStreamInteractive` — define clips and transitions for adaptive music that switches- between sections on cue (4.7). `AudioStreamSynchronized` plays layered stems together.+ between sections on cue (4.3+). `AudioStreamSynchronized` plays layered stems together, and+ `AudioStreamPlaylist` plays a list of streams in order or shuffled.- `AudioStreamRandomizer` — pick a random stream/pitch per play (great for footsteps).## Positional audio (2D/3D)- `AudioStreamPlayer2D`: `max_distance`, `attenuation`, `panning_strength`, `area_mask`.+ Without a current `AudioListener2D` the hearing point is the centre of the screen; add one+ and call `make_current()` to hear from somewhere else.- `AudioStreamPlayer3D`: `unit_size`, `max_distance`, `attenuation_model`(inverse/inverse-square/log/disabled), `panning_strength`, doppler via the player orcamera. A `Camera3D` acts as the default listener; add an `AudioListener3D` to override.