Multiplayer Three.js build
One Brick School
A month-long multiplayer build on the web: every visitor makes one clay brick, lays it in the wall of a real-scale school campus and signs it.

- Role
- Idea, design, 3D, front-end and the realtime game server. Personal project.
- Stack
- Three.jsWebGLGTAOCloudflare WorkersDurable ObjectsWebSocketsNode.js
- Live
- one-brick-school.vercel.app ↗
What it is
The campus has two classroom blocks, a library, a dining hall, two dormitories and five teacher houses, 3,528 pieces in total. Nobody can build it alone: each visitor lays one piece, then waits before the next.
Every piece not laid yet stands in its place as translucent clay, so the whole school is visible from day one and each new brick makes it solid.
How it's built
- A Sahel landscape in golden-hour light. Terrain with mesas, sky and clouds, wind-blown grass, acacias and clay site props, with clay materials and post-processing: GTAO, depth of field and grain.
- A cinematic entry. The camera comes in through parting clouds, then hands over to orbit controls: drag, pan, zoom to cursor, double-click to fly in, or the keyboard.
- Making a brick is the game. Pour, mix, fill, pack and lift; choose a spot, lay mortar, set the brick and sign it with your name and country.
- One world, one server. A Cloudflare Worker with a single Durable Object holds the whole world, and every brick is its own storage record. Clients talk to it over WebSockets, and the campus blueprint is shared code, so every slot has the same id on both sides.
- Building together. Anyone can help at someone else's workshop and gets their name on the piece. Heavy pieces need two pairs of hands. Finished rows flash and show which countries built them, and an invite link opens the site on a friend's brick.
- Safe by default. A per-player and per-IP cooldown, and a word filter for names, notes and chat where the client warns and the server decides.



