
pygame-core
Structure a pygame (pygame-ce) game in Python: the init/event/update/draw loop
by gamedev-skillsFree
Description
This agent skill helps a developer structure and debug a 2D game made with pygame in Python. It targets pygame-ce 2.5.8, the maintained community fork, which installs as pygame-ce and is imported as pygame. The skill covers the core loop of event handling, update and draw, along with delta-time movement, Surfaces and Rects for drawing and blitting, keyboard and mouse input, sprite groups, collision checks, audio and text. Legacy pygame 2.6 code mostly runs unchanged. The skill notes that pygame-ce-only features, such as FRect and get_frect(), need the fork, and it explains how to detect the fork at runtime with getattr(pygame, "IS_CE", False). It applies to any project that imports pygame, whichever package provides it. It is not for 3D work, and it is not for general Python questions that have nothing to do with pygame. Portable game design work is handled by the related skills. The skill is part of the awesome-gamedev-agent-skills repository on GitHub, which has about 9.1K stars.…
Highlights
- Structure the event, update and draw loop
- Use delta-time movement for steady speed
- Draw with Surfaces, Rects and blitting
- Manage sprites with groups and collision checks
- Support both pygame-ce and legacy pygame 2.6
Ratings & Reviews
No ratings yet
Be the first to rate pygame-core.
People also visit
Pygame Menu
A menu for pygame (pygame-ce also supported!). Simple, and easy to use
pygame-core FAQ
Which pygame version does it target?
It targets pygame-ce 2.5.8, the community fork. The fork installs as pygame-ce and is imported as pygame.
Does it work with the original pygame?
Yes. The skill says legacy pygame 2.6 code mostly runs unchanged. Features such as FRect need the fork.
Does it cover 3D games?
No. The skill is for 2D games made with pygame.
How do I install it?
Run npx skills add https://github.com/gamedev-skills/awesome-gamedev-agent-skills --skill pygame-core.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best pygame-core alternatives?
Popular alternatives to pygame-core include love2d-core, pixijs-ticker and spritekit. See all pygame-core alternatives










