Most of these demos are built on a pin. You pin a cell once and the engine draws the pinned symbol over the spinning reel, counts down its turns and removes it when they run out. The wilds come first, then multipliers, held wins and mystery reveals.
Wilds#
Sticky wild#
The smallest pin. When a wild lands, pin its cell with turns: N. The engine keeps it on screen while the reel spins underneath and counts the turns down, so there are no extra sprites to manage and nothing to write into the next result grid.
Loading recipe…
Expanding wild#
A wild lands and the whole reel turns wild for N spins. The pins expire on their own when the turn counter reaches zero.
Loading recipe…
Walking wild#
A wild moves one reel left on each spin with reelSet.movePin(). The flight hooks are where a Spine symbol switches to its run animation.
Move pins one at a time with await, not with Promise.all. Two pins moving to the same cell throws.
Loading recipe…
Multipliers#
Multiplier wild#
Each wild carries its own multiplier in the pin payload. A badge with the value sits over the cell, and the win evaluation reads pin.payload.multiplier.
Loading recipe…
Positional multiplier cells#
The multiplier belongs to the cell, not the symbol. Any symbol that lands on a marked cell boosts the wins that pass through it.
Loading recipe…
Sticky win respin#
Winning symbols lock for N respins while the rest of the grid spins. Pinning a cell that is already pinned resets its counter, so each new win restarts the window.
Loading recipe…
Mystery symbols#
Mystery reveal#
Mystery symbols land, then all of them turn into the same random symbol. The reveal uses 'eval' pins, which clear themselves on the next spin.
Loading recipe…
Animated swap#
setSymbolAt swaps a symbol at once. swapSymbols plays the old symbols out, swaps them, holds, and plays the new ones in, with a stagger on each side.
await reelSet.swapSymbols(
[0, 1, 2].map((cell) => ({ reel: 1, cell, id: 'WILD' })),
{ outDelay: (_, i) => i * 0.06, holdMs: 200, inDelay: (_, i) => i * 0.09 },
);
It also handles the details a hand-written reveal tends to miss. It raises the zIndex so an entrance that overshoots its cell is not clipped by the next cell, and it hides the new symbol after the swap, because re-activation resets alpha to 1 and the new art would show for a frame before its entrance.
Each step can be left out. Pass skipOut when the art plays its own Spine out track, skipIn to leave the cells hidden and reveal them yourself, and onSwapped for a step in the middle that has to wait for an animation. playIn() and playOut() are the per-symbol hooks underneath, on the same contract as playDestroy. Override them for entrances and exits that suit your art.
Cells are checked before anything starts, and an abort still performs the swap, so the board always matches the result. It works only at rest and only on single-cell symbols. A big symbol covers cells the frame layer reserves, so revealing one is a setResult or setShape job.
Loading recipe…
Spine mystery reveal#
Mystery bushes land and burst. A Spine overlay plays the reveal while activate() swaps the symbol underneath, so the player never sees the swap.
Loading recipe…
Other reel directions#
Pins are in index space, so the pin code does not change when the reels run sideways or upward.
Expanding wild sideways#
The expanding wild on .orientation('horizontal'). The code is the same as above. The expansion fills a screen row instead of a column.
Loading recipe…
Sticky wilds on reels that spin up#
A .direction('reverse') set. The reels travel upward through three respins while the pinned wilds hold their cells, and new wilds that land on the way stick too.
Pin coordinates are geometric. Cell 0 is the top cell whichever edge the strip feeds from.
Loading recipe…