UNPKG

phaser

Version:

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

15 lines (14 loc) 1.22 kB
/** * @typedef {object} Phaser.Types.GameObjects.SpriteGPULayer.MemberAnimation * @since 4.0.0 * * @property {number} [base=0] - The base value of the animation. * @property {number|string} [ease=0] - The ease value of the animation. This must be a key or value of `SpriteGPULayer.EASE`, e.g. 'Linear', 'Quad.easeIn', etc. * @property {number} [amplitude=0] - The amplitude of the animation. * @property {number} [duration=0] - The duration of the animation, in milliseconds. Must be non-negative. * @property {number} [delay=0] - The delay of the animation, in milliseconds. * @property {boolean} [loop=true] - Whether the animation loops from 0-1 (optionally using yoyo from 0-1-1), or continues beyond 1. Non-looping animations can be useful for one-off particle effects. * @property {boolean} [yoyo=true] - Whether the animation runs backwards when it completes. If false, it starts over from the beginning. * @property {number} [gravityFactor=1] - The gravity factor of the animation. This is used instead of `amplitude` if the ease is 'Gravity'. * @property {number} [velocity=0] - The velocity of the animation. Must be an integer. This is used instead of `amplitude` if the ease is 'Gravity'. */