Particles.Arcade.Emitter#explode()

explode(lifespan, quantity) → {Phaser.Particles.Arcade.Emitter}

Call this function to emit the given quantity of particles at all once (an explosion)

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

How long each particle lives once emitted in ms. 0 = forever.

quantity number <optional>
0

How many particles to launch.

Returns

This Emitter instance.

Source code: particles/arcade/Emitter.js (Line 438)
doc_phaser
2017-02-14 10:57:18
Comments
Leave a Comment

Please login to continue.