Junk Drawer Mind
Portfolio and Blog of Curtis Lawrence
Snow Particles
Thu, 12/27/2007 - 12:30 — curtlaw
This was a particle code test, for what later became a mini game. first thing was to generate the particles, then vary the speed and size of flakes. later implemented a collision detection system which would block falling snow. this code only generates a preset number of flakes with random variables that define the speed size and location upon load. once a particle is out of view or collides with something it is relocated to a random spawn point above the stage where all variables are again randomized. This prevents the system from constantly creating particles.
