ParticlesManager13 / 15

Particles when cells clear

Show a flash at each cleared cell.

When a line clears, run the action with the cell coordinates. With space: 'local', the coordinates are relative to the effect container. BlockPuzzleBoardEffectsComponent.ts

this.trackTask(
  this.node.runAction(this.config.actionId, {
    position: this.cellPosition(cell.row, cell.column),
  }),
);
Cleared cellCalculate its coordinates
PlayParticlesActionReads the particle settings
FlashAppears at the cell

Sources ↗

Block Puzzle · line-clear-particles.json↗The Block Puzzle flash preset.