@moxijs/core - v0.3.4
    Preparing search index...

    Class TextureFrameSequences

    Manages frame sequences for animated sprites Provides utility functions for working with sprite sheet animations

    Index

    Constructors

    Methods

    • Add a new animation sequence

      Parameters

      • name: string

        Unique identifier for the sequence

      • frameIndices: number[]

        Array of frame indices from the texture atlas

      • animationSpeed: number = 1

        Speed of animation (frames per ms)

      Returns void

    • Get a specific frame by index

      Parameters

      • index: number

      Returns Texture<TextureSource<any>>

    • Get a specific frame from a sequence by index

      Parameters

      • sequenceName: string
      • frameIndex: number

      Returns Texture<TextureSource<any>>

    • Get all frames for a sequence

      Parameters

      • name: string

      Returns Texture<TextureSource<any>>[]