Testing my particle system with @justin_cyr's food and drink sprites.
The code uses sget() to analyse the colour spread in the sprite, and then uses the correct proportion of coloured pixels in the explosion.
I've always loved the look of particle explosions, especially the bouncy colourful sort, so this was a must as my second project.
EDIT: As of 0.3 the buttons are now:
Button 1 [Z]: Explode the fruit
Button 2 [X]: Switch the new "heat" affector* on/off
Left/Right: Decrease/increase gravity
Down/Up: Decrease/increase bounce rate
* Particles glow white hot for a while, then fade to original colour and finally darken
[Please log in to post a comment]