Discord
Login
Community
DARK THEME

Particle systems

So I just made a little particle system library. Heavily inspired by Godot's particle systems, and I'm enjoying how it's turning out, especially since I had never done this before.

You can create a particle system object, and by tweaking a few properties you can make it look like sparks, fire, rain, etc.

It's a bit slow if you create too many particles. Later on I may re-write it in js, as it might perform better. Particles that use sprites are slower (in the demo they are the blobs, the smoke and the rain).

https://microstudio.io/i/Skaruts/sk_particle_system/

:embed https://microstudio.io/Skaruts/sk_particle_system/

Wow, well done :)

Made some improvements to this. Not much that is noticeable in the demo, except for explosiveness (the sparks are now explosive!), which is still not working fully well, but it's getting there.

Most of the improvements were internal. I was trying to add bullet hit particles to a space game I'm prototyping (the project that got me into this), but I was having to create many particle systems for all the bullets that were hitting the walls, and that seemed inefficient and hard to keep track of, so... I made it so each particle system can now handle, internally, multiple instances using the same particle settings, and it can also pool them for re-use.

Took this for a little test drive for a few days and I'm liking the way it's going. By the way it's supports color gradients now.

I'm still not too sure the way I'm implementing this makes sense entirely, but whatever. It works, at least.

(These particles below are thrown in the direction of the collision normals.)

Love the look of that 😃 Will that turn into a full game?

I don't know. I've had this idea brewing in my head for years and I still don't know what to do with it. I have some other ideas, so maybe they'll coalesce into something at some point.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community