Home▸Biology & Life▸Fish School — Boids Flocking with Predator (2D)

🐟 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.

Biology & Life2DEasy60 FPS📱 Mobile-adapted💧 Water⇄ 3D version
2d-fish-school-3d ↗ Open standalone
⚙ 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

What did you find?

Add reproduction steps (optional)