Tutorials for particle system?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
Draetheus
Prole
Posts: 12
Joined: Wed Dec 29, 2010 9:15 pm

Tutorials for particle system?

Post 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! :awesome:

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? :ehem:
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Tutorials for particle system?

Post 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
Help us help you: attach a .love.
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Tutorials for particle system?

Post by nevon »

Check the examples.love file for a great example on how to use ParticleSystems.
Draetheus
Prole
Posts: 12
Joined: Wed Dec 29, 2010 9:15 pm

Re: Tutorials for particle system?

Post 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. :huh:
User avatar
nevon
Commander of the Circuloids
Posts: 938
Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:

Re: Tutorials for particle system?

Post 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. :huh:
My bad. It's among the demos: http://bitbucket.org/rude/love/downloads/demos.zip
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests