our projects - recent releases

PY ROLLERS CASINO<br />A collaborative Pygame project YOU can contribute to Playtesters needed!, by jellyberg

Py Rollers Casino is a group Pygame project focused on creating a collection of casino mini-games. Find out how you can help, see the progress so far and give your ideas here: WIKI DISCUSSION SUBREDDIT GITHUB REPO
March 02, 2015

Project Interstellar 0.3.2.4, by NCO

!!!!!! STILL ALPHA !!!!!! This is the base of a project of mine. Currently no content implemented , but engines are completed so that adding content wont be that difficult.
March 01, 2015

PY ROLLERS CASINO<br />A collaborative Pygame project YOU can contribute to Collaborators needed!, by jellyberg

Py Rollers Casino is a group Pygame project focused on creating a collection of casino mini-games. Find out how you can help, see the progress so far and give your ideas here: WIKI DISCUSSION SUBREDDIT GITHUB REPO
February 24, 2015

London's Burning! Now available, by jellyberg

A game about defending WW2 London from the blitz! Download for Windows for free
February 24, 2015

Juggleball Now available, by jellyberg

A minimalist game about trying and failing to juggle with your keyboard. Download for Windows for free.
February 24, 2015

pybreak360 1.0.5rc, by gino ingras

every one know this game, but this one is a 360° version, in which you can play up to 4 players in local network.
February 24, 2015

Windows Xbox 360 Controller for pygame 1.0.0, by Gummbum

Windows Xbox 360 Controller for pygame
February 23, 2015

Time Trek 1.6, by Ted Hunt

Take control of the USS Enterprise to find and destroy all the Klingons.
February 23, 2015

Time Trek 1.5, by Ted Hunt

Take control of the USS Enterprise to find and destroy all the Klingons.
February 20, 2015

py_free_kick 0.1, by newtonis penguin

An Old project I made long time ago when I was fascinated on how easy is to make 1-camera 3d games
February 20, 2015

Project Interstellar 0.3.1, by NCO

!!!!!! STILL ALPHA !!!!!! This is the base of a project of mine. Currently no content implemented , but engines are completed so that adding content wont be that difficult.
February 19, 2015

pybreak360 1.04, by gino ingras

every one know this game, but this one is a 360° version, in which you can play up to 4 players in local network.
February 17, 2015

SqlNub 1.0.0, by Gummbum

sqlnub.py - very light sqlite client for interfacing with a data file
February 15, 2015

ImageCache 1.0.0, by Gummbum

An in-memory cache and a database cache.
February 15, 2015

Head Soccer Network 0.5, by newtonis penguin

A version of the classic head sports soccer that allow players to play in a local or internet network. Uses pygame,box2d *plus* a modified version of podsixnet to handle UDP network. Currently only support friendly matches and 4 different head players
February 12, 2015

PyanoH3ro 0.0.2, by Lucas Wagner

PyanoH3ro is a tool for learning and composing MIDI music. Heavily inspired by DDR, which is good for exercise, and a desire to make these sorts of games helpful for actually learning music.
February 12, 2015

E.T Must Die 0.3, by Doddy Hackman

Simple shooter in Python.
February 02, 2015

Cruel Hangman 0.2, by Doddy Hackman

Simple hangman in Python
February 02, 2015

The Ditty of Carmeana 0.10, by Carl Banks

A 3D comic parody of action-adventures.
February 01, 2015

Step Into Chinese 0.8.1, by Charles Cosse

Step Into Chinese is a Chinese language mining tool.
January 28, 2015

PyDark 2D Game Framework 1.0, by Froweey Pros

PyDark is a 2D Game framework built on-top of native PyGame. PyDark makes it easier to build better games more quickly and with less code. And it comes shipped with online multiplayer functionality.
January 24, 2015

PY ROLLERS CASINO<br />A collaborative Pygame project YOU can contribute to Click here to sign up, by jellyberg

Py Rollers Casino is a group Pygame project focused on creating a collection of casino mini-games. Find out how you can help, see the progress so far and give your ideas here: WIKI DISCUSSION SUBREDDIT GITHUB REPO
January 20, 2015

