Class: SingleAssetSource

SingleAssetSource(asset)

Receives an asset which is returned on load.

Constructor

new SingleAssetSource(asset)

Parameters:
Name Type Description
asset Asset
Implements:

Methods

loadAsset(stage, tile, done) → {function}

Loads an asset from the source.

Parameters:
Name Type Description
stage Stage
tile Tile
done function

Callback.

Implements:
Returns:

Function that cancels the loading when called.

Type
function