Skip to main content
LUA
SkillFreeBy GameSkill · tuned

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.

License
Apache-2.0
By
By GameSkill
Download ZIP

Part of

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.

Tested by GameSkill

29/29 checks passed on pygame-ce 2.5.8 (SDL 2.32.10) (2026-10-30): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

What this skill does

When it triggers

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.tick. Targets pygame-ce. …

GameSkill's tested copy

GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.

Download tested ZIP (24 KB)Roadmap: Engine basics

License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Pygame Core

Self-check

  • 移动乘以 dt(秒),不按帧算 / Movement scales by dt in seconds, not per frame
  • 位置用浮点 Vector2 存,Rect 只用来画和碰撞 / Keep a float position; the Rect is for drawing and collision
  • dt 有上限,卡顿后不会瞬移 / dt is capped so a stall does not teleport sprites
  • set_mode 之后再 convert() / convert_alpha() / Call convert() or convert_alpha() after set_mode
  • 移除精灵用 kill(),从所有 Group 中删掉 / Remove sprites with kill(), which leaves every group

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/pygame-core/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/pygame-core.zip -o /tmp/gameskill-pygame-core.zip
unzip -oq /tmp/gameskill-pygame-core.zip -d .claude/skills
rm /tmp/gameskill-pygame-core.zip

What you get

  • 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

Good fit

  • Building or debugging a pygame game

Try this prompt

Prompt
Set up a pygame-ce game loop with sprite groups and collision.

About this 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

Requirements

  • pygame-ce

FAQ

MATCHED PRO KIT$8.25/mo

Game Polish Workflow

A repeatable workflow for getting an AI agent to actually improve your game: a 10-step polish loop, bilingual prompts, a troubleshooting guide for common AI-made game bugs, and playtest and release checklists.

  • 10-step polish loop with done criteria
  • 14 prompts in Chinese + 14 in English

Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

More from Awesome Gamedev Agent Skills

See all 42

Similar skills