Particles when cells clear
Show a flash at each cleared cell.
Import ParticleEmitterComponent, DisplacementFilterComponent and PlayParticlesAction from @gamedevland/engine/renderers/pixi. They work with Pixi nodes; a Three node component creates Three effects.
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