design-action-combat
它能做什么
这个技能帮助 AI 智能体规划网页动作游戏中的战斗规则。适合希望攻击、格挡和闪避感觉公平、并且易于测试的游戏设计师和开发者。
适用场景
- ✓你正在为游戏设计攻击、格挡或闪避的时候。
- ✓战斗感觉不公平、令人困惑或节奏太慢的时候。
- ✓你想要检查战斗时机和命中结果的测试的时候。
技能链接
https://github.com/MengTo/Skills/blob/main/agent-skills/game-development/design-action-combat/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为浏览器游戏中的 Boss 设计公平的攻击和闪避时机。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会为每个动作定义起始、有效窗口、恢复阶段和结果。然后,它使用游戏自身的碰撞事件来判定命中,并针对过早、过晚和重复的输入编写测试。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Design Action Combat
Treat combat as explicit state machines with visible, testable timing rather than animation-driven guesses.
Specify every combat verb
For each player or enemy action, define: startup, active window, recovery, cancellation rules, resource cost, contact shape, damage/posture outcome, cooldown, and feedback. Make telegraph, danger, contact, and recovery readable at normal camera distance.
Use authoritative outcomes
- Drive hits, blocks, parries, and interrupts from authoritative collision/contact events.
- Require direction, range, phase, and state validity before resolving an outcome.
- Apply each contact once using stable action and target identifiers.
- Keep visuals downstream of resolved simulation events.
Tune for decisions
Give each defense a distinct purpose: spacing, dodge, timed guard, interruption, or resource trade. Avoid unpunishable attacks, recovery loops, unavoidable damage, and dominant spam. Boss phases must alter decision pressure without invalidating learned timing.
Test combat deterministically
Cover early/late timing, wrong direction, out-of-range contact, multiple targets, interrupted actions, phase changes, cooldown boundaries, pause/frame step, equip swaps, and repeated inputs. Use seeded or queryable review scenarios instead of requiring long campaign playthroughs.
Verify in play
Test at realistic frame rate and camera distance. Confirm that player intent, contact feedback, health/posture changes, sound/VFX, and target state agree. Check reduced motion and input alternatives before release.
常见问题
它只涵盖动画吗?
不是。它把战斗视为带有时机、消耗和结果的清晰规则,并说明动画应遵循这些规则,而不是由动画决定。
它会编写哪些测试?
涵盖过早和过晚的时机、错误的方向、超出范围的命中、被打断的动作以及冷却边界。
它只适用于 Boss 吗?
不是。同样的规则适用于玩家的招式和普通敌人,Boss 阶段只是额外的一层。
详情
作者的原始描述
Design, implement, tune, or test readable tactical action combat for web games. Use for attack timing, guard and dodge windows, hit contact, posture, lock-on, weapons, boss phases, combat feedback, and deterministic combat tests.
repo: MengTo/Skills
热度
- GitHub 星标
- 7.2k
- 排名
- #13364
- 许可证
- 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 模型,然后制作在网页上运行流畅的轻量版本。