Skip to content

Pygame-ce game-loop guidance for building and debugging 2D Python games, with headless testing.

CCM score
57 of 100
skills.sh installs
13.9K
GitHub stars
12.1K
last updated
Nov 29, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the event-update-draw loop, delta-time scaling, Surfaces and Rects, Sprite groups, and headless test runs
  • Includes a runnable loop template with --frames and --shot flags, plus a Player sprite using pixels-per-second movement
  • Enforces a clamped dt after stalls and calls event.get() each frame so the window stays responsive
  • Designed for projects importing pygame that hit speed, freezing, or pygame versus pygame-ce install conflicts

Install

$ npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill pygame-core -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/gamedev-skills/awesome-gamedev-agent-skills
Categories
Game Development, Python
First seen
Nov 29, 2026

More from gamedev-skills/awesome-gamedev-agent-skills

All 69

Similar to Pygame Core

More Game Development