Animation
Constructors
new
Animation
(map: TileMap, rate: number)
Creates a new instance of the Animation object
Properties
image
:Surface
get
Gets the current animation frame
Methods
play
() ⇨ void
Plays the animation
pause
() ⇨ void
Pauses the animation
stop
() ⇨ void
Stops the animation
tick
() ⇨ void
Counts the time until the frame is switched