🐟 Fish School — Boids Flocking with Predator (2D)
A 2D Canvas boids flocking simulation of a fish school. Real separation, alignment and cohesion steering with adjustable weights, click-to-drop predators and obstacles, and a live cohesion/speed HUD.
⚙ Under the hood
A 2D Canvas boids flocking simulation of a fish school. Real separation, alignment, and cohesion steering rules combine into emergent schooling, with adjustable per-rule weights and click-to-drop predators or obstacles that trigger flee behavior.
boidsflockingpredator-preyemergent-behaviorcanvas2dunderwater
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install