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)

Cache#addImage()

addImage(key, url, data) → {object} Adds an Image file into the Cache. The file must have already been loaded, typically via Phaser.Loader, but can also have been loaded into the DOM.If an image already exists in the cache with the same key then it is removed and destroyed, and the new image inserted in its place. 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

Cache#addJSON()

addJSON(key, url, data) Add a new json 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 json data. Source code: loader/Cache.js (Line 501)

Cache#addCanvas()

addCanvas(key, canvas, context) Add a new canvas object in to the cache. Parameters Name Type Argument Description key string The key that this asset will be stored in the cache under. This should be unique within this cache. canvas HTMLCanvasElement The Canvas DOM element. context CanvasRenderingContext2D <optional> The context of the canvas element. If not specified it will default go getContext('2d'). Source code: loader/Cache.js (Line 230)

Cache#addBitmapFont()

addBitmapFont(key, url, data, atlasData, atlasType, xSpacing, ySpacing) Add a new Bitmap Font 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 font data. atlasData object Texture atlas frames data. atlasType string <optional

Cache#addBitmapData()

addBitmapData(key, bitmapData, frameData) → {Phaser.BitmapData} Add a BitmapData object 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. bitmapData Phaser.BitmapData The BitmapData object to be addded to the cache. frameData Phaser.FrameData | null <optional> (auto create) Optional FrameData set associated with the given BitmapData. If not speci

Cache#addBinary()

addBinary(key, binaryData) Add a binary object 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. binaryData object The binary object to be added to the cache. Source code: loader/Cache.js (Line 424)

Button#z

[readonly] z : number The z depth of this Game Object within its parent Group.No two objects in a Group can have the same z value.This value is adjusted automatically whenever the Group hierarchy changes.If you wish to re-order the layering of a Game Object then see methods like Group.moveUp or Group.bringToTop. Inherited From Phaser.Component.Core#z Source code: gameobjects/components/Core.js (Line 177)

Button#world

world : Phaser.Point The world coordinates of this Game Object in pixels.Depending on where in the display list this Game Object is placed this value can differ from position,which contains the x/y coordinates relative to the Game Objects parent. Inherited From Phaser.Component.Core#world Source code: gameobjects/components/Core.js (Line 211)

Button#updateCrop()

updateCrop() If you have set a crop rectangle on this Game Object via crop and since modified the cropRect property,or the rectangle it references, then you need to update the crop frame by calling this method. Inherited From Phaser.Component.Crop#updateCrop Source code: gameobjects/components/Crop.js (Line 86)