Phaser API Documentation

  Version: 
addImage(gid, image)

Description:

Add an image to this Image Collection.

Parameters:

name type description
gid number

The gid of the image in the Image Collection.

image string

The the key of the image in the Image Collection and in the cache.

Returns:
Description:

This ImageCollection object.

Since: 3.0.0