GUI,Boom,particle,explosion,simulation,simula
Quick Search for:  in language:    
GUI,Boom,particle,explosion,simulation,simula
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
RentACoder Stats

 Code:  lines
 Jobs: 0 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for RentACoder.
Wrapping Scrolling Text
By Paranoid_Androi d on 7/2


Create A Dummy File
By AML on 7/2


Click here to see a screenshot of this code!Captionbar manipulation!
By Peter Hebels on 7/2

(Screen Shot)

A Game Of War
By Co0nest on 7/2


Click here to see a screenshot of this code!KeyGen Example
By Bengie|NET on 7/2

(Screen Shot)

Click here to see a screenshot of this code!OpenBrowser v1.9
By Orlando Jerez on 7/2

(Screen Shot)

SendMessageBySt ring() Example
By Jaime Muscatelli on 7/2


Click here to see a screenshot of this code!FirstSunday
By Jan Paul Penning on 7/2

(Screen Shot)

Click here to see a screenshot of this code!Ikonz v1.0
By Gaurav Creations on 7/2

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Boom! -- Particle Explosion Simulation

Print
Email
 
winzip icon
Submitted on: 10/24/1999
By: Jason Merlo  
Level: Not Given
User Rating: By 107 Users
Compatibility:

Users have accessed this code 7200 times.
 
 
     Boom! is a particle explosion simulation. It simulates explosions composed of many individual elastic pieces. Each piece also has a shadow, which has a very nice effect when the explosion occurs over a detailed background graphic. <br><br> Boom! is a fun little side project that I devised while looking for a quick way to put explosions into another game I'm writing. It turned out well enough to warrant a GUI so that the user can tweak the particle properties. There is also a 'multiball' feature, so that you can start up several explosions at once! <br><br> In this simulation, each particle is an instance of the same class. I used this approach to show how easy it is to create an array of similar objects, each with dynamic property values. It makes for very concise and understandable code!
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for langauges that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 3 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/25/1999 11:34:00 AM:Jason Merlo
Just a quick note:  I updated this on 
10/25/99.  I fixed a bonehead bug that 
was causing the screen to get updated 
200 times each scan instead of 1.  
You'll notice that it's a *lot* faster 
now.  I also minimized the number of 
class property accesses and added a 
speed control.  Enjoy!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/26/1999 10:37:00 AM:Jason Merlo
Another update 10/26/99.  I fixed a bug 
in the ballistics model that was making 
the ball elasticity not work quite 
right.  Now the balls will never bounce 
forever.  I also cleaned up the display 
routine:  Now the EraseBall function is 
no longer used, and all of the shadows 
are drawn first so that shadows don't 
overlap balls.  The 3-D effect is much 
better as a result.  This will be the 
last update, promise!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/16/1999 6:02:00 PM:Freaky
Thanks your very interesting 
program.
It surely is interesting~~~ 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
12/8/1999 7:04:00 PM:[]D [] []V[] []D
This program is tight
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
5/7/2000 12:56:16 AM:Dustin Davis
He's right, this is sweet. Good job man
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
7/31/2000 10:39:14 PM:ASV
Thanks for a lovely progie, that's 
truly addictive. However, looking 
through the code I have found several 
minor errors, such as passing values to 
nowhere etc. Is there any chance you 
could correct these? Many thanks.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
8/27/2000 10:22:38 PM:Dark Angel
ASV, you seem to have plenty of time on 
your hands, want to analyse a couple of 
programes of mine for me ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/23/2000 2:32:38 AM:Nathan Chere
2Mb for a little explosion 
effect?
Shocking optimization (or lack 
of), but otherwise nice effect.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/2/2001 1:49:27 PM:Jason Merlo
NOTE: Fracas version 1.1, which uses 
this code, is available at 
www.smozzie.com for free download.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/15/2001 8:36:50 AM:Sinister
Ha ha ha! too cool
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | RentACoder Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.