Skip to main content

gsoc2010ideas — wiki

NOTE: This is a preliminary template, basically copied from the GSoC ideas list of 2009. Be aware that it is not clear, how pygame will participate in the GSoC of 2010. Do not let that stop you from getting into touch with pygame, though. You can express your interest in participating as a GSoC student at any time.

Pygame might mentor some students under the Python Software Foundation (PSF) umbrella or as an own organization for Google Summer of Code 2010. If you are an interested student or mentor, please contact us on the Mailing List or IRC Channel to discuss ideas. You should also take a look at PSF's GSoC pages:


Student Application Template

Students should adhere to this application format when submitting their final proposals, and it is also a useful set of guidelines to consider when forming and discussing a project proposal.

About You
  1. Your Name
  2. Contact Information. This should include your email address and IRC nick; Gtalk, AIM, MSN, or other modes of communication are optional.
  3. Time Zone and Preferred Language (spoken, not programming)
  4. Time Commitment. Briefly explain how much time you would have over the summer to complete your project, and any significant other time commitments.
  5. Programming Experience. This can include personal, open source, school, or professional projects you have undertaken or helped with. URLs would be very helpful.
  6. Pygame Experience. Describe any experience you have using or developing Pygame.
  7. Other skills and experience that are of interest for your aplication (e.g. in-depth math knowledge, excellent writing and documentation skills, etc.)
About Your Project
  1. Please explain in 2 to 3 paragraphs the project you intend to complete.
  2. What existing or future need does your proposed project fulfill?
  3. Provide a rough timeline for how you intend to complete your project, test it, and document it within the allotted time period.
  4. Describe how you have brought your project proposal to the Pygame community, their reactions to your proposal, and revisions you have made based on those reactions. (Hint: This is something you really want to do before submitting your application.)


This is a list of projects, sorted by difficulty, that students could take on for GSoC 2009. Feel free to suggest other projects, keeping in mind that they need to be doable in one summer.


These projects can be completed mostly or entirely in Python, or involving porting existing work.


Revive pygame-ctypes for fast prototyping and a better idea flow in both directions (there's a large user base interested in pygame-ctypes)

  • Refactor pygame-ctypes.
  • Add test targets and test anything available to flesh out all the tiny bugs.
  • As it is unmaintained for quite some time now, bring it up to date with the latest development efforts of pygame.

Reading and understanding C code as well as being familiar with Python and ideally ctypes should be no matter for interested developers.

Improved Sprite and scene system

The sprite system of pygame is currently very specific and does not fit the requirements for many games.

  • Generalize the sprite system to make it more flexible without its current overhead
  • Add a basic scene and state system support for 2D stuff and keep it as generic as possible

This involves a lot of prototyping, sharing design ideas and to communicate a lot with the whole community. You should have made your first steps with Python already and be highly communicative.


These projects are deeper and would require using the C Python API, and coding in C and Python.

Camera Module for Windows

Pygame currently supports camera access for v4l2 cameras in Linux. Adding Windows support would require knowledge of Video for Windows, DirectShow, or Direct3D. The goal would be to make cameras usable in Windows under the same API as Linux. This project would require using the Python C API. Below are some references:

{{todo#pygame.Camera - Video for windows version of}}

This requires some knowledge of the Windows API as well as robust C coding skills.

pygame for tinypy

tinypy is a tiny version of python, with less than 64K of source code. Porting pygame so it works on tinypy would mean a very minimal python optimised for pygame games. Your journey will take you to the land where bits and bytes are counted, so be sure to fasten your C belt and have your good C coding skills around.

Easy simple software 3d.

Software 3D with the possible option of adding hardware 3D support would be nice to have. Possibly something like tinyGL being used by pygame , and a few extra parts, or just something like a textured polygon drawer. Basically... model = load_model();model.render(screen, (0,0))

You will require some knowledge about 3D APIs and techniques, good C skills and to be strong enough to survive the 2D vs. 3D debates.

Improved graphics format support

Pygame could deal with even more graphics formats. This would widen its usage fields and allow developers to stick with their preferred graphics requirements.

  • Add alpha channel management for 8-bit palettes
  • Support for float formats and MJPEG and animated GIFs, etc.
  • More colour spaces, more conversion routines for graphics, more, more, more
  • Do research on imaging libraries such as PIL and ImageMagick to evaluate how they can be used or routines be incorporated in pygame

You already should have some undertanding about colour spaces, image formats and conversion routines as well as good C coding skills.


A pure C library port based on some parts of pygame has been started recently. It aims to clearly isolate certain parts of pygame and wrap them up in a set of functions and modules for C/SDL developers.

  • Implement a cross-platform build suite for the currently availabe SDL_pygame
  • Isolate and migrate code portions of pygame to SDL_pygame.

You will require good C coding skills, some knowledge about cross-platform development and build systems such as make.


These are extremely difficult projects, and are recommended to be undertaken only if the student has significant prior experience in the subject matter.

OSC networking

OSC is like the new midi protocol for networks. This would let pygame talk to a lot of synths, and music programs. It's a latency aware protocol, so it has high resolution time stamps, and bundles of atomic operations, and you can schedule events in the future etc.

All things which are useful for interactive music stuff, but also for games. There's already code that does this, and pygame would then be more useful for multimedia and art type applications.

Links about it: - this is using pygame actively for that purpose. Super collider is the main one to note here. It's a cool programmable synth. It is a smalltalk like language, but the synth part runs as a server controlled by OSC. So you can use it from other programs. But other apps can be controlled with OSC too.

You will require strong C skills, having done some network programming already and be really interested in music and synths.

Unsorted or Incomplete

Please help complete these project ideas and categorize their difficulty. Include references to pages with more information if possible, and give a rough outline of what the project would involve, like where to start, and what languages the coding would be in.

SVG support

Support for importing and rendering SVG files is missing from Pygame. This is currently possible using pycairo to render the image and then loading it into pygame, but a more direct route may be desirable.

pygame on flash

During the europython 2007 pypy sprints some people made a proof of concept pygame running on the flash vm.

Another sprint is going to continue this work at pycon 2008:

Continue this work to get pygame games running unmodified(or mostly unmodified) on flash.

Easy networking

There were something like 12 student applications for this in 2006.

AI module

ai. A*, flocking etc.

Optimize functions

Get a decent vectorizing compiler like vectorC or an intel compiler to help generate mmx assembly for a lot of stable functions.

Architecture specific modules compiled. This could even take advantage of normal gcc optimization flags, which can give a nice speed boost, eg.,,

So the could be changed to compile with different CFLAGS, and then have the modules load the correct one for the particular cpu at runtime(if the module is available).

Video effect plugins.

Using some of the real time video effect plugins would be good. There's a video effect plugins that would also be kind of fun for games too :)

Probably be a pretty simple module to write to allow using the video effect plugins.

Also some of the video stuff from freej (an SDL based VJ software) could be cool to place into pygame. Of course freej uses livido plugins for effects too.