Class: Particles

Phaser. Particles

new Particles(game)

Phaser.Particles tracks any Emitters attached to it.

Parameters:
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source:
src/particles/Particles.js line 14

Classes

Arcade

Members

emitters : object

Internal emitters store.

Type:
  • object
Source:
src/particles/Particles.js line 24

game : Phaser.Game

A reference to the currently running Game.

Type:
Source:
src/particles/Particles.js line 19

ID : number

-

Type:
  • number
Source:
src/particles/Particles.js line 30

Methods

add(emitter)

Adds a new Particle Emitter to the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

The emitter to be added to the particle manager.

Source:
src/particles/Particles.js line 36
Returns:

The emitter that was added.

Type
Phaser.Emitter

remove(emitter)

Removes an existing Particle Emitter from the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

The emitter to remove.

Source:
src/particles/Particles.js line 47

phaser-ce@2.10.3 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2018-03-22 using Tomorrow.