UNPKG

phaser

Version:

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

32 lines (30 loc) 929 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Camera Flash Complete Event. * * This event is dispatched by a Camera instance when the Flash Effect completes. * * Listen for it via either of the following: * * ```js * this.cameras.main.on('cameraflashcomplete', () => {}); * ``` * * or use the constant, to avoid having to remember the correct event string: * * ```js * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.FLASH_COMPLETE, () => {}); * ``` * * @event Phaser.Cameras.Scene2D.Events#FLASH_COMPLETE * @type {string} * @since 3.3.0 * * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on. * @param {Phaser.Cameras.Scene2D.Effects.Flash} effect - A reference to the effect instance. */ module.exports = 'cameraflashcomplete';