How the Wind & Flocking Simulation Works
In Wind Shepherds, you embody the living atmosphere guiding a fragile flock of migrating birds across wilderness chapters. The birds operate upon classic boids autonomous flocking algorithms: separation (steering to avoid crowding local flockmates), alignment (steering toward the average heading of adjacent neighbors), and cohesion (steering toward the average center position of the flock).
Left to themselves, the birds cruise on gentle instincts, but harsh environmental hazards quickly break their formation. By dragging fluid strokes across the canvas with mouse or finger, you carve live aerodynamic wind currents through the sky. Birds entering your streamline are actively advected along the stroke's trajectory, gaining kinetic speed and settling into smooth aerodynamic drafting ribbons. Your mission across five migration chapters is shepherding the required quorum of healthy flockmates safely to the sanctuary beacon while steering clear of turbulent thunderstorm cells, hunting hawks, and nightfall. Each chapter concludes with a named memory objective requiring a specific count of surviving flyers. When your wind streamline catches a straggling cluster, the birds bank smoothly into the slipstream, matching velocity and saving stamina for the final mountain ascent. Balancing short burst gusts with sweeping steering channels ensures you never exhaust your flock's vital momentum before the sanctuary beacon comes into view.
Wind Gust & Flocking Controls
Steer the migration across wilderness flyways using intuitive drawing gestures and standard hotkeys:
- Click / Drag (Pointer): Draws a flowing wind streamline across the sky. The length, curvature, and speed of your gesture imparts continuous aerodynamic acceleration to nearby birds.
- Spacebar: Awakens the flock from ready perches, confirms successful chapter migration, or advances to subsequent flyways.
- P: Pauses simulation physics, allowing you to survey approaching storm boundaries and plan wind corridors.
- R: Restarts the current chapter, gathering the full starting flock back at the migration origin.
| Player Action | Input Key / Touch | Aerodynamic Effect |
|---|---|---|
| Draw Wind Streamline | Left Click + Drag | Channels airflow vectors; accelerates birds along path. |
| Pause Migration | P | Freezes avian physics to examine obstacle positioning. |
| Advance / Confirm | Space | Launches flock flight or confirms arrival at beacon. |
| Restart Chapter | R | Restores full flock count and resets weather patterns. |
How to Clear Chapter 4 (Surviving the Night Fields)
Chapter 4 takes your flock across the dark Night Fields, where ambient visibility drops and predatory hawks dive aggressively at dense bird clusters. Rookie shepherds make the mistake of drawing massive, high-speed gusts that pack the entire flock into a tight, frantic ball. While this keeps the birds together, the high density acts as an irresistible magnet for diving hawks, resulting in devastating flock losses.
The winning approach is gentle, staggered corridor drafting. Instead of squeezing the birds into a tight clump, draw long, sweeping S-curves that stretch the flock into an elongated slipstream line. Whenever a hawk screeches and begins its dive, draw a quick, sharp lateral puff to deflect the leading birds sideways. The predator plunges harmlessly through the gap, allowing the rear formation to cruise safely past toward the glowing beacon.
Migration Routes for Later Chapters
Later stages introduce jagged sea cliffs, high-altitude mountain downdrafts, and turbulent storm fronts that require attentive vector steering:
- The Sea Cliffs (Chapter 2): Ocean updrafts push birds toward rocky cliff walls. Draw steady downward-angled gusts along the shoreline to keep the flock safely over open water.
- The Highlands (Chapter 3): Freezing mountain downdrafts drain bird flight stamina. Draw short, rapid upward gusts underneath the flock to provide thermal lift over rocky peaks.
- The Breeding Grounds (Chapter 5): The final migration requires navigating through twin rotating storm cells. Thread the needle by drawing a perfectly straight, high-velocity jet stream directly between the two vortexes.
Wind Currents & Flocking FAQ
Why do my birds sometimes scatter when I draw a wind gust?
Drawing a stroke directly through the center of the flock at an awkward angle forces birds apart due to collision separation rules. Always begin your stroke slightly behind the flock, curving smoothly in the direction you want them to travel.
What happens when birds fly through a dark storm cloud?
Storm cells contain violent turbulence that damages feathers and scatters flock cohesion. Sustained exposure causes birds to drop out of migration. Steer wide arcs around storm boundaries whenever possible.
Can lost birds re-join the main flock?
Yes, stray birds that become separated will actively seek out the largest nearby group thanks to flocking cohesion. Use a gentle lateral wind stroke to nudge stray flyers back into the main slipstream.
Built with pure vanilla HTML5 canvas and standard Web Audio (no external engines or heavy libraries).