Optional settings: AnimationManagerSettingsthe BGA game class, usually it will be this
Private Optional settingsPrivate Optional zoomThe zoom manager, providing the current scale.
Attach an element to a parent, then play animation from element's origin to its new position.
the animation function
the destination parent
a promise when animation ends
Plays an animation if the animations are active. Animation aren't active when the window is not visible (document.visibilityState === 'hidden'), or game.instantaneousMode is true.
the animation to play
the animation promise.
Plays multiple animations in parallel.
the animations to play
a promise for all animations.
Plays multiple animations in sequence (the second when the first ends, ...).
the animations to play
a promise for all animations.
Plays multiple animations with a delay between each animation start.
the animations to play
the delay (in ms)
a promise for all animations.
Set the zoom manager, to get the scale of the current game.
the zoom manager
Generated using TypeDoc
the BGA game class, usually it will be
this