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

Dog — pet behavior simulation

A dog on an open lawn that reads your cursor: follows, gets excited, chases its tail, fetches the ball you knock, rolls over when petted, digs when bored.

How it works

An open lawn with a dog. The cursor is you; the dog reads what you do and answers.

- Move: it notices only after you've been away about 2 seconds, then walks over at an easy pace, stands a moment and sits. It glances at the cursor about twice a second and turns gradually, so if you change direction it curves round instead of cutting straight across. - Shake the cursor fast near it: it gets excited, hops and barks; keep going and it does zoomies around you. - Circle around it: it chases its tail. - Press and hold on it: petting. Hold longer and it rolls onto its back. - There is one ball on the lawn. Brush it with the cursor and it gets knocked the way you were moving: it bounces, rolls, slows and stops. The dog runs after it, picks it up and walks it back to you. It drops the ball when it reaches you, or after 5, 6, 7 or 8 seconds (picked at random each time), whichever comes first. - Stay still or leave: it sniffs around, digs (the holes stay for the visit), chases butterflies, lies down.

Things turn up on the lawn, one at a time, and only once you've held the cursor still for 2 seconds:

- A squirrel runs in, stops, darts about. The dog goes for it and it bolts off the edge of the screen. - A white cat strolls in and sits. When the dog gets close it hisses and runs off. - A bird lands and pecks. The dog creeps up, then charges; the bird flies off. - A frog pops up and hops around, hopping away from the dog, and eventually off the lawn. - A bone gets lobbed in. The dog picks it up, carries it somewhere, digs a hole, drops it in and fills the hole back in, leaving a mound. If you knock the ball meanwhile, it drops the bone and fetches; once nothing else is going on it goes back to the bone where it left off.

Sometimes nothing comes. If the lawn stays quiet for a while and you're not moving, the dog falls asleep.

Each visitor is dropped from memory once it leaves the screen, and the bone once it's buried. Only one exists at a time; holes, paw prints and particles are capped.

Butterflies drift around and keep away from both of you. When the dog lunges at one it often gives up on the lawn and flutters off the side of the screen with the dog after it; a new one drifts in later. No goal; the dog only plays when you do something. Why the earlier toy-puzzle version was dropped: docs/dog_iterations.md.

Related simulations

Categories: Life & nature.