PR pixi-reels
Cookbook

Small recipes, one mechanic each.

Each page is a focused how-to: the minimum code to make a single mechanic work, plus a live mini-demo you can replay.

Big symbols (N×M blocks)

Single symbol that occupies an N×M block of cells. 2×2 bonuses, 3×3 giants, 1×3 bars.

Anticipation, skip & respin

Slow a reel, slam-stop, near-miss, single-reel respin.

Anticipate a reel

Slow a specific reel to build tension before it lands.

Open recipe

Peek symbol from buffer-above

Pre-fill the buffer-above slot so a teaser symbol sits just out of frame, visible during scroll-in on the next spin.

Open recipe

Anticipation teaser

Pair setAnticipation with a buffer-above prefill so the next cell to scroll into view on a slow reel is a caller-chosen symbol.

Open recipe

Slam-stop

Let the player smash the button to land the reels now.

Open recipe

Fake a near-miss

Place N-1 scatters plus anticipation on the reel that "almost" landed one.

Open recipe

Nudge a reel

After landing, shift one reel down or up by N positions to reveal caller-supplied symbols.

Open recipe

Spotlight after a nudge

Land a near-miss, parallel-nudge three reels to complete a wild line, then run SymbolSpotlight on the new winners. Chains nudge() and spotlight.show() in their canonical order.

Open recipe

Skip an in-flight nudge

reelSet.skipNudge(col) fast-forwards a running nudge tween to its landed position. The original nudge() promise resolves normally. success path still runs.

Open recipe

Abort a nudge

Cancel a running nudge via NudgeOptions.signal. Strip still snaps to landed; nudge() rejects with AbortError; nudge:cancelled fires on the bus.

Open recipe

Staggered nudge. wave reveal

Promise.all + NudgeOptions.startDelay dispatches every reel's tween concurrently with a per-reel offset. Total wall time is (cols.length - 1) * stagger + duration.

Open recipe

Nudge through a big symbol

A 1xH block on the target reel is nudged through as a unit. Survival formula enforced; cross-reel (w>1) blocks throw.

Open recipe
Symbol authoring

Texture atlases, animated sprite sequences, AI-generated art.