From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Pygame logo.png
Original author(s)Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, others [1].
Developer(s)pygame Community
Initial release28 October 2000; 18 years ago (2000-10-28)[1][2]
Stable release
1.9.4 / July 19, 2018; 3 months ago (2018-07-19)[3]
Preview release [2]
Repository Edit this at Wikidata
Written inPython, C, and Assembly[4]
Operating systemCross-platform
LicenseGNU 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.[1][5] It has been a community project since 2000[6] and is released under the open source free software GNU Lesser General Public License.[7]

Architecture and features[edit]

Pygame uses 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, can be abstracted from the game logic, making it possible to use a high-level programming language, such as Python, to structure the game.[8]

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.[9]

Applications using pygame can run on Android phones and tablets with the use of Pygame Subset for Android (pgs4a).[10] Sound, vibration, keyboard, and accelerometer are supported on Android.[11]


There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, Pygame).[12][13][14] The community has created many tutorials for Pygame.[15][16][17][18][19][20]

Notable games using Pygame[edit]

See also[edit]


  1. ^ a b Shinners, Pete. "Python Pygame Introduction - History".
  2. ^ "Downloads - Pygame - Python game development".
  3. ^ "pygame 1.9.4 released into the wilds".
  4. ^ "About Pygame".
  5. ^ "pySDL sourceforge page".
  6. ^ "commit by other authors".
  7. ^
  8. ^ "About - pygame wiki". Retrieved 2018-09-18.
  9. ^ "pygame docs".
  10. ^
  11. ^ "Archived copy". Archived from the original on 2014-10-19. Retrieved 2014-10-14.
  12. ^ "PyWeek - Python Game Programming Challenge".
  13. ^
  14. ^
  15. ^ "pygame documentation: Tutorials".
  16. ^ Shinners, Pete. "Line by line tutorial — Tutorial for beginners". Archived from the original on 2005-02-05.
  17. ^ "Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution".
  18. ^ "PyGame Tutorials - tutorials with OOP approach".
  19. ^ "pyGame Basics". Archived from the original on 2007-04-29.
  20. ^ "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 2007-04-29.
  21. ^ "Dangerous High School Girls in Trouble!". Retrieved 8 July 2011.
  22. ^ "Save the Date". Retrieved 14 October 2014.

Further reading[edit]

External links[edit]