new Emitter(game, x, y, maxParticles)
Emitter is a lightweight particle emitter that uses Arcade Physics.
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 accordingly.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
game | Phaser.Game | Current game instance. | ||
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. |
- Source code: particles/arcade/Emitter.js (Line 20)
Please login to continue.