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

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

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 47

<internal> update()

This method is deprecated and should not be used. It may be removed in the future.

Updates all Emitters who have their exists value set to true.

Phaser no longer uses this method; Emitters receive updates via Phaser.Stage#update instead.

Deprecated / Internal: - This member is internal (protected) and may be modified or removed in the future. - Deprecated: Yes

Source - particles/Particles.js, line 56