Methods
loadAsset(stage, tile, done) → {function}
Loads an Asset from the source.
Parameters:
Name | Type | Description |
---|---|---|
stage |
Stage | |
tile |
Tile | |
done |
function | Callback. |
Returns:
Function that cancels the loading when called.
- Type
- function
Events
networkError
Signals that an error occurred while loading an asset.
Parameters:
Name | Type | Description |
---|---|---|
err |
Error | The error. |
tile |
Tile | The tile for which the asset was loaded. |