pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
PixelPerfect

PixelPerfect - 1.0

John Eriksson (wmjoers)

Tags:

Description

A simple pure python implementation of an pixel perfect collision detection algorithm.

When starting the example 200 sprites is added to the screen at random locations. You can then move a larger blue sprite around by using the arrow keys or by using the mouse. Press spacebar to toggle between the pixelperfect-algorithm and the regular rectangle based one.

Whenever a hit is detect it is indicated by the BOOOM! text.

There is a bug in the current PyGame release that prevents this example from working. But if you check out the latest PyGame version from CVS it should work just fine!

Links

Home Page: http://arainyday.se
Source: http://arainyday.se/projects/python/PixelPerfect/PixelPerfect.tar.gz

Screenshot


click to view original size

Releases

PixelPerfect - 1.0 - Mar 2, 2006

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

January 18, 2009 8:16pm - Salvatore Han - nickname: (eluem) - 5/5
This works really well, I don't see why it hasn't been made part of the pygame library...
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Nov 27, 2014


Nov 13, 2014

Nov 11, 2014


Nov 10, 2014

Nov 9, 2014

Nov 6, 2014


Nov 4, 2014

Nov 3, 2014

Oct 28, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)