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) 849 B
/** * @author samme * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Tween Stop Event. * * This event is dispatched by a Tween when it is stopped. * * Listen to it from a Tween instance using `Tween.on('stop', listener)`, i.e.: * * ```javascript * var tween = this.tweens.add({ * targets: image, * x: 500, * ease: 'Power1', * duration: 3000 * }); * tween.on('stop', listener); * ``` * * @event Phaser.Tweens.Events#TWEEN_STOP * @type {string} * @since 3.24.0 * * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event. * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets. */ module.exports = 'stop';