Phaser API Documentation

  Version: 
SpriteConfig
Properties:
name type arguments description
key string | Phaser.Textures.Texture <optional>

The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.

frame string | number <optional>

An optional frame from the Texture this Game Object is rendering with.

anims string | Phaser.Animations.Animation | Phaser.Types.Animations.PlayAnimationConfig <optional>

The string-based key of the animation to play, or an Animation instance, or a PlayAnimationConfig object.

Type:
object