UNPKG

pixi-fusion

Version:

This module offers a set of common components needed for playing games.

11 lines (10 loc) 500 B
import { AnimatedSprite, AnimatedSpriteOptions, SpritesheetData } from "pixi.js"; type UseAnimatedSpriteOptions = Omit<AnimatedSpriteOptions, "textures" | "texture"> & { texture: string; animation: string; spritesheet: SpritesheetData; animationSpeed: number; isPlaying: boolean; }; export declare const useAnimatedSprite: ({ texture, spritesheet: spritesheetJSON, animation, animationSpeed, isPlaying, ...options }: UseAnimatedSpriteOptions) => AnimatedSprite | null; export {};