SiliconGhetto Engine API
    Preparing search index...

    Interface AnimationOpts

    Sprite animation configuration.

    interface AnimationOpts {
        frames: number[];
        fps: number;
        loop?: boolean;
    }
    Index

    Properties

    Properties

    frames: number[]

    Array of sprite frame indices

    fps: number

    Playback speed in frames per second

    loop?: boolean

    Whether the animation loops (default: true)