Game Input Systems
/input-systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
- 许可证
- 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 上通过 32/32 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Architect game input — action mapping (abstracting keys into named actions), rebinding with conflict detection and persistence, multi-device support (keyboard, gamepad, touch), analog deadzones …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 玩法代码只读动作名(jump、move_left),不直接读按键 / Gameplay reads named actions, never raw keys
- 摇杆用径向死区,斜向长度不超过 1 / Sticks use a radial deadzone and diagonals never exceed length 1
- 提前按跳有输入缓冲,离开平台后有土狼时间 / An early jump press is buffered and there is coyote time after a ledge
- 改键会检测冲突,键盘存物理键位,手柄绑定对所有设备生效 / Rebinding rejects conflicts, stores physical keys and binds pads for every device
- 改键会保存,重启后还在,并且可以一键恢复默认 / Rebinds persist across restarts and can be reset to defaults
中文指南
这个 skill 做什么
帮 AI 搭好游戏的输入层:把按键映射成动作名、键盘手柄触屏多设备、摇杆死区、提前按键缓冲和土狼时间、改键(含冲突检测和保存)以及无障碍设置。描述与引擎无关,示例代码是 Godot 4.7,同时给出 Unity Input System 和 Unreal Enhanced Input 的对应写法。
什么时候用
- 做改键界面,要防止两个动作用同一个键
- 手柄摇杆漂移、斜向移动比直线快
- 跳跃“吞键”,想让操作更宽容
- 需要支持 AZERTY 等不同键盘布局
怎么装
下载本页的 ZIP,把 input-systems/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程:bindings.gd 实现死区、改键、冲突检测、保存和恢复默认,player.gd 实现输入缓冲和土狼时间。屏幕左上角会列出当前绑定。
我们怎么测的
在 Godot 4.7.2 无头模式下跑 20 项检查:死区边界和斜向长度、按键重复和摇杆噪声不能被绑定、冲突改键被拒绝、改键后保存并在“重启”后读回、恢复默认、手柄绑定设备为 -1、提前按跳在落地时触发。结果在 gameskill/test-report.json。
搭配
godot-2d-movement:角色移动save-systems:把按键设置和存档放在一起管理
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/input-systems/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/input-systems.zip -o /tmp/gameskill-input-systems.zip
unzip -oq /tmp/gameskill-input-systems.zip -d .claude/skills
rm /tmp/gameskill-input-systems.zip包含内容
- Worked steps: Actions over raw keys; edge vs held; Analog deadzone and sensitivity; Input buffering + coyote time; Rebinding with conflict detection
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- Requests about input mapping, rebind controls, gamepad support, deadzone or input buffering
试试这条提示词
Add rebindable controls with gamepad support, input buffering and coyote time.关于这个 Skill
Architect game input — action mapping (abstracting keys into named actions), rebinding with conflict detection and persistence, multi-device support (keyboard, gamepad, touch), analog deadzones, and feel features like input buffering and coyote time, plus accessibility. Engine-neutral. Use when the user mentions input mapping, rebind controls, gamepad support, deadzone, input buffering, coyote time, or accessible controls.
From the input-systems SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Actions over raw keys; edge vs held
- Analog deadzone and sensitivity
- Input buffering + coyote time (forgiving, responsive feel)
- Rebinding with conflict detection
常见问题
游戏打磨流程 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 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Game Save Systems
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave.
Game Physics Tuning
Stable, good-feeling physics: fixed timestep with interpolation, mass and drag, CCD against tunneling, jitter fixes and collision layers.
2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
FPS Shooter
Build a first-person shooter: move+mouse-look controller, hitscan or projectile shooting, weapons, health, and enemy AI.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 44 个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.
Create Game Assets
Plan, generate, source, normalize, and validate cohesive visual game assets.
相似 skills
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.
Novel to Game: Build
Build a risk-matched whitebox or the approved production game for its target runtime.
Shader Art Coding (GLSL / Shadertoy)
A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.