Phaser Particle Editor Plugin Save

This plugin creates particles based on JSON data generated by Phaser Particle Editor

Project README

Phaser Particle Editor Plugin

Build Status David Project status

This plugin creates particle effects based on JSON data generated by Phaser Particle Editor

Getting Started

Installation

Using script tag:

<script src="//cdn.jsdelivr.net/npm/@koreez/phaser-particle-editor-plugin/dist/plugin.min.js"></script>

Using npm:

npm

$ npm i -g npm
$ npm i --save  @koreez/phaser-particle-editor-plugin

Usage

Import the plugin

CommonJS
var ParticleEditorPlugin = require("@koreez/phaser-particle-editor-plugin");
ES2015
import ParticleEditorPlugin from "@koreez/phaser-particle-editor-plugin";

Load the 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.

Create particles

// 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);

News & Community

We have a forum so you can always be up to date with latest news!

Contributing

Coming soon!

Open Source Agenda is not affiliated with "Phaser Particle Editor Plugin" Project. README Source: koreezgames/phaser-particle-editor-plugin

Open Source Agenda Badge

Open Source Agenda Rating