pygame 2.5.2


Python Game Development

Python Game Development

Stars: 7030, Watchers: 7030, Forks: 3127, Open Issues: 409

The pygame/pygame repo was created 7 years ago and the last code push was 2 days ago.
The project is extremely popular with a mindblowing 7030 github stars!

How to Install pygame

You can install pygame using pip

pip install pygame

or add it to a project with poetry

poetry add pygame

Package Details

A community project.
GitHub Repo:


  • Games/Entertainment
  • Multimedia/Graphics
  • Multimedia/Graphics/Capture/Digital Camera
  • Multimedia/Graphics/Capture/Screen Capture
  • Multimedia/Graphics/Graphics Conversion
  • Multimedia/Graphics/Viewers
  • Multimedia/Sound/Audio
  • Multimedia/Sound/Audio/MIDI
  • Multimedia/Sound/Audio/Players
No  pygame  pypi packages just yet.


A list of common pygame errors.

Code Examples

Here are some pygame code examples and snippets.

GitHub Issues

The pygame package has 409 open issues on GitHub

  • Adding get_flags in pygame.display
  • pygame.display.init fails if not started by root on Raspberry Pi
  • Add __new__ and __init__ functions for some types
  • adding missing copy test for Vector3
  • Fix stubtest warnings, run stubtest on CI
  • pygame for iOS
  • Added support for complex numbers for Vector2
  • Vector subclassing
  • Round floating point values to integers in rect property assignment
  • Pygame support for python "complex" type
  • Mouse click event appear twice in touchscreen
  • Added strikethrough option to Font
  • Add a .clamp_magnitude() to Vector2 and Vector3
  • Rect collidelistall unittests added and updated docs to document different argument types
  • SIMD version of BLEND_RGBA_MULT for 32bit surfaces

See more issues on GitHub

Related Packages & Articles