A set of Python modules for creating games in Python

Pygame is a set of Python modules written to help create games in Python.
The package is wrapped around SDL and several of the SDL daughter libraries. There are numerous released open source games and applications built with Pygame.

Highlights of Pygame features are listed:

  • Full OpenGL support through pyopengl.
  • Transform module for image scaling, rotation, and flips.
  • Image loading from many formats, with alpha and colourkeys.
  • Streaming music data; mp3, mod, vorbis (and more).
  • CD-ROM support with audio playback.
  • Joystick input handling.
  • Antialiased Truetype font rendering.
  • Multiple sound channel mixer.
  • Cross platform (with multiple video backends on each platform).

The package also comes with complete documentation, tutorials, and many playable examples. There is an active mailing list and IRC channel, which makes getting started much more accessible.

Pygame takes SDL's C interface and turns it into a more pythonic package, with objects, exceptions, and other utility modules.

Aside from compiling and installing from source, it is included in all major Linux distribution repositories.

License: free
Requirements: Python, SDL

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnoyesyesyesyes
Suggest an update

Comments

hmmmmm... it's pretty damn slow. but you can tell a lot of thought went into thhe libraries methods and properties. probable the best deigned game library i've seen. unfortunately also one of the slowest
Re: Pygame posted by anonymous on Mar 3 2008 8:44 PM
Combine with Psyco for speed.
Slowness is relative. When I started with Pygame it was slow.. when I got better with pygame the speed increased exponentially. But of course I gotta admit it does not reach the maximum speed available using native methods. But therefore you got portability. A fair exchange imho (especially when you take a look at http://pygame.org/projects and see that fast and cool games can be done)
excellent high-level gaming library
Re: excellent posted by jacius on Sep 10 2003 4:39 PM
Definitely excellent. This is my library of choice for making games. It's easy to use, powerful, and will run on quite a few platforms without any code changes! Personally, I haven't experienced any slowness, and as Pygame is written primarily in C, perhaps the slowness is because of Python, or maybe even your own code? :) You probably won't want to program really heavy stuff with this, but it's excellent for making quick and easy games.
I am trying to install pygame under redhat 8.0 (using the rpm's) but it keeps saying that I need to install libvorbisfile.so.0 I tried to download this and tried to install. But then I get the message that a newer version has already been installed. Does anyone here know what RPM I should download where and/or how I can solve this problem?
Re: install problem posted by Clean3d on Apr 19 2008 5:39 PM
I've had a similar problem with other libraries. Now, I don't take any responsibility for you using my advice and breaking your Linux machine ;) , but here's something that worked for me.

The library I had to deal with was libGL.so.1, and the program was looking for libGL.so.0. All that was needed to get the program running was to create a link to libGL.so.1, in the same folder, called libGL.so.0

Hope this helps!

Log in or register to rate this game or post a comment.