minions_js
This is a boid simulation.
Minions will try to gather around the mouse pointer.
Left click to scare them away
Minions will try to group with their friends.
The background is a visualisation of the quadtree spatial partitioning algorithm used to bucket the minions for efficient collision detection.
Source code