API

Interface SpriteAnimationManagerOptions

Optional configuration for a sprite animation manager.

interface SpriteAnimationManagerOptions {
    fixedDeltaMs?: number;
    onUpdate?: (deltaMs: number) => void;
}
Index
fixedDeltaMs?: number
onUpdate?: (deltaMs: number) => void

Optional. Called each tick of the manager's autonomous loop with the elapsed milliseconds.