0
votes
2answers
138 views

Best practice for handling “dead” objects and their particles

I'm developing a side-scrolling run'n'gun game (but with planes! :P). I'm an experienced coder, but new to game development. When an enemy plane collides with a friendly missile, I start an explosion ...
3
votes
2answers
215 views

Which of these two particle generator lifetime management techniques is better?

What would be better: An explosion class which gets created when needed, does it's stuff, then is deleted. (one instance per explosion) An explosion class which persists through the whole game, and ...
3
votes
4answers
356 views

Which of these two approaches to particle generator design is preferable?

What is a better idea for a particle generator (bearing in mind the intention to instance the draws to all the particles in the future)? A particle emitter that maintains its own list of particles ...