Pygame
{{#invoke:Infobox|infobox}} 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][2] It has been a community project since 2000[3] and is released under the open source free software GNU Lesser General Public License.[4]
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 on March 2019, development of new version 2 is active on the roadmap.[5]
- 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[6]
Architecture and features
Pygame uses the Simple DirectMedia Layer (SDL) library,Template:Efn 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.[7]
Applications using pygame can run on Android phones and tablets with the use of pygame Subset for Android (pgs4a).[8] Sound, vibration, keyboard, and accelerometer are supported on Android.[9]
Community
Template:Anchor There is a regular competition, called PyWeek, to write games using Python (and usually but not necessarily, pygame).[10][11][12] The community has created many tutorials for pygame.[13][14][15][16][17][18]
Notable games using pygame
- Frets on Fire
- Dangerous High School Girls in Trouble[19]
- Save the Date,[20] IndieCade 2013 Finalist
See also
Notes
References
| references-column-width | references-column-count references-column-count-{{#if:1|30em}} }} | {{#if: | references-column-width }} }}" style="{{#if: 30em | {{#iferror: {{#ifexpr: 30em > 1 }} | Template:Column-width | Template:Column-count }} | {{#if: | Template:Column-width }} }} list-style-type: {{#switch: | upper-alpha | upper-roman | lower-alpha | lower-greek | lower-roman = {{{group}}} | #default = decimal}};">
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedpygame-intro
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ 4.0 4.1 Cite error: Invalid
<ref>
tag; no text was provided for refs namedabout
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
- ↑ Template:Cite web
External links
- Template: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