@koreez/phaser2-animate
Version:
15 lines (14 loc) • 787 B
TypeScript
import { Animate } from "./Animate";
export interface IAnimateCreator extends Phaser.GameObjectCreator {
/**
* Create a new Sprite with specific position and sprite sheet key.
*
* @param x X position of the new sprite.
* @param y Y position of the new sprite.
* @param animationKey The json used as a data by this animate object during rendering.
* @param textureKey The image used as a texture by this display object during rendering. If a string Phaser will get for an entry in the Image Cache. Or it can be an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.
* @param loop
* @return the newly created animate object.
*/
animate(x: number, y: number, animationKey?: any, textureKey?: any, loop?: boolean): Animate;
}