1. Project goal
Build an original 3D browser game where the player cleans dirty floors with a paint roller. Drag the roller across stained tiles; every tile it passes turns glossy clean grey. A coverage percentage climbs to 100 percent and the room is done. Three rooms (kitchen, washroom, warehouse) are played back to back and the combined time is the score. In one sentence: roll every last dirty tile clean as fast as you can.
2. Visual style
Fixed high-angle perspective camera looking down into a narrow room, walls and counters converging toward the back wall. Low-poly props with faceted edges, soft directional light, specular highlights on metal and on cleaned tiles, soft contact shadows where walls meet the floor. Dirty floor: brown square tiles with dark grout and mottled grime. Clean floor: smooth glossy grey with soft, blob-like edges where the roller has passed. The roller has a grey head, metal frame and a wooden handle with a red or pink tip.
HUD: coverage percentage at the top (in the kitchen it is shown on a wall-mounted paper-towel holder), a 'How to play' or menu button top right, a pointing-hand hint before the first drag.
Reference: author video 00:00 washroom at 25 percent, 00:01 an arch stroke at 40 percent, 00:04 handle foreshortened at 57 percent, 00:07 warehouse at 85 percent, 00:09 the last patch at 93 percent.
3. World and scene
Kitchen: long stainless counter with stockpot, cutting board, pans and jars, wood-grain cabinets. Washroom: white wall-mounted sink with chrome tap and bottles, white wall tiles, a door edge. Warehouse: raw concrete walls, a bucket of grey liquid on a ledge, a red cylinder, a yellow-and-black hazard pillar, a roller shutter. Each room has one paintable floor with obstacles the roller cannot pass through. Start: floor fully dirty, 0 percent. Mid: irregular clean strokes with dirty gaps. End: 100 percent, short celebration, next room; after the third room a results screen with total time.
4. Asset list
Each item is a separate replaceable model in a named slot.
- tool_roller: paint roller with head, frame and handle; pivots at the head.
- kitchen_set: counter, cabinets, stockpot, cutting board, pan, jars, paper-towel holder.
- washroom_set: sink, tap, bottles, wall tiles, door.
- warehouse_set: bucket, red cylinder, hazard pillar, roller shutter, concrete ledge.
- floor_tile: the tile mesh or texture used for dirty and clean states.
Keep procedural: the coverage mask, clean-tile gloss, particles, percentage readout and HUD.
5. Gameplay and feedback
Input: press and drag anywhere on the floor; the roller follows the pointer with a little lag and its head paints a swath of fixed width. Touch and mouse behave the same.
Coverage: a render-target mask over the floor records painted area; percentage is the share of floor pixels painted, ignoring areas under fixed props. Small missed specks must be findable.
Progress: reaching 100 percent ends the room; the timer runs across all three rooms. Results show the combined time and a rank, with retry and share.
6. Technical implementation
Reference build: three.js r128 with a perspective camera on a canvas. Implement coverage as a paint mask texture blended between dirty and clean floor materials, sampled at a low resolution for the percentage. Model slots are metre-scaled glTF with Y up; props carry simple box colliders so the roller stops at counters and walls. Japanese and English interface; produce English first. Works in portrait on phones and on desktop.
7. Completion criteria
Must work: start, drag to paint, coverage rising accurately to 100 percent, three rooms in sequence, total time, results, retry. Match the reference views: washroom at about a quarter cleaned, the arch stroke, the warehouse nearly done. Deliver editable source, a start command and a live preview; verify the percentage matches visible coverage and each room's props can be swapped by slot.