Interface
SpriteAnimPlayOpt
:Sprite animation configuration when playing.
loop
?: booleanIf this anim should be played in loop.
pingpong
?: booleanWhen looping should it move back instead of go to start frame again.
speed
?: numberThis anim's speed in frames per second.
onEnd
?: () => voidRuns when this animation ends.