Pygame

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
Original author(s)Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, and others[1]
Developer(s)Pygame Community
Initial release28 October 2000 (2000-10-28)[2][3]
Stable release
1.9.6 / April 25, 2019 (2019-04-25)[4]
Preview release
2.0.0.dev10 / May 31, 2020 (2020-05-31)
Repository
Written inPython, C, Cython, and Assembly[5][6]
Operating systemCross-platform
TypeAPI
LicenseGNU Lesser General Public License
Websitewww.pygame.org 

History

Pygame was originally written by Pete Shinners to replace PySDL after its development stalled.[2][7] It has been a community project since 2000[8] and is released under the open source free software GNU Lesser General Public License.[5]

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

  • 2019-5-5 pre-release Dev.1
  • 2019-6-20 pre-release Dev.2
  • 2019-7-14 pre-release Dev.3
  • 2019-10-8 pre-release Dev.4
  • 2019-10-28 pre-release Dev.6
  • 2020-5-6 pre-release Dev.8
  • 2020-5-31 pre-release Dev.10[10]

Architecture and features

Pygame uses the Simple DirectMedia Layer (SDL) library,[lower-alpha 1] 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.[5]

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

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

Community

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

Notable games using pygame

gollark: You have loads of positive traits, if you define "trait" broadly enough and/or consider things lots of people have!
gollark: Also being able to speak English.
gollark: Esoteric programming language knowledge is technically a positive trait.
gollark: I'm a professional web developer because heavpoot pays me in apioforms and possibly instances of SCP-████ to keep osmarks.tk operating.
gollark: Why would I have hidden divs on my website?

See also

Notes

  1. Pygame 2 and later versions are based on SDL2, while earlier releases were based on SDL1.[25]

References

  1. "Contributors to Pygame". GitHub.
  2. Shinners, Pete. "Python Pygame Introduction - History". Pygame.org. Archived from the original on 2019-09-17. Retrieved 2017-04-28.
  3. "Downloads - Pygame - Python game development". Pypi.python.org.
  4. "pygame 1.9.6 released with a few regression bug fixes". GitHub.
  5. "About Pygame". GitHub. Archived from the original on 18 September 2019. Retrieved 31 August 2019.
  6. "GettingStarted". Pygame.org.
  7. "pySDL sourceforge page". Sourceforge.net.
  8. "commit by other authors". GitHub.
  9. "pygame 1.9.5 released into the wilds". www.pygame.org.
  10. "pre-release Dev.10". GitHub.
  11. "Pygame docs". Pygame.org.
  12. "Example of using RAPT to package pygame(_sdl2) games.: renpytom/rapt-pygame-example". GitHub. 1 April 2019. Retrieved 1 April 2019.
  13. "Archived copy". Archived from the original on 19 October 2014. Retrieved 14 October 2014.CS1 maint: archived copy as title (link)
  14. "PyWeek - Python Game Programming Challenge". Pyweek.org.
  15. Gee, Sue (29 March 2013). "Why PyWeek: An Interview with Richard Jones". i-programmer.info. Retrieved 31 March 2020.
  16. "PyWeek - Python Wiki". Wiki.python.org. Retrieved 1 April 2019.
  17. "pygame documentation: Tutorials". Pygame.org.
  18. Shinners, Pete. "Line by line tutorial - Tutorial for beginners". Archived from the original on 5 February 2005.
  19. "Creating Games with Python - A tutorial explaining how to use pygame for game development and improved execution". Linuxjournal.com.
  20. "PyGame Tutorials - tutorials with OOP approach". Pygametutorials.wikidot.com.
  21. "pyGame Basics". ShowMeDo.com. Archived from the original on 29 April 2007.
  22. "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 29 April 2007.
  23. "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.
  24. "Save the Date". Paperdino.com. Retrieved 14 October 2014.
  25. "pygame 1.9.5 released into the wilds". Pygame.org.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.