Namespace: animation

game.animation

Handles spritesheet animation.
It iterates through the spritesheet frames inside the animation queue. Called by game loop.
Source:

Methods

(static) clear()

[Not directly used] Clears animation queue.
Source:

(static) play(name)

Plays animation.
Parameters:
Name Type Description
name string animation name (identifier)
Source:

(static) run()

[Not directly used] Executes animation.
Source:

(static) stop(name)

Stops animation.
Parameters:
Name Type Description
name string animation name
Source: