UNPKG

phaser

Version:

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

22 lines (21 loc) 1.61 kB
/** * @typedef {object} Phaser.Types.Tweens.TweenFrameDataConfig * @since 3.60.0 * * @property {any} target - The target to tween. * @property {number} index - The target index within the Tween targets array. * @property {string} key - The property of the target being tweened. * @property {number} [duration=0] - Duration of the tween in milliseconds, excludes time for yoyo or repeats. * @property {number} [totalDuration=0] - The total calculated duration of this TweenData (based on duration, repeat, delay and yoyo) * @property {number} [delay=0] - Time in milliseconds before tween will start. * @property {number} [hold=0] - Time in milliseconds the tween will pause before running the yoyo or starting a repeat. * @property {number} [repeat=0] - Number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice. * @property {number} [repeatDelay=0] - Time in milliseconds before the repeat will start. * @property {boolean} [flipX=false] - Automatically call toggleFlipX when the TweenData yoyos or repeats * @property {boolean} [flipY=false] - Automatically call toggleFlipY when the TweenData yoyos or repeats * @property {number} [progress=0] - Between 0 and 1 showing completion of this TweenData. * @property {number} [elapsed=0] - Delta counter * @property {number} [repeatCounter=0] - How many repeats are left to run? * @property {Phaser.Types.Tweens.TweenDataGenConfig} [gen] - LoadValue generation functions. * @property {Phaser.Tweens.StateType} [state=0] - TWEEN_CONST.CREATED */