Pygame Core
/pygame-core
Structure a pygame-ce game: the game loop, delta-time movement, blitting, keyboard and mouse input, and sprite groups with collision.
- GitHub 星数
- 2,085 (所在仓库星数,统计于 2026-10-21)
- 许可证
- Apache-2.0
- 最近提交
- 2026/10/09
- 作者
- gamedev-skills
所属合集
Awesome Gamedev Agent Skills
74 portable SKILL.md skills for Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE and Roblox, with a router.
信息来自作者的 README。 GameSkill 还没完整跑过。支持的 Agent 和安装步骤以作者文档为准。
安装
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill pygame-coreInstalls only this skill. Add -a claude-code (puts it in .claude/skills/), -a codex or -a cursor (.agents/skills/) to choose the agent, and -g to install it for your user instead of the project.
命令照搬项目 README。在本机运行前,请先看一眼仓库。
为指定 Agent 安装
| Agent | -a | 文件夹 |
|---|---|---|
| Claude Code | claude-code | .claude/skills/ |
| Codex | codex | .agents/skills/ |
| Cursor | cursor | .agents/skills/ |
| Gemini CLI | gemini-cli | .agents/skills/ |
| GitHub Copilot | github-copilot | .agents/skills/ |
| OpenCode | opencode | .agents/skills/ |
| Windsurf | windsurf | .windsurf/skills/ |
在命令后加 -a <参数>。以上是项目级文件夹;加 -g 则安装到你的用户目录。
包含内容
- Worked steps: Minimal game loop; Delta-time movement; Input: events vs polling; A Sprite subclass + a Group
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
- Written for pygame-ce
适合
- Building or debugging a pygame game
试试这条提示词
Set up a pygame-ce game loop with sprite groups and collision.关于这个 Skill
Structure a pygame (pygame-ce) game in Python: the init/event/update/draw loop, delta-time movement, Surface/Rect blitting, keyboard/mouse input, and Sprite/Group management with collision. Use when building or debugging a pygame game — when the user mentions pygame, pygame-ce, the game loop, blit, Surface, Rect, sprite groups, or clock.tick. Targets pygame-ce.
From the pygame-core SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Minimal game loop (the skeleton)
- Delta-time movement (frame-rate independent)
- Input: events vs polling
- A Sprite subclass + a Group
- Collision detection
环境要求
- pygame-ce
常见问题
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
LÖVE (Love2D) Core
Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop, delta-time movement, input, and screen states.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Game Input Systems
Game input architecture: action mapping, rebinding with conflict checks, keyboard, gamepad and touch, deadzones, buffering and coyote time.
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.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 39 个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.
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.
Dialogue Systems
Branching dialogue as a node graph with conditions, variables and localization hooks, using Ink, Yarn Spinner or a custom runner.
相似 skills
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
MCP for Unity (CoplayDev)
A bridge between AI assistants and the Unity Editor: manage assets, control scenes, edit scripts and automate tasks.
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
Godot MCP (Coding-Solo)
MCP server for Godot: launch the editor, run projects, capture debug output and edit scenes.