pygame/pygame

Created Dec 27, 2020 · View the pygame/pygame repository page

🐍🎮 pygame (the library) is a Free and Open Source python programming language library for making multimedia applications like games built on top of the excellent SDL library. C, Python, Native, OpenGL.

Want this for your repo?

Render a free sample of any GitHub repo in seconds.

Visualize your own →

Contributors

184

Lines of Code

47,293

From

Nov 8, 2000

To

Dec 24, 2020

About pygame/pygame

Pygame is a free and open-source Python library for creating multimedia applications and video games. Built on top of the Simple DirectMedia Layer (SDL) library, it abstracts common functions to make game development more intuitive for developers of all skill levels. The project is written primarily in C with Python bindings and supports multiple platforms including Windows, macOS, and Linux.

The library provides comprehensive tools for game development including 2D graphics and animation, sprite management, collision detection, sound and music playback (supporting WAV, MP3, and OGG formats), and input handling for keyboards, mice, and joysticks. It also includes modules for font rendering, image manipulation, and pixel-perfect collision detection. Pygame comes with extensive documentation, tutorials, and example games that serve as learning resources for beginners.

Pygame requires Python 3.6 or later and depends on SDL 2.0.8 and related libraries like SDL_mixer, SDL_image, and SDL_ttf. The project is distributed under the GNU LGPL v2.1 license, allowing use in both open-source and commercial games as long as modifications to pygame itself are released under compatible licenses. It actively welcomes community contributions through documentation, unit tests, bug reports, and code improvements.

Share this video