Pygame
| |
Original author(s) | Lenard Lindstrom, René Dudfield, Pete Shinners, Nicholas Dudfield, Thomas Kluyver, others . |
---|---|
Developer(s) | pygame Community |
Initial release | 28 October 2000[1][2] |
Stable release |
1.9.4
/ July 19, 2018[3] |
Preview release | |
Repository |
|
Written in | Python, C, and Assembly[4] |
Operating system | Cross-platform |
Type | API |
License | GNU Lesser General Public License |
Website | https://www.pygame.org |
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.
History
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
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]
Community
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
- Frets on Fire
- Dangerous High School Girls in Trouble[21]
- Save the Date,[22] IndieCade 2013 Finalist.
See also
References
- 1 2 Shinners, Pete. "Python Pygame Introduction - History".
- ↑ "Downloads - Pygame - Python game development".
- ↑ "pygame 1.9.4 released into the wilds".
- ↑ "About Pygame".
- ↑ "pySDL sourceforge page".
- ↑ "commit by other authors".
- ↑ https://www.pygame.org/wiki/about
- ↑ "About - pygame wiki". www.pygame.org. Retrieved 2018-09-18.
- ↑ "pygame docs".
- ↑ http://pygame.renpy.org/
- ↑ "Archived copy". Archived from the original on 2014-10-19. Retrieved 2014-10-14.
- ↑ "PyWeek - Python Game Programming Challenge".
- ↑ http://www.i-programmer.info/professional-programmer/i-programmer/5697-why-pyweek-an-interview-with-richard-jones-.html
- ↑ https://wiki.python.org/moin/PyWeek
- ↑ "pygame documentation: Tutorials".
- ↑ Shinners, Pete. "Line by line tutorial — Tutorial for beginners". Archived from the original on 2005-02-05.
- ↑ "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. Archived from the original on 2007-04-29.
- ↑ "Arinoid tutorials video tutorials at ShowMeDo". Archived from the original on 2007-04-29.
- ↑ "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.
- ↑ "Save the Date". Paperdino.com. Retrieved 14 October 2014.
Further reading
- 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
- Official website
- Pygame newsgroup (web access) — the "official" Pygame newsgroup, requires registration
- Pygame Subset for Android (PGS4A)
- pyOpenGL - Python OpenGL Bindings
- Pygame-SDL2 - a reimplementation of Pygame APIs on top of SDL2
- PySDL2 - a wrapper around the SDL2 library similar to the discontinued PySDL project