I wrote this processing prototype to generate cartoon styled explosions for our next game. It took about two hours to get the basic burst effect. I’ll be adding debris trails and smoke to it when I next get some time, as well as PNG sequence output. For the moment you can click the link below to try the demo for yourself and get the source code.
The base effect consists of additive and subtractive expanding circles, with some randomness. An initial additive burst creates the colour, which is subtracted by using a delayed subtractive burst. There are many magic numbers and it’s hacky code, but it’s only for PNG sprite output.
Let me know if you find it useful!
Click here to play with the Processing demo – also includes source code. Left click to make an explosion, right click for a random colour explosion. Left clicking while an explosion is in progress will pause the effect.