Information used to decide when an animation should be played for a Sprite

interface CreateSpriteOptions {
    animationID: Scriptable<string>;
    animations: CreateSpriteOptionsAnimation[];
    animationStartedAt?: Scriptable<number>;
    coordinates?: CreateSpriteOptionsCoordinates;
    imagePath: Scriptable<string>;
    isGrayscale?: Scriptable<boolean>;
    opacity?: Scriptable<number>;
    palette?: Scriptable<string[]>;
    recolors?: Scriptable<CreateSpriteOptionsRecolor[]>;
}

Properties

animationID: Scriptable<string>

Array of Animations that are able to be indentified by their AnimationID to play the animation

animationStartedAt?: Scriptable<number>

Optional coordinates that can be used to precisely define where the Sprite should be on the screen

imagePath: Scriptable<string>
isGrayscale?: Scriptable<boolean>

String path to the sprite sheet, automatically starts in images folder**

imagePath: "player", // The actual path to the file is {PROJECTFILE}/images/player.png
opacity?: Scriptable<number>
palette?: Scriptable<string[]>