summaryrefslogtreecommitdiff
path: root/modules/sparkler/particles.c
AgeCommit message (Collapse)Author
2017-01-07sparkler: stop scaling gravity vector every particleVito Caputo
vestigial deficiency from variable gravity experiment also reduced gravity, the results seem more aesthetically pleasing.
2017-01-07sparkler: don't age or sim on empty children eitherVito Caputo
More of 86bc322, eliminate per-particle unnecessary calls
2017-01-07sparkler: remove unnecessary cast to floatVito Caputo
2017-01-07sparkler: don't _particles_draw() empty childrenVito Caputo
trivial per-particle savings
2017-01-07sparkler: prefer *.5 to / 2Vito Caputo
Multiplies tend to be less costly
2016-12-13sparkler: introduce a particle systemVito Caputo
A while ago I made this particle system on SDL, and had the beginnings of an octree implemented within it, but never finished actually using the octree to accelerate the proximity searches. This now has the octree completed and of course more particle interactions now that neighbors could be found more quickly. The simulation somewhat resembles a fireworks display. Every particle is drawn as a single pixel. The visual effect is dominated by spontaneously spawned rockets which explode into thousands of particles accompanied by bursts that thrust particles away from the explosion radially in an expanding sphere resembling a shock wave. When the shock wave happens to strike another rocket, it explodes, resulting in another shock wave. This can produce spectacular chain reactions, so it's worth running for some time and seeing what transpires.
© All Rights Reserved