Cache#autoResolveURL

autoResolveURL : boolean Automatically resolve resource URLs to absolute paths for use with the Cache.getURL method. Source code: loader/Cache.js (Line 45)

Cache#addXML()

addXML(key, url, data) Add a new xml object into 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 null. data object Extra text data. Source code: loader/Cache.js (Line 517)

Cache#addVideo()

addVideo(key, url, data, isBlob) Adds a Video file into the Cache. The file must have already been loaded, typically via Phaser.Loader. 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 null. data object Extra video data. isBlob boolean True if the file was preloaded via xhr and the data parameter is

Cache#addTilemap()

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 null. 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)

Cache#addTextureAtlas()

addTextureAtlas(key, url, data, atlasData, format) Add a new texture atlas 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 null. data object Extra texture atlas data. atlasData object Texture atlas frames data. format number The format of the texture atlas. Source code: loader/Cach

Cache#addText()

addText(key, url, data) Add a new text data. 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 null. data object Extra text data. Source code: loader/Cache.js (Line 374)

Cache#addSpriteSheet()

addSpriteSheet(key, url, data, frameWidth, frameHeight, frameMax, margin, spacing) Add a new sprite sheet in to the cache. Parameters Name Type Argument Default 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 null. data object Extra sprite sheet data. frameWidth number Width of the sprite sheet. frameHei

Cache#addSound()

addSound(key, url, data, webAudio, audioTag) Adds a Sound file into the Cache. The file must have already been loaded, typically via Phaser.Loader. 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 null. data object Extra sound data. webAudio boolean True if the file is using web audio. audioTag bool

Cache#addShader()

addShader(key, url, data) Adds a Fragment Shader in to the Cache. The file must have already been loaded, typically via Phaser.Loader. 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 null. data object Extra shader data. Source code: loader/Cache.js (Line 550)

Cache#addRenderTexture()

addRenderTexture(key, texture) Add a new Phaser.RenderTexture in 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. texture Phaser.RenderTexture The texture to use as the base of the RenderTexture. Source code: loader/Cache.js (Line 566)