q5play
    Preparing search index...

    Class Anis

    Stores animations.

    Used internally to create sprite.anis and group.anis.

    In instances of this class, the keys are animation names, values are Ani objects.

    Index

    Constructors

    Properties

    cutFrames: boolean

    Cuts sprite sheet frames into separate images, instead of rendering sections of the sprite sheet.

    Avoids edge bleeding artifacts caused by rotation and scaling, but uses more memory and may cause longer load times.

    endOnFirstFrame: boolean
    frameDelay: number
    frameSize: string

    Frame size of the animations in the collection, in the format "WIDTHxHEIGHT", for example "32x32".

    h: number
    height: number
    looping: boolean
    offset: { x: number; y: number }
    playing: boolean
    scale: number | { x: number; y: number }
    spriteSheet: Image

    The sprite sheet image used by the animations in the collection.

    w: number
    width: number