Phaser API Documentation

addSpriteSheet(key, source, config)


Adds a Sprite Sheet to this Texture Manager.

In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact same size and cannot be trimmed or rotated.


name type description
key string

The unique string-based key of the Texture.

source HTMLImageElement

The source Image element.

config Phaser.Types.Textures.SpriteSheetConfig

The configuration object for this Sprite Sheet.


The Texture that was created, or null if the key is already in use.

Since: 3.0.0