itch.io is community of indie game creators and players

Devlogs

Performance update

DragonRuby Particle Explosion Demo
A browser demo made in HTML5

I finally got around to improving this demo with performance improvements. The web version is capable of supporting hundreds of particles and maintaining 60fps. On the desktop, it can support several thousand.

I changed the construction of the effects to make it easier to build new ones and also added a 'move' method that allows you to define custom movement for particles each time their position is updated.

For fun, I added two new effects. A wafty "smoke" effect and a spherical "swirl" effect.

The source code is available here under an MIT license: https://github.com/oeloeloel/dragonruby-particle-explosions

Suggestions for code optimisations or improvements are welcome.

Files

  • particle-explosion-demo-windows-amd64.exe 5.2 MB
    Version 3
  • particle-explosion-demo-linux-raspberrypi.bin 5 MB
    Version 3
  • particle-explosion-demo-linux-amd64.bin 5.3 MB
    Version 3
  • particle-explosion-demo-html5.zip 2.9 MB
    Version 3
  • particle-explosion-demo-macos.zip 4.4 MB
    Version 3
Download DragonRuby Particle Explosion Demo
Leave a comment