|Original author(s)||Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, others .|
|Initial release||28 October 2000|
1.9.6 / April 25, 2019
2.0.0.dev4 / October 8, 2019
|Written in||Python, C, Cython, and Assembly|
|License||GNU Lesser General Public License|
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.
Architecture and features
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 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.
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.
- pygame 2 and later versions are based on SDL2, while earlier releases were based on SDL1.
- Shinners, Pete. "Python Pygame Introduction - History". Pygame.org.
- "Downloads - Pygame - Python game development". Pypi.python.org.
- "pygame 1.9.6 released with a few regression bug fixes". Github.org.
- "About Pygame". Github.com. Retrieved 31 August 2019.
- "GettingStarted". Pygame.org.
- "pySDL sourceforge page". Sourceforge.net.
- "commit by other authors". Github.com.
- "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.
- "Archived copy". Archived from the original on 2014-10-19. Retrieved 2014-10-14.CS1 maint: archived copy as title (link)
- "PyWeek - Python Game Programming Challenge". Pyweek.org.
- [dead link]
- "PyWeek - Python Wiki". Wiki.python.org. Retrieved 1 April 2019.
- "pygame documentation: Tutorials". Pygame.org.
- Shinners, Pete. "Line by line tutorial — Tutorial for beginners". Archived from the original on 2005-02-05.
- "Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution". Linuxjournal.com.
- "PyGame Tutorials - tutorials with OOP approach". Pygametutorials.wikidot.com.
- "pyGame Basics". ShowMeDo.com. Archived from the original on 2007-04-29.
- "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 2007-04-29.
- "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.
- "Save the Date". Paperdino.com. Retrieved 14 October 2014.
- "pygame 1.9.5 released into the wilds". Pygame.org.
- Making Games With Python & Pygame—A CC-by-nc-sa-licensed book that introduces programming and game development with Python and Pygame.
- Game Programming the L Line—A book that introduces programming and game development with Python and Pygame
- Introduction to Computer Science Using Python and Pygame—An e-book that introduces programming by using Python and Pygame.
- Installing Python Pygame on Windows - An article that explains step by step pygame installation instructions
- 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