1. pygame
  2. pygame
  3. pygame


pygame /

Filename Size Date modified Message
26 B
Merged tylerthemovie branch changes r2168:2614 into the trunk
393 B
Ignore .egg-info directory
1.4 KB
Added tag 1.9.3 for changeset 8a7d8264d9ea
4.8 KB
Update Github API key for wheel upload
264 B
Update terryfy commit used
543 B
Rename Mac wheels to pretend they're fat builds before uploading
2.1 KB
Update pkg-config install
529 B
Travisci config for OSX binary wheel building.
1.2 KB
Rename Mac wheels to pretend they're fat builds before uploading
1.6 KB
Added some documentation for manylinux-build.
26.5 KB
Moved LGPL and added missing files to MSIS script
290 B
Include version.py.in in sdist
402 B
Updating make docs to use the new doc build command.
2.7 KB
168 B
Fixes to always compile SCRAP on MacOSX.
111 B
Patch from Martijn Schmidt. Remove V4L support.
70 B
Updated Windows config modules
86.3 KB
2.0 KB
Update version numbers of earlier Python releases in Appveyor
1.1 KB
Pull out ffmpeg and smpeg dependencies
2.0 KB
added Python script to make docs/examples tarball
1.0 KB
set svn file properties so svn branch and merge work as intended
5.8 KB
Setup/configure shouldn't prompt for input when non-interactive
5.7 KB
Travisci config for OSX binary wheel building.
9.8 KB
8.4 KB
Add environment PYGAME_EXTRA_BASE to add an extra base directory to the start
9.9 KB
Remove second copy of SDL mixer DLL dep entirely
106 B
psuedo Makefile and configure
1.8 KB
some fixes for building with mingw and msys on windows
2.3 KB
Pull out ffmpeg and smpeg dependencies
8.1 KB
Mention pip install in install txt and html.
6.7 KB
Mention pip install in install txt and html.
642 B
Fix a makeref.py command line flag
5.4 KB
allow Python 2.4 to compile with mingw gcc 4.5.0
1.4 KB
small repairs for MinGW build
627 B
set svn file properties so svn branch and merge work as intended
1.4 KB
Update msys_build_deps.py for MSYS 1.0.13 root directory search
12.9 KB
Added "pip install pygame" to Installation section of readme.
6.7 KB
Added "pip install pygame" to Installation section of readme.
165 B
Merged changes up to revision 2173
768 B
Added -x on lib files... Should this be moved into the setup.py ?
22.5 KB
Back to development
1.1 KB
Updated Windows config modules
1.4 KB
Automatically generate the version module with setup.py

About pygame

Pygame is a cross-platfrom library designed to make it easy to write multimedia software, such as games, in Python. Pygame requires the Python language and SDL multimedia library. It can also make use of several other popular libraries.


TravisBuild AppVeyorBuild LaunchpadBuild PyPiVersion PyPiLicense Python2 Python3


pip install pygame

You should definitely begin by installing a binary package for your system. The binary packages usually come with or give the information needed for dependencies. Choose an appropriate installer for your system and version of python from the pygame downloads page. http://www.pygame.org/download.shtml

Installing from source is fairly automated. The most work will involve compiling and installing all the pygame dependencies. Once that is done run the "setup.py" script which will attempt to auto-configure, build, and install pygame.

Much more information about installing and compiling is available in the install.html file.


If you are just getting started with pygame, you should be able to get started fairly quickly. Pygame comes with many tutorials and introductions. There is also full reference documentation for the entire library. Browse the documentation from the documenantation index. docs/index.html.

On the pygame website, there is also an online copy of this documentation. You should know that the online documentation stays up to date with the development version of pygame in hg. This may be a bit newer than the version of pygame you are using.

Best of all the examples directory has many playable small programs which can get started playing with the code right away.


Thanks to everyone who has helped contribute to this library. Special thanks are also in order.

Marcus Von Appen - many changes, and fixes, 1.7.1+ freebsd maintainer.

Lenard Lindstrom - the 1.8+ windows maintainer, many changes, and fixes.

Brian Fisher - for svn auto builder, bug tracker and many contributions.

Rene Dudfield - many changes, and fixes, 1.7+ release manager/maintainer.

Phil Hassey - for his work on the pygame.org website.

DR0ID for his work on the sprite module.

Richard Goedeken for his smoothscale function.

Ulf Ekström for his pixel perfect collision detection code.

Pete Shinners - orginal author.

David Clark - for filling the right-hand-man position

Ed Boraas and Francis Irving - Debian packages

Maxim Sobolev - FreeBSD packaging

Bob Ippolito - MacOS and OS X porting (much work!)

Jan Ekhol, Ray Kelm, and Peter Nicolai - putting up with my early design ideas

Nat Pryce for starting our unit tests

Dan Richter for documentation work

TheCorruptor for his incredible logos and graphics

Nicholas Dudfield - many test improvements.

Alex Folkner - for pygame-ctypes

Thanks to those sending in patches and fixes: Niki Spahiev, Gordon Tyler, Nathaniel Pryce, Dave Wallace, John Popplewell, Michael Urman, Andrew Straw, Michael Hudson, Ole Martin Bjoerndalen, Herve Cauwelier, James Mazer, Lalo Martins, Timothy Stranex, Chad Lester, Matthias Spiller, Bo Jangeborg, Dmitry Borisov, Campbell Barton, Diego Essaya, Eyal Lotem, Regis Desgroppes, Emmanuel Hainry, Randy Kaelber Matthew L Daniel, Nirav Patel, Forrest Voight, Charlie Nolan, Frankie Robertson, John Krukoff, Lorenz Quack, Nick Irvine, Michael George, Saul Spatz, Thomas Ibbotson, Tom Rothamel, Evan Kroske, Cambell Barton.

And our bug hunters above and beyond: Angus, Guillaume Proux, Frank Raiser, Austin Henry, Kaweh Kazemi, Arturo Aldama, Mike Mulcheck, Michael Benfield, David Lau

There's many more folks out there who've submitted helpful ideas, kept this project going, and basically made my life easer, Thanks!

Many thank you's for people making documentation comments, and adding to the pygame.org wiki.

Also many thanks for people creating games and putting them on the pygame.org website for others to learn from and enjoy.

Lots of thanks to James Paige for hosting the pygame bugzilla.

Also a big thanks to Roger Dingledine and the crew at SEUL.ORG for our excellent hosting.


Pygame is obviously strongly dependent on SDL and Python. It also links to and embeds several other smaller libraries. The font module relies on SDL_tff, which is dependent on freetype. The mixer (and mixer.music) modules depend on SDL_mixer. The image module depends on SDL_image, which also can use libjpeg and libpng. The transform module has an embedded version of SDL_rotozoom for its own rotozoom function. The surfarray module requires the python numpy package for its multidimensional numeric arrays.

Todo / Ideas (feel free to submit)



This library is distributed under GNU LGPL version 2.1, which can be found in the file "doc/LGPL". I reserve the right to place future versions of this library under a different license. http://www.gnu.org/copyleft/lesser.html

This basically means you can use pygame in any project you want, but if you make any changes or additions to pygame itself, those must be released with a compatible license. (preferably submitted back to the pygame project). Closed source and commercial games are fine.

The programs in the "examples" subdirectory are in the public domain.