London's Burning! 1.1, by jellyberg

A game about defending WW2 London from the blitz! Download for Windows for free
January 20, 2015

Juggleball 1.1, by jellyberg

A minimalist game about trying and failing to juggle with your keyboard. Download for Windows for free.
January 20, 2015

Pyskool 1.2, by Richard Dymond

A remake of Skool Daze and Back to Skool.
January 15, 2015

pySioGame 3.50.122, by Ireneusz Imiolek

A set of simple, educational, grid-based activities for 3 - 10 years old kids build with Python & Pygame.
January 14, 2015

YetAnotherPythonSnake 0.92, by Simone Cingano

This is just another python snake game... but it's beautiful!
January 14, 2015

PY ROLLERS CASINO<br />A collaborative Pygame project YOU can contribute to 0.2, by jellyberg

Py Rollers Casino is a group Pygame project focused on creating a collection of casino mini-games. Find out how you can help, see the progress so far and give your ideas here: WIKI DISCUSSION SUBREDDIT GITHUB REPO
January 11, 2015

Dark Gates 1.0, by Bartosz Debski

RPG game inspired by "Death Maze/ Labirynt Smierci"
January 07, 2015

Pacewar 1.5.4, by Julian Marchant

A fighting game with lots of ships.
January 04, 2015

Pygame SGE 0.15, by Julian Marchant

An easy to use, universal 2-D game engine.
January 04, 2015

Pathfinding Experiment 1, by Cary Semar

Demo program to test a pathfinding algorithm for a map with hexagonal tiles
December 30, 2014

Pacewar 1.5.3, by Julian Marchant

A fighting game with lots of ships.
December 16, 2014

Pygame SGE 0.14, by Julian Marchant

An easy to use, universal 2-D game engine.
December 16, 2014

pypbp 1.0, by Jorge

Python Paint by Pairs: an implementation of the nonogram Paint by Pairs using pygame and python.
December 14, 2014

PY ROLLERS CASINO<br />A collaborative Pygame project YOU can contribute to 0.1 - Click here to sign up, by jellyberg

Py Rollers Casino is a group Pygame project focused on creating a collection of casino mini-games. Find out how you can help, see the progress so far and give your ideas here: WIKI DISCUSSION SUBREDDIT GITHUB REPO
December 09, 2014

news

PyPy 2.5 released

PyPy logo

PyPy 2.5 has been released. PyPy is an implementation of a large subset of the Python (2.7) language. PyPy features a just-in-time compiler that compiles Python code into machine code at run time to increase the execution speed of Python scripts compared to CPython (in most cases).

Related projects:

February 05, 2015

Blender 2.73a released

The Blender Foundation has released Blender 2.73a, an open-source 3D modeling tool with a Python-scriptable game engine.

February 05, 2015

October 2014 PyWeek challenge results

The results of the October 2014 PyWeek challenge have been tallied. Congratulations to the winners and all participants who completed their projects!

  • Individual category winner: Legend of Goblit by Daniel Pope (mauve)
  • Team category winner: The Forgotten Angel by Universe Factory 19, which is Christopher Night (Cosmologicon) and marybee
October 30, 2014

Announcing SplatGL

Michael Long has released the code for his Splat Graphics Library. SplatGL is based on SDL 2.0 and OpenGL 2.0. It aims to provide an efficient way to draw 2D sprites with basic effects such as rotation and scaling.

SplatGL is written in C and also provides Python bindings, which rely on Marcus von Appen's PySDL2 bindings. It is equally usable in both CPython and PyPy.

SplatGL is still under development, and its API is still evolving. It is already usable for the basic needs of sprite- and tile-based games.

October 30, 2014

Blender 2.72b released

The Blender Foundation has released Blender 2.72b, an open-source 3D modeling tool with a Python-scriptable game engine.

October 22, 2014

Soya3D 3-0.1 released

