pixi-wheels
All recipes

Server, events and debugging

Server, events and debugging. Live wheel recipes built with pixi-wheels.

Server adapters#

Three shapes of response, one adapter each. An adapter is a small serialisable config (by + dotted path), so it lives next to the wheel config.

Loading recipe…

Sound hooks#

Every audio cue as an event listener, on a real audio engine: @schmooky/zvuk plays the Super Wheel’s own sounds (Playson, used with permission): the activation hit, the spin, the anticipation riser, the landing and one win sting per prize tier. The tick volume and pitch follow the ring speed. Sound needs a click: press Spin.

Loading recipe…

Assets provided by Playson

Debug view#

The plain skin plus the live overlay: dividers with angles, the pointer line, the planned landing in yellow, a HUD with state, speed and the current leg. debugArc() prints the same as text in the console.

Loading recipe…

Config round trip#

Build with the fluent API, export the config, rebuild from it. The console shows the JSON.

Loading recipe…