|
|
Looks alright, but I think you should be trying to make a general particle effect rather than specific weather effects. If you need something special for rain/snow just derive from your particle class.
Also I don't like your way of adding particles. You seem to add in # per second until you have your max, at which point you reuse dead ones. That takes a while to stabalise. You have some other options: Keep creating particles at a steady rate, and simply kill an old one if you get too many. That's not very intuitive, but and it might be difficult to fade them out. The second is to not bother clamping the number of particles, just give them a creation rate and lifetime and let it waver, but make sure your not allocating and deallocating memory the whole time for them.
|