This plugin creates particle effects based on JSON data generated by Phaser Particle Editor
<script src="//cdn.jsdelivr.net/npm/@koreez/phaser-particle-editor-plugin/dist/plugin.min.js"></script>
$ npm i -g npm
$ npm i --save @koreez/phaser-particle-editor-plugin
var ParticleEditorPlugin = require("@koreez/phaser-particle-editor-plugin");
import ParticleEditorPlugin from "@koreez/phaser-particle-editor-plugin";
You need to load the plugin in your game. This is done just like any other plugin in Phaser. So, to load the plugin, include it one of the Phaser States.
game.plugins.add(ParticleEditorPlugin);
The plugin will patch your Phaser game with additional add / make methods so this plugin fits up in Phaser like any normal object.
// x - any
// y - any
// data - should be already loaded JSON key or existing object based on Particle Editor data
// group - parent container
game.add.particleEffect(x, y, data, group);
// or
game.make.particleEffect(x, y, data);
We have a forum so you can always be up to date with latest news!
Coming soon!