有教学吗?
我现在的粒子使用方法,想优化性能
var particleSystem = new cc.ParticleSystem(“res/fire.plist”);
particleSystem.attr({x: 500, y: 280});
particleSystem.setAutoRemoveOnFinish(true);
this.addChild(particleSystem, 10);
particleSystem = new cc.ParticleSystem("res/fire.plist");
particleSystem.attr({x: 220, y: 580});
particleSystem.setAutoRemoveOnFinish(true);
this.addChild(particleSystem, 10);
particleSystem = new cc.ParticleSystem("res/fire.plist");
particleSystem.attr({x: 640, y: 730});
particleSystem.setAutoRemoveOnFinish(true);
this.addChild(particleSystem, 10);
particleSystem = new cc.ParticleSystem("res/fire.plist");
particleSystem.attr({x: 90, y: 880});
particleSystem.setAutoRemoveOnFinish(true);
this.addChild(particleSystem, 10);