emitter(x, y, maxParticles) → {Phaser.Emitter}
Creat a new Emitter.
An Emitter is a lightweight particle emitter. It 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 accorindgly.
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
 Phaser.Emitter - 
 The newly created emitter object.
- Source code: gameobjects/GameObjectCreator.js (Line 250)
 
Please login to continue.