Scribble Party
A real-time multiplayer drawing game for phones, over WebSockets.
How it plays
Scribble Party is a real-time multiplayer drawing game for 2–8 players on phones or laptops. One player at a time calls out a prompt, like “fish tail!” or “spaghetti hair!”, and everyone draws it on their own canvas. The twist: each player’s canvas carries over, so every prompt adds to the same drawing.
- Rooms with a 4-letter code, a live lobby, and turns as the caller: everyone calls once before anyone calls twice.
- 90 kid-friendly prompts in six categories, or the caller types their own.
- A reveal screen that replays each player’s new strokes on top of their earlier drawing, and a final gallery.
The live demo runs on a free tier: the first visit after a quiet spell takes about 30 seconds to wake up.
How it works
A single Node.js process serves the client and runs the WebSocket server on the same port. Each room is a state machine (lobby, caller choosing, drawing, reveal, game over), and the server owns turn order and the timer. If a phone drops its connection, the client reconnects on its own and the server sends the whole game state back. Strokes are stored as 0–1 coordinates rather than pixels, so a drawing scales to any screen and can be replayed.
How I built it
Claude Code worked through a 26-task plan from my design document: the server logic test-first (53 tests), then the client screens one at a time, checked by hand. A smoke test on real phones found the fixes that followed: canvas sizing, caller rotation, and drawings lost when the timer ran out.