GameObjectFactory#emitter()

emitter(x, y, maxParticles) → {Phaser.Particles.Arcade.Emitter}

Create a new Emitter.

A particle emitter can be used for one-time explosions or for
continuous effects like rain and fire. All it really does is launch Particle objects out
at set intervals, and fixes their positions and velocities accordingly.

Parameters
Name Type Argument Default Description
x number <optional>
0

The x coordinate within the Emitter that the particles are emitted from.

y number <optional>
0

The y coordinate within the Emitter that the particles are emitted from.

maxParticles number <optional>
50

The total number of particles in this emitter.

Returns

The newly created emitter object.

Source code: gameobjects/GameObjectFactory.js (Line 378)
doc_phaser
2017-02-14 10:48:40
Comments
Leave a Comment

Please login to continue.