TweenManager#TweenManager

new TweenManager(game)

Phaser.Game has a single instance of the TweenManager through which all Tween objects are created and updated.
Tweens are hooked into the game clock and pause system, adjusting based on the game state.

TweenManager is based heavily on tween.js by http://soledadpenades.com.
The difference being that tweens belong to a games instance of TweenManager, rather than to a global TWEEN object.
It also has callbacks swapped for Signals and a few issues patched with regard to properties and completion errors.
Please see https://github.com/sole/tween.js for a full list of contributors.

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source code: tween/TweenManager.js (Line 20)
doc_phaser
2017-02-14 11:19:00
Comments
Leave a Comment

Please login to continue.