1. Project goal
Build an original 3D browser game in which the player tilts a frying pan so a melting cube of butter slides around and coats the whole cooking surface. The butter shrinks as it melts, so the player has to plan the path rather than wander. Each stage presents a new pan; a running timer records how long full coverage takes. In one sentence: steer melting butter across a tilting pan until no bare metal is left.
2. Visual style
Warm, simple, stylised 3D with soft key light and a fixed overhead camera looking almost straight down. Back wall: white subway tiles with light grout; counter: orange-brown wood grain; a black stovetop strip across the middle with a ring-shaped burner grate. The pan is dark grey non-stick with a raised, shaded rim and a long black handle pointing toward the player, casting a soft shadow that moves as it tilts. Butter is a saturated yellow cube; where it has passed, the pan shows a translucent golden-brown coating, while untouched areas stay speckled grey. Tilting must read clearly through foreshortening: the round rim becomes an ellipse and the grate shows beneath it.
UI: a large timer in bold black numerals at top centre with the stage counter (1/3, 2/3, 3/3) beneath it, a round menu button top left and a round control button top right.
Reference: author video 00:00 round pan with first trail, 00:01 tilted ellipse with the butter at the rim, 00:05 almost fully coated pan, 00:06 the heart-shaped pan of stage 3, 00:09 heart pan under glare with a thin uncovered V.
3. World and scene
One kitchen set: stovetop, burner, counter and wall stay fixed while each stage swaps the pan. Stage 1 uses a plain round pan, a later stage uses a heart-shaped pan whose lobes and notch are harder to reach. The butter starts at a set position each stage; as it moves it deposits coating into a coverage map and loses volume. When coverage reaches the target the stage clears and the next pan arrives; if the butter runs out first, the stage can be retried.
4. Asset list
Each item is a separate replaceable model in a named slot.
- pan_shapes: a set of pans (round, heart, and room for more shapes such as square or fish) with matching handle.
- butter_block: the melting cube, ideally with two or three shrink stages or a scale-driven mesh.
- stovetop: cooktop strip and ring burner grate.
- kitchen_set: tiled wall and wooden counter.
- optional props: spatula, salt shaker, a small plate for the result screen.
Keep procedural: the coverage map, the butter trail decal or vertex painting, the tilt physics, melt rate, timer and HUD.
5. Gameplay and feedback
Input: drag on the canvas to tilt the pan toward the drag direction; on phones offer device-orientation (gyro) tilt behind an explicit toggle. Releasing returns the pan slowly toward level. The butter slides according to the tilt with friction, bounces softly off the rim and leaves coating on every cell it passes. Coverage is computed as the share of pan cells coated; show it implicitly through the colour change rather than a percentage bar. The timer starts on first input and stops when coverage hits the target. Results show time per stage and the total; offer retry and a menu with how-to-play.
6. Technical implementation
Reference build: three.js (r128 build) with a single WebGL canvas in a portrait layout. Implement the pan as a mesh with a coverage texture mapped in pan-local UV; each frame, project the butter position into that UV space and paint a soft circle. Tilt the pan by rotating it around the burner centre and derive butter acceleration from the pan normal. Model slots are metre-scaled glTF with Y up; each pan carries a 2D mask of its cooking surface for coverage. Japanese and English interface; author English first. Works in portrait on phones and centred on desktop.
7. Completion criteria
Must work: drag tilt and optional gyro tilt, visible foreshortening of the pan, butter sliding and shrinking, coating trail that stays, coverage-based stage clear, at least three stages including a heart-shaped pan, timer, retry and how-to-play. Match the reference views: round pan with the first trail, a tilted ellipse with butter at the rim, an almost fully coated pan, and the heart pan. Deliver editable source, a start command and a runnable preview; verify that swapping any pan model with its mask keeps coverage correct.