UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

25 lines (23 loc) 962 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Particle Emitter Death Zone Event. * * This event is dispatched when a Death Zone kills a Particle instance. * * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('deathzone', listener)`. * * If you wish to know when the final particle is killed, see the `COMPLETE` event. * * @event Phaser.GameObjects.Particles.Events#DEATH_ZONE * @type {string} * @since 3.60.0 * * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that owns the Particle and Death Zone. * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle that has been killed. * @param {Phaser.GameObjects.Particles.Zones.DeathZone} zone - The Death Zone that killed the particle. */ module.exports = 'deathzone';