@koreez/phaser-particle-editor-plugin

1.0.0-alpha.21 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i @koreez/phaser-particle-editor-plugin

Weekly Downloads

1

Version

1.0.0-alpha.21

License

MIT

Unpacked Size

174 kB

Total Files

19

Last publish

Collaborators

  • arturvardanyan
  • gnun
  • saqsun
  • avagyanah