Soya 3D is a high-level 3D engine for Python designed with games in mind. New features:

  • Support for Python 3.4 and Blender 2.70
  • Vertex shaders and pixel shaders
  • Improved performance: the rendering process has been entirely rewritten, using vertex buffer object (VBO)
  • Fullscreen antialiasing
  • Per-pixel lighting and cellshading
  • GPL v3 license

More information: http://www.lesfleursdunormal.fr/static/informatique/soya3d/index_en.html

October 10, 2014

Blender 2.72 released

The Blender Foundation has released Blender 2.72, an open-source 3D modeling tool with a Python-scriptable game engine.

October 07, 2014

pysdl2-cffi 0.7.0 released

Change log:

  • Struct wrappers now expose all the attributes of the C-level struct as properties. Great for tinkering, as the property names can now be inspected interactively.
  • Struct wrappers no longer pass all attribute access through getattr/setattr. Arbitrary data can be attached to the struct wrappers as is customary in Python.
  • Fix a capitalization error for the "classy" API to conform to the general binding rules. ob.gL_Function is now ob.GL_Function.

Install with pip, or download from https://pypi.python.org/pypi/pysdl2-cffi

Source hosted at https://bitbucket.org/dholth/pysdl2-cffi

Documentation hosted at https://pythonhosted.org/pysdl2-cffi

Note: This project is separate from PySDL2.

October 02, 2014

pysdl2-cffi 0.6.0 released

pysdl2-cffi is a Python wrapper for SDL2 written using cffi, featuring:

  • A cffi + dlopen interface to the underlying SDL2 libraries.
  • Automatically generated, consistent helper functions for SDL2, SDL_image, SDL_mixer, and SDL_ttf that hide most allocation and dereferencing.
  • Useful docstrings on every function, including the C function signature and (for SDL2 only) the library's original doxygen documentation reformatted as Sphinx restructured text.
  • A small collection of libSDL2's original example / test programs converted to Python using Eric S. Raymond's ctopy.

The goal is to provide a flat, consistent, faithful-to-C binding with some more-Pythonic renaming and conveniences.

This wrapper won't contain anything that doesn't directly translate to part of the library's API. The goal is to be a dependency for something like pygame, not a replacement.

This library is licensed under the GPLv2 or (at your option) any later version.

Install with pip, or download from https://pypi.python.org/pypi/pysdl2-cffi

Source hosted at https://bitbucket.org/dholth/pysdl2-cffi

Documentation hosted at https://pythonhosted.org/pysdl2-cffi

300fps TMX renderer for PyTMX at https://bitbucket.org/dholth/pysdl2-cffi-examples

Note: This project is separate from PySDL2.

September 20, 2014

October 2014 PyWeek challenge

The PyWeek challenge:
  1. Invites entrants to write a game in one week from scratch either as an individual or in a team,
  2. Is intended to be challenging and fun,
  3. Will hopefully increase the public body of game tools, code and expertise,
  4. Will let a lot of people actually finish a game, and
  5. May inspire new projects (with ready made teams!)

The next challenge is October 2014.

Registration is now open.

The dates of this challenge are are 00:00 UTC Oct. 5, 2014 to 00:00 UTC Oct. 12, 2014.

Timetable
Friday 2014/09/05Pre-registration underway
Sunday 2014/09/28Theme voting commences
Sunday 2014/10/05Challenge start
Sunday 2014/10/12Challenge end, judging begins
Sunday 2014/10/26Judging closes, winners announced

More info: http://www.pyweek.org/

September 10, 2014

tweets

reddit

videos

About

Pygame is a set of Python modules designed for writing games. Pygame adds functionality on top of the excellent SDL library. This allows you to create fully featured games and multimedia programs in the python language. Pygame is highly portable and runs on nearly every platform and operating system. Pygame itself has been downloaded millions of times, and has had millions of visits to its website.

Pygame is free. Released under the GPL License, you can create open source, free, freeware, shareware, and commercial games with it. See the licence for full details.

For a nice introduction to pygame, examine the line-by-line chimp tutorial, and the introduction for python programmers or Chapters 17 to 20 of "Invent Your Own Computer Games with Python".

More information:

