← PROJECTS / 04
LIVE

Movie Night Wheel

Four movies, one wheel, every phone in the room watching the same spin land on the same title at the same time.

1 · SETUP SCREENHOST ONLY
Movie 1: The Thing
Movie 2: Paddington 2
Movie 3: Sicario
Movie 4: Spirited Away
2 · EVERY SCREEN, LIVEBROADCAST
spin-start → identical wheel animation on every device
SERVER PICKS THE WINNER, BROADCASTS THE TARGET ANGLE
spin-result → scores update, same wedge lit on every screen
FIRST MOVIE TO 4 WINS BECOMES CHAMPION
0
DATABASE ALL STATE IN MEMORY
4
MOVIES FIRST TO 4 WINS
1
SERVER OWNS THE WHEEL ANGLE
CLIENT
Personal project
PLATFORM
Node.js + Express + Socket.IO
ROLE
Designer + builder
TEAM
Solo
HOST
Enter four titles
Any device can start the wheel, any device can spin it
SERVER
Compute angle, broadcast
computeTargetAngle() picks the winner and the rotation for everyone
ALL CLIENTS
Animate, then snap
Every screen eases to the same angle and locks to the server's final value
server.js holds the entire game in one in-memory object: movie titles, scores, and the wheel's current angle. There's no database, because there's nothing worth persisting between games. index.html is the whole client: canvas wheel, animation loop, and socket handling in one file.
Movie Night Wheel with four real movie titles loaded onto the color-coded wheel, live viewer count, and the scoreboard tracking wins per title.
SCREENSHOT: FOUR-MOVIE WHEEL READY TO SPIN
The Movie Night Wheel setup screen with four empty movie-title inputs and the live viewer count before a spin starts.
SCREENSHOT: SETUP SCREEN WITH FOUR MOVIE TITLE INPUTS

The actual hard part wasn't drawing a wheel or animating a spin. It was keeping the angle honest across devices that joined at different times. The server always knows where the wheel currently sits and computes each spin's rotation as a delta from that position, not from zero, so a second or third spin lands on the wedge it's supposed to regardless of how the wheel is currently rotated.

The first version got this wrong in a way that only showed up with more than one screen open. Clients never pulled their local angle from the server, so a phone that joined late started at angle zero while the server was computing deltas from wherever the wheel actually was, and different screens would show different movies winning the same spin. The fix made the server's angle the only truth: clients resync it on every connection or reset, and snap to the server's exact final angle the moment their own animation ends, so a late-joiner or a reconnect never drifts out of sync with the room.

Node.js + Express
static file serving + game server
Socket.IO
real-time broadcast to every connected device
Canvas API
wheel rendering and spin animation
Need something built for a room full of people at once?
Thirty minutes, no pitch. We'll figure out if real-time is actually the hard part.