A small collection of tiny demos to playtest different particle physics algorithms for my own (hopefully bigger) game projects.

Hopefully they're also useful for anyone who wants to learn or use 2D particles in their 2D games.

These demos are made for super rapid development and can be tested and adjusted in a browser using QBJS (QBasic).

particles 1.0

  • 2D grid based bullet particles with trailing, friction and random jitter.
  • traversal algorithms avoids missing diagonal collisions.
  • particles bounce off of walls, but will stick to opposing walls.

goal: create a "flamethrower" type of particle emitter.

source code: qbjs.org

particles 1.1

  • cellular automata: mold + foam particles.
  • better controls: place (s)olids, (m)old, (f)oam.

goal: add "foam" and "mold" particles.

source code: qbjs.org


Download

Download
particles 1.0 352 kB

Leave a comment

Log in with itch.io to leave a comment.