Home▸Animals & Their World▸Fish School

Fish School Simulator (2D)

Interactive 2D top-down fish school: separation, alignment and cohesion rules produce a living school that scatters from a predator and gathers around food.

Animals & Their World2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
2d-3d-fish-school ↗ Open standalone

This 2D top-down simulator reimplements a schooling fish tank: dozens of fish continuously apply separation, alignment and cohesion to their nearest neighbors, producing the same swirling, organic group motion seen from above a real school. Click the water to drop in a predator and watch the school scatter and panic in proportion to how close it gets, or shift-click to drop food and pull the school into a tight feeding cluster; sliders let you rescale the fish count, the strength of the three schooling rules, and how sharply each fish can turn, while Calm and Panic mode presets swap in a whole different balance of behavior at once.

⚙ Under the hood

A top-down 2D fish school where separation, alignment and cohesion rules produce lifelike schooling, predator avoidance and food attraction.

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

What did you find?

Add reproduction steps (optional)