Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ericfourfour's Particle Engine
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

What do you think?
(No ending time set)
Good
42%
 42%  [ 3 ]
so-so
42%
 42%  [ 3 ]
Bad
14%
 14%  [ 1 ]
Total Votes : 7

Author Message
ericfourfour




PostPosted: Sun Apr 30, 2006 4:04 pm   Post subject: ericfourfour's Particle Engine

In this particle engine all of the particles move towards and around the mouse but once they get far enough away they drop to the bottom of the screen. When the particles are on the bottom of the screen they will slowly move towards the middle.

There is a data file so you can customize the constants.
The first one is the gravity. The second one is the amount of particles. The third on is the distance the particles have to be away from the mouse before they fall. The fourth one is the mouse gravity.

Also if you press the left mouse button the particles will move at their starting angle. It is pretty cool to do this when the particles are all at the bottom of the screen on the middle and then let go. If you press the middle mouse button everything will freeze until you release it. If you press the right mouse button all of the particles' coordinates and velocities reset.

Everything is in the zip



Particle Engine.zip
 Description:
This is the file.

Download
 Filename:  Particle Engine.zip
 Filesize:  276.32 KB
 Downloaded:  148 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Sun Apr 30, 2006 4:14 pm   Post subject: (No subject)

Thats pretty cool, good job.

Its a bit slow on "my" computer though..
ericfourfour




PostPosted: Sun Apr 30, 2006 4:22 pm   Post subject: (No subject)

try lowering the amount of particles in the data file
its the second number (1000)
jamonathin




PostPosted: Sun Apr 30, 2006 4:32 pm   Post subject: (No subject)

It's definately cool, and how you can use the mouse. . . but after the first take off, its hard to understand what the dots are doing, but cool.
ericfourfour




PostPosted: Sun Apr 30, 2006 4:46 pm   Post subject: (No subject)

Well I was trying to have the dots accelerate towards the mouse and then fly away in the same direction and then come back however it's very complicated since i barely know any trig
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: