Particle Systems
Posted: Sat Mar 27, 2010 8:38 pm
Well, I want to make a particle system (a very basic one at that). I'm curious as to how I should set it up.
Obviously I'll have a particle class which will have a rect for positioning/size, a velocity vector, a life integer, and perhaps an acceleration vector.
Then I'd have some sort of Particle System class which would manage all the particles. But what sort of operations do these classes need to accomplish to produce different effects?
If it's of any use: I want to make a particle system, because I've been working on a Breakout game. Currently, every time a brick is hit, it loses life, and it's color becomes less intense. Once it is destroyed, I want it to break into particles and have all the particles float down.
Obviously I'll have a particle class which will have a rect for positioning/size, a velocity vector, a life integer, and perhaps an acceleration vector.
Then I'd have some sort of Particle System class which would manage all the particles. But what sort of operations do these classes need to accomplish to produce different effects?
If it's of any use: I want to make a particle system, because I've been working on a Breakout game. Currently, every time a brick is hit, it loses life, and it's color becomes less intense. Once it is destroyed, I want it to break into particles and have all the particles float down.