AmoyPixiParticles
amoy-tool-plist2pixi-json
use this lib you need this tool amoy-tool-plist2pixi-json
Please see the examples for various pre-made particle configurations.
let jsonData = a json data form app loaded
let config = jsondata.config;
let textureImge = "assets/"+jsondata.texture;
var emitter = new PIXI.particles.Emitter(
container,
[IXI.Texture.fromImage(textureImge)],
config
);
var elapsed = Date.now();
var update = function(){
requestAnimationFrame(update);
var now = Date.now();
emitter.update((now - elapsed) * 0.001);
elapsed = now;
};
emitter.emit = true;
update();
License
Released under the MIT License.