Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pygame-core

Skill by gamedev-skills

Builds and debugs 2D games in Python with pygame-ce. It covers the event, update and draw loop, delta-time movement, Surfaces, Rects, sprite groups and headless tests. Aimed at developers making pygame games.

  • Score 94
  • 13k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pygame-core

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/other-engines/pygame-core ~/.claude/skills/pygame-core

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pygame-core in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an assistant through building and debugging a 2D game with pygame-ce, the maintained fork of pygame that imports as pygame. It sets out a single loop per frame: drain events, update with a clamped delta time, draw, then flip the display. It also covers loading assets after set_mode, converting images once, and moving sprites in pixels per second using float positions such as FRect or Vector2.

The skill includes a runnable loop pattern with a headless option that saves a PNG after a set number of frames, plus a sample Player sprite. It runs unit tests and scripted runs with the SDL dummy drivers, and it lists common errors with their fixes, such as freezes, speed differences between machines, and pygame and pygame-ce installed together. It is written for Python developers working on pygame projects. The source says it targets pygame-ce 2.5.8 and that related topics like input systems, saves and platformer rules are handled by other skills.

Written from the project's SKILL.md and checked against it.

What it can do

  • Game loop structureSets up one loop per frame covering events, update, draw and flip.
  • Delta-time movementScales movement by a clamped dt so speed does not depend on frame rate.
  • Surface and Rect blittingCovers loading images, converting them once and drawing them in order.
  • Keyboard and mouse inputExplains KEYDOWN events for one-off actions and held key state for movement.
  • Sprite and Group managementShows Sprite subclasses and Group updates and drawing with collision.
  • Headless verificationRuns unit tests and a scripted run with SDL dummy drivers and saves a frame PNG.
  • Troubleshooting gotchasLists common pygame errors and freezes with their likely causes and fixes.
  • Install checkChecks the installed pygame package and whether it is pygame-ce.

What you need

  • Python 3.10 or newer for pygame-ce 2.5.8
  • pygame-ce package installed with pip

Try asking

  • Set up a pygame-ce game loop with delta-time movement for a player sprite
  • Why does my pygame window show not responding and how do I fix it?
  • Write a headless unit test for a pygame sprite that moves with arrow keys

Good to know

  • Feel, audio and real input still need a person to play and report results.
  • The SDL dummy run cannot show frame pacing or how input feels.
  • The source says pygame.SCALED is experimental in the docs.
  • Installing pygame and pygame-ce in one environment causes conflicts, so only one should be installed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/other-engines/pygame-core/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • references/sprites-and-collision.md5 KB

Alternatives to pygame-core

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

pygame-core: common questions

Does this skill work with pygame-ce or the original pygame?

It targets pygame-ce 2.5.8 for new code. The source says legacy pygame 2.6 code mostly runs unchanged, and pygame-ce-only APIs like FRect need the fork.

How does it keep game speed the same on different computers?

It scales movement by delta time from clock.tick() and clamps long stalls, so movement is in pixels per second.

Can I test a pygame game without opening a window?

The source describes running unit tests and a short scripted run with the SDL dummy video and audio drivers, and saving a PNG of the last frame.

How do I install pygame-core?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pygame-core free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is pygame-core safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pygame-core?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

pygame-core Install

Add to stack

Loading.