Pygame


Pygame is a cross-platform set of Python modules designed for writing video games. It includes computer graphics and sound libraries designed to be used with the Python programming language.

History

Pygame was originally written by Pete Shinners to replace PySDL after its development stalled. It has been a community project since 2000 and is released under the open source free software GNU Lesser General Public License.

Development of Version 2

Pygame version 2 was planned as "Pygame Reloaded" in 2009, but development and maintenance of pygame completely stopped until the end of 2016 with version 1.9.1. After the release of version 1.9.5 on March 2019, development of a new version 2 is active on the roadmap.
Pygame uses the Simple DirectMedia Layer library, with the intention of allowing real-time computer game development without the low-level mechanics of the C programming language and its derivatives. This is based on the assumption that the most expensive functions inside games can be abstracted from the game logic, making it possible to use a high-level programming language, such as Python, to structure the game.
Other features that SDL doesn't have include vector math, collision detection, 2d sprite scene graph management, MIDI support, camera, pixel-array manipulation, transformations, filtering, advanced freetype font support, and drawing.
Applications using pygame can run on Android phones and tablets with the use of pygame Subset for Android. Sound, vibration, keyboard, and accelerometer are supported on Android.

Community

There is a regular competition, called PyWeek, to write games using Python. The community has created many tutorials for pygame.

Notable games using pygame