Python games with pygame
Builds and debugs 2D pygame games with a proper loop and delta time, so they run the same on any PC.
Claude's review
8/10 Practical pygame loop, headless testing and gotchas verified against a real version.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Builds and debugs 2D games in Python with pygame-ce (imported as pygame): the event-update-draw loop, delta time, Surfaces and Rects, Sprite groups and headless tests. Use when code imports pygame, or a window says not responding, speed differs per PC or pygame and pygame-ce conflict. Not for engine-neutral input or saves (`input-systems`, `save-systems`) or jump feel (`platformer`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: pygame-core
description: >
Builds and debugs 2D games in Python with pygame-ce (imported as pygame): the event-update-draw
loop, delta time, Surfaces and Rects, Sprite groups and headless tests. Use when code imports
pygame, or a window says not responding, speed differs per PC or pygame and pygame-ce conflict.
Not for engine-neutral input or saves (`input-systems`, `save-systems`) or jump feel
(`platformer`).
---
# pygame Core
Build and debug a pygame game. New code targets **pygame-ce 2.5.8**, the maintained
community fork; it installs as `pygame-ce` and imports as `pygame`. Legacy `pygame` 2.6
code mostly runs unchanged; pygame-ce-only APIs such as `FRect` and `get_frect()` need the
fork, which `getattr(pygame, "IS_CE", False)` detects.
## When to use
- Starting a pygame game, or fixing its loop, speed, input, drawing, sprite groups,
collision, audio or text.
- Any project with `import pygame`, whichever package provides it.
**When not to use:** Python questions unrelated to pygame; 3D; portable design work owned by
the related skills below.
## Workflow
1. **Check the install.** `python -c "import pygame; print(pygame.version.ver,
getattr(pygame, 'IS_CE', False))"`. Keep the project's package; for a new project use
`pip install pygame-ce`.
2. **Keep logic testable.** Put rules in classes or functions that take `dt` and an input
snapshot, so a test can drive them without a window. Only the loop touches the display.
3. **One loop per frame:** drain events, update with a clamped `dt`, draw, `flip()`. Use
pixels per second, and float positions (`FRect` or `Vector2`).
4. **Load assets after `set_mode`**, then `convert()` / `convert_alpha()` once each.
5. **Verify headless.** Run the tests and a short scripted run with the dummy drivers (see
the check below), then open the saved PNG. Report what ran. Feel, audio and real input
still need a person: ask the user to play for a minute and report speed, controls and
sound.
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Kotlin Toolchain CLI
Builds, tests and packages Kotlin projects with the new JetBrains Kotlin Toolchain CLI, formerly called Amper.
7/101 credit -
Checked
Rust best practices
Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.
7/101 credit -
Checked
Port code to Rust
Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.
9/101 credit -
Checked
Rust code review
Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.
8/101 credit -
Checked
Java Debugging Guide
Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.
7/101 credit -
Checked
Multi axis code review
Reviews a diff for correctness, design, tests and security with severity labels, so only solid code merges.
8/101 credit