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. |
Classes
Members
-
emitters : object
-
Internal emitters store.
Type:
- object
-
game : Phaser.Game
-
A reference to the currently running Game.
Type:
-
ID : number
-
Type:
- number
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.
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.