ants black hole boids dog galactic address sheepdog snowflake solar system sun attraction
move, click, tap
random
crsor  /  all sims  /  sheepdog

Sheepdog — herding simulation

Cursor is the dog. Sheep flee it; once inside the pen they settle.

How it works

Cursor is the dog. Pen the whole flock to end the day; progress (day, flock size, best day) is saved in localStorage.

Herding. Sheep inside the dog's flight zone (120px, 190px while barking) move away from it; under pressure they bunch toward the herd center and align with neighbours, so the flock moves as a unit. Calm sheep graze: they stand still, then take a few steps. Lambs stay near the ewes.

Solid world. Fences, hedges, riverbanks and rocks are wall segments. Every body moves in sub-steps no longer than 40% of its radius and slides along walls, so nothing passes through. Sheep also look ahead and veer along walls instead of pressing into them. The pen can only be entered through its gate.

Days. Every day is a new scene (spring meadow, summer field, autumn pasture, heather moor, misty highland, frosty morning, cycling) and a new seeded layout: day 1 open, day 2 a hedge with one gap, day 3 a river with one bridge, then mixes of hedges, rivers, rocks and fence wings. Every layout is flood-filled to make sure the gate is reachable. Each completed day adds lambs (about one per five sheep, flock capped at 40). Difficulty does not ramp with the day count.

Housing. The pen grows with the flock and upgrades its look: wooden pen, white picket fold (16+), stone fold (25+), royal fold with a barn (33+).

Foxes. From day 3, dusk falls 20s into the day and foxes come while someone is playing: one per ten sheep (at least one), so losing sheep means fewer foxes. The first wave arrives together; foxes driven off return 7–11s later, up to twice each. They path around fences, hedges, rivers and rocks on a 12px grid flood fill, stalk the sheep farthest from the dog, charge when the dog is far, pick a sheep up in their jaws and run off the field with it. Getting close or barking makes a fox drop the sheep unharmed. A carried-off sheep leaves the flock for good; if the flock falls below 3 the farm starts over at day 1.

Related simulations

Categories: Life & nature.