FPS Shooter
/fps-shooter
Build a first-person shooter: move+mouse-look controller, hitscan or projectile shooting, weapons, health, and enemy AI.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Godot 4.7.2 上通过 33/33 项检查(2026-10-30):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Build a first-person shooter: move+mouse-look controller, hitscan or projectile shooting, weapons, health, and enemy AI. Use for an FPS, or tuning aim feel, time-to-kill, recoil, or spread.
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 19d93f97c9c1,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 射线检测排除玩家自己的碰撞体 / The hitscan ray excludes the player's own body
- 物理查询前至少等一个物理帧 / Wait at least one physics frame before querying physics
- 俯仰角有上下限 / Pitch is clamped
- 散布和后坐力会回复,图案固定可学 / Spread and recoil recover, and the pattern is fixed and learnable
- 用 TTK 公式核对每把枪的手感 / Check each weapon with the time-to-kill formula
中文指南
这个 skill 做什么
第一人称射击的核心:限制俯仰角的鼠标视角、射线命中(排除玩家自己)、散布随连射扩大并回落、固定的后坐力图案、距离伤害衰减和爆头倍率、击杀时间(TTK)计算,以及一个会发现、追击、攻击、丢失目标后搜索的敌人状态机。
什么时候用
- 做第一人称射击的射击和武器
- 调后坐力、散布和击杀时间
- 给 FPS 加生命值和敌人 AI
怎么装
下载本页的 ZIP,把 fps-shooter/ 整个文件夹放进 agent 的 skills 文件夹:Claude Code 用 .claude/skills/,Codex、Gemini CLI、OpenCode 用 .agents/skills/,Cursor 用 .cursor/skills/,Copilot 用 .github/skills/,Windsurf 用 .windsurf/skills/,然后重启 agent。也可以直接对 agent 说:Install the skill from https://gameskill.dev/skills/fps-shooter/install.md
最小示例
gameskill/examples/ 是一个 Godot 4.7 3D 工程:shooting.gd 是射线、散布、后坐力和伤害公式,health.gd 是生命值,enemy_ai.gd 是敌人状态机,main.gd 用代码搭出地面、墙、三个靶子、玩家和准星。
我们怎么测的
总分 33/33。在 Godot 4.7.2 无头模式下跑检查:伤害随距离衰减并有下限、爆头双倍;TTK 的枪数和秒数算对;第一枪精准、连射散布变大再回落;后坐力图案固定、会回复、停火后重置;生命值扣到零就死且不变负;敌人看到玩家会警觉、延迟后攻击、失去视线会搜索;在真实物理场景里等两帧后射线命中靶子、不会打到自己、命中的物体带生命值。审查时我们发现靶子的生命值节点没命名,导致射中也不扣血,已修正。结果在 gameskill/test-report.json。
搭配
threejs-fps-weapon-feel:我们原创的网页 FPS 武器手感game-feel:开火和命中反馈ai-behavior-trees-utility-ai:更复杂的敌人 AI
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/fps-shooter/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/fps-shooter.zip -o /tmp/gameskill-fps-shooter.zip
unzip -oq /tmp/gameskill-fps-shooter.zip -d .claude/skills
rm /tmp/gameskill-fps-shooter.zip包含内容
- Worked steps: Hitscan shot; Projectile shot; Time-to-kill
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- An FPS, or tuning aim feel, time-to-kill, recoil, or spread
试试这条提示词
Build a first-person shooter prototype with hitscan weapons, recoil and enemy AI.关于这个 Skill
Build a first-person shooter: move+mouse-look controller, hitscan or projectile shooting, weapons, health, and enemy AI. Use for an FPS, or tuning aim feel, time-to-kill, recoil, or spread.
From the fps-shooter SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Core loop
- Must-have systems
- Design knobs
- Hitscan shot (instant ray, the workhorse)
- Projectile shot (dodgeable, leads the target)
- Time-to-kill (balance the trio together)
- Composition (build it from these skills)
常见问题
游戏打磨流程 Game Polish Workflow
让 AI 把游戏真正改好的可复用流程:10 步打磨循环、中英双语提示词、AI 做游戏常见问题排障清单,以及试玩和发布检查表。
- 10 步打磨循环,每步有完成标准
- 14 条中文 + 14 条英文提示词
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 48 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
Novel to Game
Agent skills for source-grounded adaptation of novels into games: cited design docs, target-runtime builds and evidence-based QA.
Novel to Game: Art Direction
Direct game art and creative vision.
Novel to Game: Book Analysis
Deconstruct a novel for game adaptation.
Novel to Game: Concept
Design game concepts from a novel.