pixi-reels
All recipes

Hold & Win: swap a symbol in place (coin → MINI → MAJOR)

board.setSymbolAt(cell, id, data) re-places one cell with a different symbol — a coin climbs the jackpot tiers — and rewrites that cell's ledger entry, leaving every other coin exactly where it was.

Loading recipe…

Press Run. The marked coin climbs coin → MINI → MAJOR on each press — swapping its actual skeleton art — while the three neighbouring coins never move.

One cell, new symbol, same grid

Changing a coin into a jackpot isn’t a re-spin and shouldn’t disturb the board. board.setSymbolAt(cell, id, data) re-places just that cell with a different registered symbol and updates its ledger entry:

const sym = board.setSymbolAt(cell, 'jackpot_major', { value: 500, kind: 'major' });
sym.playWin();                 // the new symbol is live — animate it
paintLabel(cell, 500);         // repaint from the new data

Under the hood it places the new id on the cell’s reel (so the engine builds the new symbol instance) and, if the cell is locked, rewrites lockedCoins to the new { id, data } — so any total you compute from the ledger stays correct. Every other cell is left alone.

The three tiers here are the same jackpot skeleton registered under three ids with different tier-word idle loops (mini_x / major_x); swapping the id swaps which idle the coin wears.