Particles
Particle effects are
simple to create in Gadget2D using sprites. The simple effect below was created
based on the animating explosion from previous examples. Here the explosions
are moving and animating. Render mode 3 (additive transparency) is used to
blend the particles together. When the left mouse button is down, particles are
created and assigned a somewhat random velocity so that they move up the screen
while fanning out.
The particles each start at the mouse position.
Pressing the right mouse button releases a bust of 36 particles at once that spread
out to form a circle.
Particles.zip 250KB