From Wikipedia, the free encyclopedia
  (Redirected from PyGame)
Jump to navigation Jump to search
Pygame logo.gif
Original author(s)Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, others [2].
Developer(s)pygame Community
Initial release28 October 2000; 18 years ago (2000-10-28)[1][2]
Stable release
1.9.6 / April 25, 2019; 5 months ago (2019-04-25)[3]
Preview release
2.0.0.dev4 / October 8, 2019; 5 days ago (2019-10-08)
Repository Edit this at Wikidata
Written inPython, C, Cython, and Assembly[4][5]
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][6] It has been a community project since 2000[7] and is released under the open source free software GNU Lesser General Public License.[4]

Architecture and features[edit]

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

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

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


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

Notable games using Pygame[edit]

See also[edit]


  1. ^ pygame 2 and later versions are based on SDL2, while earlier releases were based on SDL1.[22]


  1. ^ a b Shinners, Pete. "Python Pygame Introduction - History".
  2. ^ "Downloads - Pygame - Python game development".
  3. ^ "pygame 1.9.6 released with a few regression bug fixes".
  4. ^ a b c "About Pygame". Retrieved 31 August 2019.
  5. ^ "GettingStarted".
  6. ^ "pySDL sourceforge page".
  7. ^ "commit by other authors".
  8. ^ "Pygame docs".
  9. ^ "Example of using RAPT to package Pygame(_sdl2) games.: renpytom/rapt-pygame-example". GitHub. 1 April 2019. Retrieved 1 April 2019.
  10. ^ "Archived copy". Archived from the original on 2014-10-19. Retrieved 2014-10-14.CS1 maint: archived copy as title (link)
  11. ^ "PyWeek - Python Game Programming Challenge".
  12. ^ [1][dead link]
  13. ^ "PyWeek - Python Wiki". Retrieved 1 April 2019.
  14. ^ "pygame documentation: Tutorials".
  15. ^ Shinners, Pete. "Line by line tutorial — Tutorial for beginners". Archived from the original on 2005-02-05.
  16. ^ "Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution".
  17. ^ "PyGame Tutorials - tutorials with OOP approach".
  18. ^ "pyGame Basics". Archived from the original on 2007-04-29.
  19. ^ "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 2007-04-29.
  20. ^ "Dangerous High School Girls in Trouble!". Retrieved 8 July 2011.
  21. ^ "Save the Date". Retrieved 14 October 2014.
  22. ^ "pygame 1.9.5 released into the wilds".

Further reading[edit]

External links[edit]