Log inGet started
World

Butter Up

Branchmain
Branchesmain
Commit6b00375f45

README.md

ButterPan

Runs one pan of Butter Up on the entity it sits on (the pan's pivot: the centre of its inner floor). It reads the tilt (the pointer's place over the screen, or the tilt control from keys, pad or touch), eases the pan toward it, steps the butter simulation (butterUp.panSim), moves, squashes and shrinks the pat and its skirt (children of the pivot), and draws the coating with a live texture on a glaze mesh it makes under the pivot.

When the pan is fully coated it fires panDone (seconds taken, pats used, the share of the last pat left, whether a golden pat finished it), sweeps a shine across the butter, wipes the pan and drops the next pat.

setStats(stats) replaces the numbers the pan plays by (see panSim's Stats, plus maxTilt in degrees, tiltResponse in seconds and goldenChance 0..1); it takes effect from the next pat.