Facts About Pygame

  • Silliness built in. Pygame is meant to make software things fun. New silliness is added every 3.1415 seconds.

  • Does not require OpenGL. With many people having broken OpenGL setups, requiring OpenGL exclusively will cut into your user base significantly. Pygame uses either opengl, directx, windib, X11, linux frame buffer, and many other different backends... including an ASCII art backend! OpenGL is often broken on linux systems, and also on windows systems - which is why professional games use multiple backends.

  • Multi core CPUs can be used easily. With dual core CPUs common, and 8 core CPUs cheaply available on desktop systems, making use of multi core CPUs allows you to do more in your game. Selected pygame functions release the dreaded python GIL, which is something you can do from C code.

  • Uses optimized C, and Assembly code for core functions. C code is often 10-20 times faster than python code, and assembly code can easily be 100x or more times faster than python code.

  • Comes with many Operating systems. Just an apt-get, emerge, pkg_add, or yast install away.  No need to mess with installing it outside of your operating systems package manager. Comes with binary installers (and uninstallers) for Windows or MacOS X. Pygame does not require setuptools, or ctypes to install.

  • Truly portable. Supports Linux (pygame comes with most mainstream linux distributions), Windows (95,98,me,2000,XP,vista, 64bit windows etc), Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported. You can use it on hand held devices from nokia, game consoles like gp2x, and the One Laptop Per Child (OLPC).

  • It's Simple and easy to use. Kids and adults make games with pygame.ll your functions. This gives you greater control when using other libraries harga samsung galaxy s6, and for different types of programs.

  • Does not require a GUI to use all functions. You can use pygame without a monitor - like if you want to use it just to process images, get joystick input, or play sounds.

  • Fast response to reported bugs. Some bugs are patched within an hour of being reported. Do a search on our mailing list for BUG... you'll see for yourself. Sometimes we suck at bug fixes, but mostly we're pretty good bug fixers. Bug reports are quite rare these days, since a lot of them have been fixed already.

  • Small amount of code. It does not have hundreds of thousands of lines of code for things you won't use anyway. The core is kept simple, and extra things like GUI libraries, and effects are developed separately outside of pygame.

tutorials

The PYGAME Documentation page has a number of tutorials. A Newbie Guide to pygame is very good.

These are some recent tutorials on various pygame topics:

On-line books using Python and Pygame

CookBook

def show_cook_book_love(screen):
    txt = "I love the CookBook!"
    f = SysFont("Arial", 12)
    s = f.render(txt, 1, (0,0,0))
    screen.blit(s, (0,0))

Posting A Recipe:

  • Please start a new page for each recipe.
  • Use the <pre><code>YOUR CODE</code></pre> tags to put in code.(View source of some other pages to see how it is done.)
  • Except where otherwise noted, recipes posted in the pygame cookbook are in public domain.
  • Tabs are lost when posting, so convert tabs to spaces first if you use them.

Generic recipes

Profiling
RunningInCorrectDirectory
LinearInterpolator
SmoothInterpolator
BoundingBox
2DVectorClass
3DVectorClass
CommandDispatch (A pattern for building GUIs)
2DGeometryEngine
QuadTree
MemoizingDecorator (Another lazy resource loader)
android tablet
SignalSlot (A signal/slot implementation)
Interpolator (An improved interpolator)
BezierCurve
RGBColorConversion
CalculateDist
SpatialHashMap
ConstantGameSpeed

PyGame recipes

LazyImageLoading
SimpleFontManager
TTFToBitmapConverter
toggle_fullscreen
Joystick_analyzer
ImagePacker
SmallerRectForSpriteCollision
GradientCode
ConchMusicSoundToolkit
FastPixelPerfect
SettingWindowPosition
DummyVideoDriver
WindowResizing
TextWrapping
CairoPygame
Load_32-bit_BMP_with_Alpha
HeadlessNoWindowsNeeded (Use pygame without using creating a window)
SubtractRects
ShadowEffects (Using arrays)
MatplotlibPygame
IntersectingLineDetection
MmapSurfaces
WxPython
Pygame2exe
InputWrapper
RotateCenter
MidiScheduler
SpatialHash_for_Pygame
Spritesheet

