toyGraphics / com.anysolo.toyGraphics / AnimationManager

AnimationManager

class AnimationManager

Animation manager is what makes animation alive.

To start an animation you should pass an animation manager as an argument. You also must call update() method of AnimationManager at the end of each game loop.

Constructors

<init>

AnimationManager()

Animation manager is what makes animation alive.

Functions

update

fun update(): Unit

Goes through all animations and switch frames if needed.