Important alert: (current site time 7/16/2013 3:59:05 AM EDT)
 

winzip icon

Boom! -- Particle Explosion Simulation

Email
Submitted on: 10/24/1999
By: Jason Merlo  
Level: Not Given
User Rating: By 5 Users
Compatibility: VB 5.0, VB 6.0
Views: 30141
 
     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.

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!

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 Winzip to 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.
  3. Scan the source code with Minnow's Project Scanner

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 languages 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 tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

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 AMJason 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!
(If this comment was disrespectful, please report it.)

 
10/26/1999 10:37:00 AMJason 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!
(If this comment was disrespectful, please report it.)

 
11/16/1999 6:02:00 PMFreaky

Thanks your very interesting program.

It surely is interesting~~~
(If this comment was disrespectful, please report it.)

 
12/8/1999 7:04:00 PM[]D [] []V[] []D

This program is tight
(If this comment was disrespectful, please report it.)

 
5/7/2000 12:56:16 AMDustin Davis

He's right, this is sweet. Good job man
(If this comment was disrespectful, please report it.)

 
7/31/2000 10:39:14 PMASV

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.
(If this comment was disrespectful, please report it.)

 
8/27/2000 10:22:38 PMDark Angel

ASV, you seem to have plenty of time on your hands, want to analyse a couple of programes of mine for me ?
(If this comment was disrespectful, please report it.)

 
10/23/2000 2:32:38 AMNathan Chere

2Mb for a little explosion effect?
Shocking optimization (or lack of), but otherwise nice effect.
(If this comment was disrespectful, please report it.)

 
4/2/2001 1:49:27 PMJason Merlo

NOTE: Fracas version 1.1, which uses this code, is available at www.smozzie.com for free download.
(If this comment was disrespectful, please report it.)

 
6/15/2001 8:36:50 AMSinister

Ha ha ha! too cool
(If this comment was disrespectful, please report it.)

 
2/16/2005 7:10:48 PMThangky

This is fun and very attractive! I can't stop playing it...
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.