Space Blasters Brushing Game
Project Overview
Built for kids (and parents tired of negotiating brushing time). Anyone with a tablet or phone and a toothbrush can play — the game turns the chore of brushing into something kids actually want to do.
A space-themed tooth brushing game that uses the device's front-facing camera to detect brushing motion via frame differencing. Players blast aliens by physically moving their toothbrush — the more motion the camera picks up, the more damage they deal.
The game runs a 2-minute timer split into four 30-second zones (upper left, upper right, lower left, lower right), prompting the player to brush each quadrant. Features include combo multipliers for sustained brushing, a live camera feed behind the game field, background music with a mute toggle, and a scored victory screen with per-quadrant breakdown.
Built in March 2026. Went from idea to live deployment in a single session — concept, code, Cloudflare Workers deploy, and custom domain setup all in one go.
Deployed as a static site on Cloudflare Workers at brush.alexgreimann.com. HTTPS is required for camera access, which Cloudflare handles automatically. Works on any device with a front-facing camera — optimized for iPad use in the bathroom.
Getting kids to brush for a full two minutes — and to actually cover all four quadrants — is a daily battle. Existing brushing timer apps are passive and boring. This turns the timer into an active game where the brushing itself is the controller, so kids stay engaged for the full session.
Also a good excuse to play with the getUserMedia API and real-time frame differencing in the browser — turns out you can build a surprisingly responsive motion tracker with just a hidden canvas and some pixel math.