pixi-reels
All recipes

Hold & Win: bonus cells

A few cells are marked as bonus cells from the start; a coin that lands on one flashes the cell active and doubles its value. Positional special cells are pure game state — the board only reports where each coin landed.

Loading recipe…

Press Run. Three cells glow as bonus cells; as coins land, the ones that hit a bonus cell flash it active and land doubled.

Positional rules live in the game layer

The board reports where each coin landed; “this position is special” is your rule. The bonus cells are a Set of cell keys, drawn with the bonus_cell sprite, and the boost is a check in the lock handler:

board.events.on('coin:locked', ({ coin }) => {
  if (bonusCells.has(key(coin.cell))) {
    coin.data.value *= 2;                      // game rule: bonus cell doubles
    swapMarker(coin.cell, 'bonus_cell_active'); // flash + fade the marker
  }
  paintLabel(coin.cell, coin.data.value);
});

The markers ride board.container so they track the board, and they’re cleared the moment a coin claims the cell. Swap the rule for a ×N, a collector flag, or a jackpot tier per position — same hook.