Skip to content

makeSpriteAnimation

makeSpriteAnimation(frames, fps, loop?): SpriteAnimation

Defined in: src/modules/animation/sprite-animation.ts:52

Create a SpriteAnimation that cycles through frames at fps. Starts at frame 0. Defaults to loop = true.

string[]

number

boolean = true

SpriteAnimation