Inspiration

The CamHack 2026 theme is Out of sync. Bennett Foddy's CLOP (2012) has one person running a horse with four fingers. We split that horse between four people: each player is one leg, and the only way to move is to stay deliberately out of sync with each other.

What it does

Quarter Horse is a party game. Each player controls one leg of a horse: hold your key to plant the hoof and push, let go to lift the leg and swing it forward. The horse only walks while the four of you stay out of sync, each a quarter beat after the last. Lift both front legs together and it falls on its face; lift both legs on one side and it rolls over; hold a leg down too long and it snaps.

You walk the horse about 78 m through Cambridge: down King's Parade and Trinity Street, over the Cam, across the Backs and Market Square, into the Guildhall and onto the CamHack podium. A fall is Game Over, but you can carry on from the last checkpoint (every 5 m). Time and falls add up to a score and a grade, from D Pantomime Horse to S Thoroughbred. Hard mode adds pigeons, squirrels and bicycle wheels to jump.

Three ways to play, with bots filling in any legs nobody takes:

  • Keyboard: 0 to 4 people at one keyboard (Z, M, Q, P). 0 players = the horse walks itself as a demo.
  • Phones: scan the QR code on the big screen and pick a leg. Your phone becomes one big button.
  • Cameras: one laptop with a webcam per player. Make a fist to hold, open your hand to let go.

How we built it

  • Physics, not animation. The horse is one rigid body on four spring legs, stepped at a fixed rate. There is no "in sync = fall" rule: the horse falls because nothing is holding it up.
  • Bots that listen. Gait recognition estimates the humans' period and phase; bot legs phase-lock to that rhythm and fill in the walk (or trot) around them.
  • A coach shows whose turn it is and warns before a leg snaps or too many legs are in the air.
  • A live commentator (browser speech synthesis) calls the landmarks, the falls and the finish.
  • Footfall music: each leg plays one note of a chord, so a good walk sounds like a tune and three feet landing at once sound like a clang.
  • Instant replay of every fall, slowed down, from a swinging camera.
  • A textured, rigged horse posed every frame from the simulated hooves, in a low-poly Cambridge with an interactive title island.

Tech: TypeScript, Vite and three.js in the browser. A small Node server serves the game and relays phone input over WebSockets, measuring each phone's latency and clock offset. Camera players stream video to the big screen peer-to-peer over WebRTC, and hand tracking runs in the browser with MediaPipe HandLandmarker. Hosted on Render.

Challenges we ran into

  • Making falls emerge from physics alone while keeping the horse walkable for four humans with real reaction times.
  • Phone controllers over venue Wi-Fi: latency and clock offset per phone, reconnecting to the same leg after a drop.
  • Robust fist / open-hand detection from a webcam, with debouncing so a flicker doesn't drop a leg.

Accomplishments that we're proud of

Four strangers can pick up a phone or raise a fist and, within a minute, be laughing as a horse faceplants in front of King's College, and then actually get it to the podium.

What we learned

Coordinating out of sync is much harder than coordinating in sync, for players and for a four-person dev team alike.

What's next for Quarter Horse

More courses, online play across locations, and more ways to fall over.

Credits

Race horse: "Bay Horse" by Grab3D (CC0). Cambridge scenery and obstacle art from the team's CamhackCinematic Unreal project. Hoof and neigh sounds: BigSoundBank (CC0). Menu music: Vivaldi, Spring, from Wikimedia Commons. Inspired by Bennett Foddy's CLOP.

Play it: https://quarter-horse.onrender.com (best in Chrome on a laptop; phones and webcams are the controllers).

Built With

Share this project:

Updates

Submission history