PyOpenGL recipes

SimpleOpenGL2dClasses
OBJFileLoader
GLLight
GLSLExample
GLSL_ARB_Example
TextureCoordinateArithmetic
MakeOpenglDrawIn2D
CrossPlatformTextOpengl

Resources

Cookbook Code

3D Models

Tutorials

Textures

Music

Royalty Free Music

Sound Effects

Royalty-Free Sound Effects

Fonts

Stock Photos

Clip Art

Free Game Engines

Pixel Art

Other Resource lists

Help (irc, lists)

If you need any sort of help,or just want to shoot the breeze, you can most anytime find people in the pygame IRC channel. irc.freenode.net 6667 #pygame

Mailing List

Pygame maintains an active mailing list. You can email the list at pygame-users@seul.org

If you do not have a mail client configured on your computer you can subscribe to the mailing list by sending a plain-text e-mail to majordomo@seul.org. Leave the subject field blank and in the body put only "subscribe pygame-users" (without the quotes).

You will receive an authentication response. Follow the directions in that e-mail to complete the subscription process.

Forums and Newsgroups

GMane, and google groups offer web based, and newsgroup access to the pygame mailing list. So you can talk with a forum-like interface to the pygame mailing list.

If you prefer newsgroups, GMane is running a newsgroup gateway at gmane.comp.python.pygame.

If you have a google account, and like google groups, there is a mailing list mirror at google groups mirror. To post, you must subscribe to the real mailing list first. It started mirroring the mailing list in 2008/04/28.

For a forum-like interface, you can use Nabble which started mirroring on 2012/05/21.

Mailing list archives are hosted by Gmane and Seul.org.

issues

A heading



the content

downloads

developers

A heading



the content

project comments

meetups

awesome sauce

spotlighted projects

Albow 2.2, by Gregory Ewing

A Little Bit of Widgetry for PyGame
January 29, 2014

glLib Reloaded 0.5.9, by Ian Mallett

OpenGL Library + Shader OpenGL Library + TONS MORE STUFF!
January 26, 2014

Program Arcade Games With Python and Pygame 1, by Paul Vincent Craven

Learn to program using Python and Pygame!
July 19, 2013

Mastermind Networking Lib 4.1.3, by Ian Mallett

A networking lib designed to be simple to use.
June 29, 2013

QANAT 0.7, by Paul Paterson

A shoot-em-up inspired by the classic Galaxians game. Repel waves of invaders using your gun turret. Manage the temperature of the turret to avoid overheating.
April 19, 2013

SGC 0.2.1, by Sam Bull

A GUI toolkit for Pygame, to ease game development for Pygame developers. Works with no code change with a normal Pygame display or with an OpenGL display. This is a lightweight toolkit, with focus on the attention to detail. It is also customisable, allowing developers to theme the widgets to match their game.
March 25, 2013

SubTerrex 0.3.1, by Paul Paterson

Explore deep subterranean caves using only your trusty ropes and flares.
September 02, 2012

PyTuner: A Guitar Tuner In Pygame 1.2, by Joshua Smith

A Guitar Tuner that I wrote in python and pygame. Tested with 2.7 and 3.2, works for both.
July 12, 2012

Making Games with Python & Pygame 1, by Al Sweigart

A free book covering the Pygame library for beginner and intermediate Python programmers. Includes the source for 11 game clones including Tetris, Bejewled, Othello, Connect Four, and others.
July 03, 2012

Life as a Bit DLX-v1.01, by Sean J McKiernan

A full-featured cellular automata simulator. The focus is on "Conway's Game of Life." With the 'Rule Panel' you can also explore other rule combinations.
December 26, 2011

Toonloop 1.1.3, by Alexandre Quessy

Toonloop is a live stop motion animation software.
December 31, 2009

Arcade Tonk Tanks 0.0.6, by Koen Lefever

Just use the cursor keys and the space bar to shoot the other tanks.
December 28, 2009

Foodforce2 1.0, by Deepank Gupta

