Home▸Animals & Their World▸Lorikeets: Nectar Flock Lab (2D)

Lorikeets: Nectar Flock Lab (2D)

A top-down Canvas2D boid-flocking simulation: lorikeets balance separation, alignment and cohesion while breaking away to feed at flowering trees, then rejoin the flock.

Animals & Their World2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-lorikeet-nectar-flock-lab ↗ Open standalone

This 2D companion runs the same social-foraging idea as the 3D lab on a plain top-down canvas: birds follow classic boid rules (separation, alignment, cohesion) whose blend is tunable, while independently steering toward the nearest flowering tree that still has nectar and depleting it as they feed.

⚙ Under the hood

Canvas2D boid flock with separation/alignment/cohesion steering, nectar-seeking foraging behavior, and regenerating flower nectar levels driven by the sliders.

boid flockingseparation alignment cohesionforaging behavior2D

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

What did you find?

Add reproduction steps (optional)