build-game-audio-feedback
它能做什么
这个技能指导智能体为 Three.js 或网页游戏设计和制作音效与音乐。适合希望声音能确认玩家操作、又不带来持续噪音的游戏制作者。
适用场景
- ✓游戏中的攻击、命中、格挡或拾取需要声音的时候。
- ✓音乐需要随游戏状态平滑变化的时候。
- ✓网页游戏的声音在手机上或标签页隐藏后失效的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/build-game-audio-feedback/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的网页游戏添加清晰的命中、格挡和拾取音效,并确保它们在手机上也能正常工作。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会把每个游戏事件映射到一个带有优先级的独特声音,在玩家第一次点击后解锁音频,并限制同时播放的声音数量。对于重要的声音,它还会添加字幕或视觉提示。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Build Game Audio Feedback
Use audio to confirm player intent and combat state, not to add constant noise.
Map feedback
Assign distinct cues for input accepted, windup, contact, block, miss, damage, interrupt, pickup, warning, death, and objective completion. Define priority so critical feedback remains audible during crowded encounters.
Build for browsers
Unlock audio from a user gesture, respect mute/volume settings, release completed nodes, cap simultaneous voices, and provide subtitles or visual equivalents for meaningful cues. Change music by state with controlled transitions rather than restarts.
Verify
Test first interaction, rapid actions, pause, tab/background return, mobile, muted state, and reduced motion/accessibility. Check memory and console health after a representative session.
常见问题
为什么音频需要第一次点击?
浏览器在玩家互动之前会阻止声音播放,因此技能会通过用户手势来解锁音频。
它尊重静音和音量设置吗?
尊重。它会遵循静音和音量设置。
对于需要无障碍支持的玩家呢?
技能建议为重要的声音提示提供字幕或视觉替代。
详情
作者的原始描述
Design or implement responsive audio feedback for a Three.js or web game. Use for action sounds, combat layers, music states, spatial audio, mix priorities, mute controls, accessibility, mobile audio unlock, and audio performance.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13352
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。