Particle System

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andrew Davie

More work on the particle system. I've added different 'behaviours' such as expanding from a center position at a given speed, rotating as that happens, bubble behaviour (move upwards, wobble as you do), implode, lava surface. spiral outwards, recursively generate.  Each basically moves a particle in a different way. In this video (with interleaved Chronocolour turned off, for a a change) you can see some of those in action. The wyrm is trailed by spiral particles, which in turn generate recursive spiral particles. That's the sort of spinning blob of particles you see occasionally.
Since this game is now unlikely to be published - that is, it's clearly not going to be an AtariAge project, and I really can't see doing it myself, it's now becoming just a fun testbed for me to play with graphics and behaviours - pushing the '2600 as far as I can but basically enjoying myself without any pressure. So I'm having fun, basically.


Andrew Davie

Here's another experiment.


In this one, each particle is generated with a constant lifetime (say, 30 frames). The particles rotate around their generation point (at the start, the head of a wyrm) at a constant rate. They slowly move away from the generation point (but still rotate around it).  Every now and then, a particle will generate four "child" particles with the children's generation point being the particle's position.  So we have a sort of swirl of swirls happening, and some of these swirls move and expand.  It's a bit like a rotating game of "life" as per John Conway's famous cellular automata. I quite like the effect these swirls have.  There are only 16 particles available, so that's the most number of particles you ever see. When we want to generate a new particle, if there's no spare "slots" then the oldest particle is killed to make room.

Andrew Davie

Here's a binary to play with.  "Saturn" is the most effective planet to watch the swirlies from.


Andrew Davie


There's a balance between memory required for particle storage, and processing time to draw them.  About 45 is the limit of the system, but that's enough to give some mesmerising particle effects as shown in this video. The particles are moving pretty smoothly - especially considering the 40 pixel horizontal resolution of the screen.

Andrew Davie

Here's a little bit of fun with particle movement. I can see some sort of "shoot-em-up" working with this.