Class: Particles

Particles

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:

Members

emitters

Properties:
Name Type Description
emitters Description

Description.

Source:

ID

Properties:
Name Type Description
ID number

Description.

Default Value:
  • 0
Source:

Methods

add(emitter) → {Phaser.Emitter}

Adds a new Particle Emitter to the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

Description.

Source:
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:

<protected> update()

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

Source:
Phaser Copyright © 2012-2013 Photon Storm Ltd.
Documentation generated by JSDoc 3.2.0-dev on Thu Oct 03 2013 01:18:44 GMT+0100 (BST) using the DocStrap template.