|Original author(s)||Pete Shinners|
|Initial release||28 October 2000|
|Stable release||1.9.1 / 6 August 2009|
|Preview release||Mercurial repository|
|Written in||Python, C, 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. It is built over the Simple DirectMedia Layer (SDL) 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 (mainly the graphics part) can be abstracted from the game logic, making it possible to use a high-level programming language, such as Python, to structure the game.
Pygame was built to replace PySDL after its development stalled. Pygame was originally written by Pete Shinners and is released under the open source free software GNU Lesser General Public License. It has been a community project since 2004 or 2005. There are many tutorials and there are regular competitions to write little games using Python (and usually but not necessarily, Pygame).
Pygame on Android
Pygame applications can run on the Android phones and tablets with the use of Pygame Subset for Android (pgs4a). Sound, vibration, keyboard, accelerometer are supported on Android. There is no way to run Pygame applications on iOS. Another major limitation of pgs4a is the lack of multi-touch support, which prevents the use of things like pinch to zoom and two-finger rotation. An alternative to running Pygame Subset for Android is to use Kivy, which includes multi-touch and iOS support.
Alternatives to Pygame
Notable games using Pygame
- Frets on Fire
- Dangerous High School Girls in Trouble
- Save the Date, IndieCade 2013 Finalist
- Shinners, Pete. "Python Pygame Introduction - History".
- "Downloads - Pygame - Python game development".
- "About Pygame".
- "Libregamewiki's article on Pygame".
- "pySDL sourceforge page".
- Dudfield, Rene; Howland, Geoff. "An Introduction to Python Game Programming".
- Shinners, Pete. "Line by line tutorial — Tutorial for beginners".
- "Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution".
- "PyGame Tutorials - tutorials with OOP approach".
- "pyGame Basics". ShowMeDo.com.
- "Arinoid tutorials video tutorials at ShowMeDo".
- "Pyweek homepage — regular contest (Pyweek) to write a game during one week using Python (most entries use pygame)".
- "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.
- "Save the Date". Paperdino.com. Retrieved 14 October 2014.
- 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.
- Pygame homepage — Pygame documentation, wiki, news, download and more.
- Pygame newsgroup (web access) — the "official" Pygame newsgroup, requires registration
- Pygame Subset for Android (PGS4A)
- pyOpenGL - Python OpenGL Bindings