Build multimedia applications and games with pygame, a Python library built on SDL.

github.com/pygame/pygame
Pygame homepage screenshot

About Pygame

Pygame is a free, open-source cross-platform Python library for developing multimedia applications and games, built on top of the Simple DirectMedia Layer (SDL) library. It abstracts common multimedia functions to simplify development workflows for users. The library supports Linux, macOS, and Windows, and includes built-in functionality for 2D graphics and animation, audio playback and manipulation, input handling for keyboard, mouse, and joystick, and game development tools such as collision detection and sprite management.

Key features

  • Cross-platform support for Linux, macOS, and Windows
  • 2D graphics and animation for images, rectangles, polygon shapes
  • Audio playback and manipulation for WAV, MP3, OGG formats
  • Keyboard, mouse, and joystick input handling functions
  • Built-in collision detection and sprite management tools
  • Pre-installed example games and tutorials for new users
Best for: Pygame is best suited for Python developers creating 2D games or multimedia applications.
Good for
  • Free and open-source with cross-platform compatibility
  • Abstracts common SDL functions to simplify multimedia development
  • Includes pre-built examples and documentation to support new users
Watch out for
  • In-development features and contributions require building from source instead of using a standard pip install
  • Online documentation may be newer than the version installed via pip
  • Python and pip must be pre-installed on the system before pygame can be installed

Pygame at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Platforms
Linux, macOS, Windows
Open source
Not stated
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

Pygame alternatives

Tools and sites you could use instead, ranked by how closely they match.

Popular in Game Databases & Discovery

Well-known listings from the same topic.

All 85

Pygame FAQ

How do I install pygame?
Run pip install pygame after confirming Python and pip are installed on your system.
How can I test if pygame is installed correctly?
Run python3 -m pygame.examples.aliens to open a pre-installed example game.
How do I access pygame's documentation?
Run python -m pygame.docs locally, or browse it online if local docs are unavailable.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing