Phaser. Particles

new Particles(game)

Phaser.Particles is the Particle Manager for the game. It is called during the game update loop and in turn updates any Emitters attached to it.

Parameters:
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source - particles/Particles.js, line 14

Classes

Arcade

Members

emitters :object

Internal emitters store.

Source - particles/Particles.js, line 24

game :Phaser.Game

A reference to the currently running Game.

Source - particles/Particles.js, line 19

ID :number

-

Source - particles/Particles.js, line 30

Methods

add(emitter) → {Phaser.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:
Phaser.Emitter -

The emitter that was added.

Source - particles/Particles.js, line 36

remove(emitter)

Removes an existing Particle Emitter from the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

The emitter to remove.

Source - particles/Particles.js, line 50

<internal> update()

Called by the core game loop. Updates all Emitters who have their exists value set to true.

Internal:
  • This member is internal (protected) and may be modified or removed in the future.
Source - particles/Particles.js, line 61
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Fri Apr 22 2016 15:11:51 GMT+0100 (GMT Daylight Time) using the DocStrap template.