pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Particle Dancer

Particle Dancer - 0.0

Jon Lemmon (spookynote)

Tags:

Description

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!

Download:

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.

Requirements:

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

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: http://www.akeric.com/blog/?page_id=1123

Particle Dancer was inpsired by the iPhone/iPad app Gravilux: http://snibbe.com/projects/interactive/gravilux

Links

Home Page: http://bit.ly/9XthFz

Screenshot


click to view original size

Releases

Particle Dancer - 0.0 - Jul 6, 2010

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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! http://www.youtube.com/watch?v=QK5Y2kDwRCg
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 vec2d.py 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.
spotlight

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

Oct 21, 2014

Oct 20, 2014

Oct 16, 2014

Oct 9, 2014

Oct 8, 2014

Oct 7, 2014

Oct 4, 2014

Oct 1, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

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