Homeβ–ΈAnimals & Their Worldβ–ΈBarracuda School Hunt Lab (2D)

Barracuda School Hunt Lab (2D)

A top-down Canvas2D companion to the 3D barracuda lab: a flock of barracudas hunts through a reef channel using separation, alignment and cohesion steering, with prey density and synchronization sliders that reshape the school in real time.

Animals & Their World2DModerate60 FPSπŸ“± Mobile-adapted⇄ 3D version
2d-barracuda-school-hunt-lab β†— Open standalone

This 2D companion drives the same separation/alignment/cohesion flocking model as the 3D barracuda scene through a plain top-down canvas: a side panel exposes the school size, prey density and synchronization, a live readout tracks cohesion, average speed and hunting progress, and baitfish markers respawn around the channel for the school to sweep through.

βš™ Under the hood

2D boids flocking lab: separation, alignment and cohesion forces steer a school of barracudas through a reef channel, with prey density driving a forward current and synchronization scaling the alignment weight.

boidsflockingpredator behaviorseparation alignment cohesionschool dynamics

2D Β· HTML5 Canvas 2D Β· 60 FPS target Β· runs fully client-side, no install

What did you find?

Add reproduction steps (optional)