AnimationManager

Class: Phaser.AnimationManager

Constructor

new AnimationManager(sprite)

The Animation Manager is used to add, play and update Phaser Animations.
Any Game Object such as Phaser.Sprite that supports animation contains a single AnimationManager instance.

Parameters
Name Type Description
sprite Phaser.Sprite

A reference to the Game Object that owns this AnimationManager.

Source code: 登录查看完整内容