pygame is
Simple DirectMedia Layer is
Site Swing
Particle Dancer

Particle Dancer - 0.0

Jon Lemmon (spookynote)



Particle Dancer is a fun particle simulator. You are initially presented a 2D grid of particles. As you drag your mouse across the screen, the particles start to speed toward your mouse... like comets toward a sun. Lots of fun!


How to use:

  • Just click and hold down your mouse anywhere on the screen and have fun!
  • To put the particles back to their original position, press the RESET button on the bottom of the screen.
  • To change the way the particles behave, adjust the parameter values at the beginning of the script.


The script uses Make sure is in the same folder as this script (or in your python path) before running

If the simulation is running slow, try decreasing the GRID_SIZE parameter (located at the beginning of the script).

Additional notes:

The code for Particle Dancer is actually a heavily modified version of Eric Pavey's vertletCloth simulation script. Eric's original code can be found at:

Particle Dancer was inpsired by the iPhone/iPad app Gravilux:


Home Page:


click to view original size


Particle Dancer - 0.0 - Jul 6, 2010 account Comments

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

May 31, 2011 2:52am - Kurtis Holsapple - nickname: (lapubell) - 5/5
I love this. I used it to make a little music video. Thanks!
December 7, 2010 5:33pm - Alex Polosky - nickname: (hondros) - 5/5
THis is insanely awesome!
July 22, 2010 4:51pm - Fabian Dill - nickname: (berserker) - 4/5
If you add the () to the print statement is also works on python 3
I found that using my cvec2d.pyd instead of the normal increased performance significantly.
My C-Implementation isnt public, yet, though.
July 11, 2010 11:57am - Pawel Tokarz - nickname: (outslider) - 4/5
Looks very nice:) I like it. You may implement swiching gravity/antigravity by changing mous button, it would be easier to play.

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

Nov 12, 2015

Nov 11, 2015

Nov 8, 2015

Oct 16, 2015

Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

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