World Library  
Flag as Inappropriate
Email this Article
 

Pygame

Pygame
Original author(s) Pete Shinners
Developer(s) Pygame Community
Initial release 28 October 2000 (2000-10-28)[1][2]
Stable release 1.9.1 / 6 August 2009 (2009-08-06)
Preview release Mercurial repository
Written in Python, C, and Assembly[3]
Operating system Cross-platform
Type API
License GNU Lesser General Public License
Website .org.pygamewww

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.[4] 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[5][6][7][8][9] and there are regular competitions to write little games using Python (and usually but not necessarily, Pygame).[10]

Contents

  • Pygame on Android 1
  • Notable games using Pygame 2
  • See also 3
  • References 4
  • Literature 5
  • External links 6

Pygame on Android

Pygame applications can run on the Android phones and tablets with the use of Pygame Subset for Android (pgs4a).[11] Sound, vibration, keyboard, accelerometer are supported on Android.[12] 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,[13] which includes multi-touch and iOS support.

Notable games using Pygame

See also

  • Pyglet
  • PySDL2 is a wrapper around the SDL2 library and is similar to the discontinued PySDL project.[16]

References

  1. ^ Shinners, Pete. "Python Pygame Introduction - History". 
  2. ^ "Downloads - Pygame - Python game development". 
  3. ^ "About Pygame". 
  4. ^ "pySDL sourceforge page". 
  5. ^ Shinners, Pete. "Line by line tutorial — Tutorial for beginners". 
  6. ^ "Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution". 
  7. ^ "PyGame Tutorials - tutorials with OOP approach". 
  8. ^ "pyGame Basics". ShowMeDo.com. 
  9. ^ "Arinoid tutorials video tutorials at ShowMeDo". 
  10. ^ "Pyweek homepage — regular contest (Pyweek) to write a game during one week using Python (most entries use pygame)". 
  11. ^ http://pygame.renpy.org/
  12. ^ http://pygame.renpy.org/api.html
  13. ^ http://kivy.org/
  14. ^ "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011. 
  15. ^ "Save the Date". Paperdino.com. Retrieved 14 October 2014. 
  16. ^ http://pysdl2.readthedocs.org/en/rel_0_9_3/#

Literature

  • 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.

External links

  • [news://gmane.comp.python.pygame Pygame newsgroup] (web access) — the "official" Pygame newsgroup, requires registration
  • Pygame Subset for Android (PGS4A)
  • pyOpenGL - Python OpenGL Bindings
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.