Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  function describing a 2d explosion  (Read 860 times)
0 Members and 1 Guest are viewing this topic.
Offline ~Spaceaholic

JGO n00b
*

Posts: 35
Medals: 1



« on: 2012-01-26 15:41:55 »

I am currently designing a game that has alot of explosions in it, of varying sizes... I want the explosions to be real eye candy... right now I have some explosion sprites but the sprite sheets are so large I cannot fit them all into memory... does anyone know of any tricky ways to go about creating explosions, using minimal images... another challenge here is I am using a bitmap to draw to, so I am limited to x and y dimentions (no z)...

anyone know of any tricky algorithms to describe an explosion in 2d?
Offline lhkbob

JGO Neuromancer
****

Posts: 1174
Medals: 35



« Reply #1 on: 2012-01-26 16:55:24 »

Particles

Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #2 on: 2012-01-26 21:21:50 »

Memory problem?
goes to procedural

how?
particle can be created by glowing balls splitting around. For glowing on procedural you can like overdraw normal circle with alpha-ed one. Splitting around happens when you update the particles in orde 2 of position (accelleration). In case it's not enough, maybe it can help
http://www.java-gaming.org/topics/hdr-fireworks-particle-engine-benchmark/25022/view.html

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.086 seconds with 20 queries.