pygame is
Simple DirectMedia Layer is
Site Swing

Particles - 0.1

David ?hlund (poffpoff)



This is how i get things to bounce x times. I have used this technique both in 3D and 2D games. I invented it for a Scorched Earth clone i did 12 years ago so i could launch projectiles in a wanted angle with different powers ^^ Can be used for all kinds of funny stuff like flying bodyparts, fire , special effects in general. Bouncing! Easy to modify for other purposes.


Home Page:


click to view original size


Particles - 0.1 - Jan 22, 2008 account Comments

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

October 25, 2009 5:35pm - Jared - nickname: (jabapyth)
broken link...
January 24, 2008 2:55am - chris - nickname: (chrisl456)
Hi, small bug report with fix. Line 116 shouldn't have the "\n" param. strip by default removes whitespace, and by specifying "\n" it wouldn't run. Might be due to running it on Linux.
January 23, 2008 11:01am - David Ã?hlund - nickname: (poffpoff)
Thanks =) What changes did you make? I think it can be done much faster with thread programming!! But im not so good at that.
January 22, 2008 8:16pm - Jordan Trudgett - nickname: (tgfcoder)
Had to make a few changes to the code, but it's pretty good :)
January 22, 2008 11:39am - pymike - nickname: (pymike)
Nice! Slows down pretty quick, but that's to be expected.
January 22, 2008 11:03am - David Ã?hlund - nickname: (poffpoff)
*works now
January 22, 2008 11:03am - David Ã?hlund - nickname: (poffpoff)
Aa sorry =) It works not
January 22, 2008 9:21am - Jordan Trudgett - nickname: (tgfcoder)
Oh, I forgot to mention, there was no runme.bat.
inflating: map.txt
extracting: 3.png
inflating: back.png
January 22, 2008 9:20am - Jordan Trudgett - nickname: (tgfcoder)
File "", line 85
class block():
SyntaxError: invalid syntax

I think that's a Python 2.4/2.5 difference. 2.4 recognises "class block:" instead..

After changing them:
Please start with runme.bat
Traceback (most recent call last):
File "", line 175, in ?
ah = engine()
File "", line 98, in __init__
self.b = pygame.image.load('5.png').convert()
pygame.error: Couldn't open 5.png

And then I couldn't really get it to work. :( Sorry.

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

Aug 18, 2014

Aug 2, 2014

Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 9, 2014

Jun 27, 2014

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