Page 1 of 1
Tutorials for particle system?
Posted: Tue Jan 04, 2011 8:11 pm
by Draetheus
1st off, I would like how awesome and easy LOVE is. The last time I remember programming being this easy was when I used to write games in TI-BASIC for my TI-83!
I've already done a few basic tuorials involving moving images around on the screen and capturing keyboard input. I would like to try adding particle effects, however I don't see any tutorials for the particle system on the wiki.
Links? Or perphaps I didn't dig deep enough into the wiki?
Re: Tutorials for particle system?
Posted: Tue Jan 04, 2011 8:59 pm
by Robin
You could take a look at
http://love2d.org/wiki/ParticleSystem if you haven't already. It's not a tutorial, but it could be useful.
I never used PSs myself, but I imagine it would be something like:
Code: Select all
function love.load()
ps = love.graphics.newParticleSystem("image.png", some_number)
end
function love.update(dt)
ps:update(dt)
end
function love.draw()
love.graphics.draw(ps, 100, 100)
end
Re: Tutorials for particle system?
Posted: Tue Jan 04, 2011 10:14 pm
by nevon
Check the examples.love file for a great example on how to use ParticleSystems.
Re: Tutorials for particle system?
Posted: Wed Jan 05, 2011 6:53 pm
by Draetheus
nevon wrote:Check the examples.love file for a great example on how to use ParticleSystems.
I actually don't see any part of examples.love that uses the particle system.
Re: Tutorials for particle system?
Posted: Wed Jan 05, 2011 8:23 pm
by nevon
Draetheus wrote:nevon wrote:Check the examples.love file for a great example on how to use ParticleSystems.
I actually don't see any part of examples.love that uses the particle system.
My bad. It's among the demos:
http://bitbucket.org/rude/love/downloads/demos.zip