@mai3/phaser-sdk
Version:
A UI component library based on the Phaser game engine
15 lines • 505 B
TypeScript
import { BaseButtonConfig } from "../base/BaseButtonConfig";
import { BaseConfig } from "../base/BaseConfig";
export interface SpriteAnimConfig {
key: string;
frameKey?: string;
frames?: number[];
keys?: string[];
frameRate: number;
repeat: number;
}
export interface SpriteConfig extends BaseButtonConfig, Omit<Phaser.Types.GameObjects.Sprite.SpriteConfig, keyof BaseConfig> {
animConfigs?: SpriteAnimConfig[];
flipX?: boolean;
}
//# sourceMappingURL=SpriteConfig.d.ts.map