Case study · 2026
Your Friends Hate You
A party game for up to 5 friends: one crosses a cartoon forest to the exit, the others hide in it as trees, floors and guns. Online, in the browser, nothing to install.
- 2026
- Three.js
- Cloudflare Workers
- Durable Objects

- 5
- players per room
- 3
- maps
- 8
- animated characters
- 25
- commits in 4 days
The game
One player is the Victim and walks a cartoon forest to the exit. Everyone else is a Hater: a Tree that falls on them, the Floor with hidden spikes and holes, or a Gun hiding in the bushes that shoots and lays tripwires. Chests give coins and a respawn point, and coins buy upgrades.
Maps and characters
Three maps (Sunny Steps, Autumn Cliffs, Frozen Maze) and eight animated characters from free CC0 packs, recoloured in the game, with ten animations each. A round lasts three minutes; the host picks 1 to 10 rounds per match.
Online rooms
Each room is its own Cloudflare Durable Object that relays the players' state, about 30 times a second. One player hosts the match, and when they leave the longest-connected player takes over. Private rooms start once at least two people are ready.
Bots
Playing alone, bots take the free roles. The Victim bot follows a precomputed distance map toward chests and the exit; Floor bots plant traps ahead of the Victim, and Gun bots string wires 3 to 12 metres away.
Making it light
The whole game is one HTML file on three.js, with no build step. Scenery is instanced, holes in the floor are cut with the stencil buffer, trees between the camera and the player turn see-through, and the download was cut by about 2.4 times, with a loading bar that counts real megabytes.