Pygame

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Pygame
Original author(s) Pete Shinners
Developer(s) Pygame Community
Initial release 28 October 2000; 23 years ago (2000-10-28)[1][2]
Stable release 1.9.1 / 6 August 2009; 14 years ago (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 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. 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 games using Python (and usually but not necessarily, Pygame).[10]

Pygame on Android

Pygame applications can run on 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. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. http://pygame.renpy.org/
  12. http://pygame.renpy.org/api.html
  13. http://kivy.org/
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. http://pysdl2.readthedocs.org/en/rel_0_9_3/#

Literature

External links