addTilemap(key, url, mapData, format)
Add a new tilemap to the Cache.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key that this asset will be stored in the cache under. This should be unique within this cache. |
url | string | The URL the asset was loaded from. If the asset was not loaded externally set to |
mapData | object | The tilemap data object (either a CSV or JSON file). |
format | number | The format of the tilemap data. |
- Source code: loader/Cache.js (Line 407)
Please login to continue.