2. To the particle demo, there's a list of systems that goes something like this:
Code: Select all
------1
local p = love.graphics.newParticleSystem(part1, 1000)
p:setEmissionRate(100)
p:setSpeed(300, 400)
p:setGravity(0)
p:setSize(2, 1)
p:setColor(255, 255, 255, 255, 58, 128, 255, 0)
p:setPosition(400, 300)
p:setLifetime(1)
p:setParticleLife(1)
p:setDirection(0)
p:setSpread(360)
p:setRadialAcceleration(-2000)
p:setTangentialAcceleration(1000)
p:stop()
table.insert(systems, p)
-------2
p = love.graphics.newParticleSystem(part1, 1000)
p:setEmissionRate(200)
p:setSpeed(0.001, 0.005)
p:setSize(0.11, 0.13)
p:setColor(255, 255, 255, 5, 255, 128, 128, 220)
p:setPosition(400, 300)
p:setLifetime(1)
p:setParticleLife(2)
p:setDirection(0)
p:setSpread(360)
p:setTangentialAcceleration(2000)
p:setRadialAcceleration(-10)
p:stop()
table.insert(systems, p)
Tia