|Original author(s)||Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others|
|Initial release||28 October 2000|
2.1.2 / December 26, 2021
|Written in||Python, C, Cython, and Assembly|
|License||GNU Lesser General Public License|
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.
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 free software GNU Lesser General Public License (which "provides for Pygame to be distributed with open source and commercial software").
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 in March 2019, development of a new version 2 is active on the roadmap.
Pygame 2.0 released on 28 October, 2020, on Pygame's 20th birthday.
Pygame uses the Simple DirectMedia Layer (SDL) library,[a] 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 does 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 (pgs4a). Sound, vibration, keyboard, and accelerometer are supported on Android.
There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, Pygame). The community has created many tutorials for Pygame.
Notable games using Pygame
- Frets on Fire
- Dangerous High School Girls in Trouble
- Save the Date, IndieCade 2013 Finalist
- Drawn Down Abyss 
- ^ "Contributors to Pygame". GitHub.
- ^ a b Shinners, Pete. "Python Pygame Introduction - History". Pygame.org. Archived from the original on 2019-09-17. Retrieved 2017-04-28.
- ^ "Downloads - Pygame - Python game development". Pypi.python.org.
- ^ "2.1.2". GitHub.
- ^ a b c "About Pygame". GitHub. Archived from the original on 18 September 2019. Retrieved 31 August 2019.
- ^ "GettingStarted". Pygame.org.
- ^ "pySDL sourceforge page". Sourceforge.net.
- ^ "commit by other authors". GitHub.
- ^ "Pygame Front Page — pygame v2.0.1.dev1 documentation". www.pygame.org. Retrieved 2021-02-26.
- ^ "pygame 1.9.5 released into the wilds". www.pygame.org.
- ^ "pygame 2.0 - the happy dance birthday release". GitHub.
- ^ "Pygame docs". Pygame.org.
- ^ "Example of using RAPT to package pygame(_sdl2) games.: renpytom/rapt-pygame-example". GitHub. 1 April 2019. Retrieved 1 April 2019.
- ^ "API — Pygame Subset for Android". Archived from the original on 19 October 2014. Retrieved 14 October 2014.
- ^ "PyWeek - Python Game Programming Challenge". Pyweek.org.
- ^ Gee, Sue (29 March 2013). "Why PyWeek: An Interview with Richard Jones". i-programmer.info. Retrieved 31 March 2020.
- ^ "PyWeek - Python Wiki". Wiki.python.org. Retrieved 1 April 2019.
- ^ "pygame documentation: Tutorials". Pygame.org.
- ^ Siddiqi (2020-06-27). "Python Game projects with source code". CodersLegacy. Retrieved 2020-12-25.
- ^ Shinners, Pete. "Line by line tutorial - Tutorial for beginners". Archived from the original on 5 February 2005.
- ^ "Creating Games with Python - A tutorial explaining how to use pygame for game development and improved execution". Linuxjournal.com.
- ^ "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 29 April 2007.
- ^ "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.
- ^ "Save the Date". Paperdino.com. Retrieved 14 October 2014.
- ^ "Drawn Down Abyss". steampowered.com.
- ^ "pygame 1.9.5 released into the wilds". Pygame.org.
- Official website
- Pygame newsgroup (web access) - the "official" Pygame newsgroup, requires registration
- Pygame Subset for Android (PGS4A)
- pyOpenGL - Python OpenGL Bindings
- Pygame-SDL2 - a reimplementation of Pygame APIs on top of SDL2
- PySDL2 - a wrapper around the SDL2 library similar to the discontinued PySDL project