Ollie · Docs · 17 pages

Trail map

Page 08 of 17

Racing a mate

How two riders share a hill, what passes between their browsers, and what a win is worth.

Two riders, one hill. Open a room, send the link, and the first one through the gap takes it.

Implemented Racing needs the same storage as the score board. Where none is connected, the button says so and opens nothing.

How a race runs

  1. One rider opens a room and gets a link with a six-character code. The other opens the link and takes the second seat.
  2. The host starts the race. Both browsers count down to the same moment on the server's clock and drop in together.
  3. Both get the same hill: the same obstacles, kickers, ice and crates, laid out from one shared number.
  4. You see the other rider on the road with their name over their head, on the progress bar, and as a gap in metres.
  5. Through the gap beats flattened. Two riders through are split on time; two flattened are split on distance.

Each rider has their own snowball and their own obstacles. You cannot knock each other off, and what one rider smashes is still standing for the other.

Name tags

Connect a wallet and your tag is your address, shortened. Without one you ride as a guest with a random tag. The address is read from the wallet, not signed for, so a tag is a label and not proof of who is riding.

What passes between the two browsers

  • Through this site. Each browser leaves its rider's position in the room a few times a second and picks up the other's. Rooms close by themselves half an hour after the host leaves.
  • Directly, where possible. The two browsers also try to open a direct line to each other (WebRTC). When it opens, positions go straight across, which is smoother and costs the site nothing.
  • What a direct line reveals. As in any peer-to-peer game, each browser can see the other's IP address, and public address-lookup servers run by Google and Cloudflare are asked to help the two find each other. Race people you would share a link with.

What a win is worth

Nothing but the win. Each browser reports its own rider, so a race between friends is fair and a race against a determined cheat is not.

Not planned No wagers, prizes or payouts are tied to races.