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
Feb 7, 2016


Feb 4, 2016

Jan 30, 2016

Jan 24, 2016

Jan 23, 2016

Jan 18, 2016

Jan 5, 2016

Dec 27, 2015

Dec 12, 2015

Dec 11, 2015

Dec 7, 2015

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