Particle Candy

About Particle Candy

Type: Lua module
License: €39.95
Supported platforms:

       

Categories:
  • Animations
  • Graphics
  • Physics
  • Utilities and Tools
  • Visual Effects

Particle Candy is an extremely flexible yet simple and straightforward to use particle engine library to create all imaginable stuff of special effects in your games like smoke, trails, fire, explosions, debris, flares, dust, clouds, shots, light rays, water fontains, even weather effects like rain, snow -everything you can imagine. It's a single .lua file that you just include to your project and you're immediately ready to create professional special effects.

Code example:

local Particles = require("lib_particle_candy")
Particles.CreateEmitter("name", x,y, rotation, visible, loop, autoDestroy)
local MyEmitter = Particles.GetEmitter("name")

-- GIDEROS SDK:
MyEmitter:setX(50)
MyEmitter:setY(150)
MyEmitter:setRotation(180)
MyEmitter:setAlpha(0.5)

-- DEFINE PARTICLE TYPE PROPERTIES
local Properties 		= {}
Properties.imagePath		= "arrow.png"
Properties.imageWidth		= 32
Properties.imageHeight		= 32
Properties.velocityStart	= 150
Properties.autoOrientation	= true
Properties.killOutsideScreen	= true
Properties.lifeTime		= 3000
Properties.alphaStart		= 0
Properties.fadeInSpeed		= 0.5
Properties.fadeOutSpeed		= -0.75
Properties.fadeOutDelay		= 1500

-- CREATE THE ACTUAL PARTICLE TYPE
Particles.CreateParticleType ("MyParticleType1", Properties)

Particles.AttachParticleType("emitter", "particleName", emissionRate, duration, delay)

-- THIS FUNCTION CALLED PERIODICALLY
function mainLoop()
	-- TO UPDATE / ANIMATE PARTICLES:
	Particles.Update()

	-- YOUR onEnterFrame CODE HERE:
	-- ...
end
				

Particle Candy video