Jump to content

Pygame

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 78.112.191.13 (talk) at 20:21, 15 August 2011. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Pygame
Developer(s)Pygame Community
Stable release
1.9.1 / 2009 August
Repository
Operating systemCross-platform
TypeAPI
LicenseGNU Lesser General Public License
Websitehttp://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 completely abstracted from the game logic in itself, making it possible to use a high-level programming language like Python to structure the game.

Pygame was built to replace pySDL after its sudden death.[1] Pygame was originally written by Pete Shinners and is released under the open source free software GNU Lesser General Public License. It is a community project since around 2004/2005. There are many tutorials[2][3][4][5][6] and there was an ongoing competition to write little games[7].

Games using Pygame

Literature

See also

2D Engines and Libraries:

  • Pygame Utilities (PGU) is a collection of tools and libraries that enhance Pygame. Tools include a tile editor and a level editor (tile, isometric, hexagonal). GUI enhancements include full featured gui, html rendering, document layout, and text rendering. The libraries include a sprite and tile engine (tile, isometric, hexagonal), a state engine, a timer, and a high score system.
  • Pyglet is an OpenGL-based software library used in developing games and other visually rich applications using the object-oriented language Python.
  • MirthKit is a simple toolkit for making and distributing open source, cross-platform 2D games.

References

  1. ^ Libregamewiki's article on Pygame
  2. ^ An Introduction to Python Game Programming - written by Rene Dudfield and Geoff Howland
  3. ^ Line by line tutorial — Tutorial for beginners by Pete Shinners.
  4. ^ Creating Games with Python - A tutorial explaining how to use Pygame for game development and improved execution.
  5. ^ PyGame Tutorials - tutorials with OOP approach.
  6. ^ pyGame Basics and Arinoid tutorials video tutorials at showmedo
  7. ^ Pyweek homepage — regular contest (Pyweek) to write a game during one week using Python (most entries use pygame).
  8. ^ "Dangerous High School Girls in Trouble!". Pygame.org. Retrieved 8 July 2011.

Template:Open source video games