phaser-particles
Installation
SKILL.md
Phaser:粒子系统
适用版本:Phaser 3.90.0
基本用法
// 创建粒子发射器
const particles = this.add.particles(x, y, 'texture', {
speed: { min: 50, max: 200 },
scale: { start: 1, end: 0 },
alpha: { start: 1, end: 0 },
lifespan: 1000, // 粒子生命(ms)
gravityY: 300,
frequency: 50, // 每 50ms 发射一个粒子
blendMode: 'NORMAL'
});