Food Force 2, based on Food Force, is being developed as free software. It is cross-platform as it is written in the Python programming language, and runs on platforms including the One Laptop Per Child XO and the Sugar desktop environment. Food Force 2 is currently in beta, and available for download on Linux and Windows platforms.
December 06, 2009

PixelPaint F-b, by Pie

A simple paint program.
October 06, 2009

PaintBrush 1.1, by John Eriksson

A public domain class that can be used in drawing applications or games. Two demos included.
September 16, 2009

Ardentryst 1.71-testing, by Jordan Trudgett

Ardentryst is a free, open-source, cross-platform action/RPG sidescrolling game that is fun for all ages. Follow hero Pyralis, a warrior with fire magic, and heroine Nyx, an ice mage, on a quest through a castle, forests and snowy mountains to reclaim peace in the realm of Ardentryst.
August 12, 2009

Plague 3.38, by benedict carter

Plague is a real-time top down â??rogue-likeâ? arena shooter pitting humans against the zombie horde, inspired by the games Syndicate, XCOM and Gauntlet. Currently under development, Plague already features procedural level generation, cellular automata modeling for physical effects, a 2D physics engine, AI and line of sight vision for every â??sentientâ? game entity, multiple weapons and a whole heap more, all running in real-time.
August 12, 2009

555-BOOM! 0.6.1, by Gregory Ewing

Puzzle game and electromechanical sandbox. Based on my PyWeek 5 competition entry.
February 02, 2009

Disk Field 1.01, by Jeremy

Navigate the disk to the end point.
September 25, 2007

Woody Tigerbaum's Interplanetary Package Delivery 0.92, by Dave LeCompte

Deliver packages in space with the power of interplanetary slingshots.
July 10, 2007

Trip on the Funny Boat 1.5, by Pekka Kujansuu

A side scrolling shooter game starring a steamboat on the sea.
April 23, 2007

Barbie Seahorse Adventures 1.0, by Phil Hassey

Barbie the Seahorse wants to go to the moon! Let the good times roll with this swell side-scroller. Won teams category in pyweek #4!
April 22, 2007

Bouncy the Hungry Rabbit post-r4, by Richard Jones

You play Bouncy the Hungry Rabbit. You're in a garden with yummy veggies and a farmer who's not keen on you eating them. You can hide (and move around) under the ground.
October 05, 2006

Typus Pocus Pyweek3, by Team PyAr

A typing game, with a twist.
October 02, 2006

Colonel Wiljafjord and the Tarbukas Tyranny contest, by Phil Hassey

An adventure game tribute to some of the old LucasArts and Sierra classics -- Monkey Island and Space Quest. Made for pyweek #3.
September 25, 2006

Nelly's Rooftop Garden 1.0, by Alex Holkner

A physics-based puzzle game written for PyWeek 2.
April 22, 2006

20,000 Light Years Into Space 1.2, by Jack Whitham

"20,000 Light Years Into Space" is a single-player real-time strategy game with a "Steampunk" sci-fi theme.
April 17, 2006

GalaxyMage 0.3.0, by Colin McMillen

GalaxyMage is a free, open-source tactical/strategic RPG for Windows, Linux, and Macintosh.
March 26, 2006

Angry, Drunken Dwarves 1.0.1, by Joe Wreschnig

In Angry, Drunken Dwarves, you are an angry, drunken dwarf. Why are you so angry? Who knows. But you've decided to take your aggression out on other dwarves, by dropping gems on their heads. Lots of gems.
January 12, 2006

The Witch's Yarn 1.3, by Keith Nemitz

Graphical Interactive Fiction Stage director metaphor UI. Sit-com inspired interactive comic book as theater.
September 16, 2005

Dynamite 1.1, by Phil Hassey

The evil potentate is ruining everyone's lives! Use the power of dynamite to destroy his strongholds.
September 15, 2005

Quido: Failed Experiment 1.1, by Simon Wittber

This was TeamXerian's entry in pyweek 2005.
September 09, 2005

Pylonoid 1.2, by Sami Hangaslammi

Puzzle game where you direct a stream of electricity with different kinds of power pylons.
September 06, 2005