Utils.getProperty()

<static> getProperty(obj, prop) → {*} Gets an objects property by string. Parameters Name Type Description obj object The object to traverse. prop string The property whose value will be returned. Returns * - the value of the property or null if property isn't found . Source code: utils/Utils.js (Line 27)

Utils.extend()

<static> extend(deep, target) → {object} This is a slightly modified version of http://api.jquery.com/jQuery.extend/ Parameters Name Type Description deep boolean Perform a deep copy? target object The target object to copy to. Returns object - The extended object. Source code: utils/Utils.js (Line 258)

Utils.Debug#timer()

timer(timer, x, y, color) Render Timer information. Parameters Name Type Argument Default Description timer Phaser.Timer The Phaser.Timer to show the debug information for. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string). Source code: utils/Debug.js (Line 312)

Utils.Debug#text()

text(text, x, y, color, font) Render a string of text. Parameters Name Type Argument Description text string The line of text to draw. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> Color of the debug info to be rendered (format is css color string). font string <optional> The font of text to draw. Source code: utils/Debug.js (Line 676)

Utils.Debug#spriteInputInfo()

spriteInputInfo(sprite, x, y, color) Render Sprite Input Debug information. Parameters Name Type Argument Default Description sprite Phaser.Sprite | Phaser.Image The sprite to display the input data for. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string). Source code: utils/Debug.js (Line 391)

Utils.Debug#spriteInfo()

spriteInfo(sprite, x, y, color) Render debug infos (including name, bounds info, position and some other properties) about the Sprite. Parameters Name Type Argument Default Description sprite Phaser.Sprite The Sprite to display the information of. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string)

Utils.Debug#spriteCoords()

spriteCoords(sprite, x, y, color) Renders the sprite coordinates in local, positional and world space. Parameters Name Type Argument Default Description sprite Phaser.Sprite | Phaser.Image The sprite to display the coordinates for. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string). Source code:

Utils.Debug#spriteBounds()

spriteBounds(sprite, color, filled) Renders the Sprites bounds. Note: This is really expensive as it has to calculate the bounds every time you call it! Parameters Name Type Argument Default Description sprite Phaser.Sprite | Phaser.Image The sprite to display the bounds of. color string <optional> Color of the debug info to be rendered (format is css color string). filled boolean <optional> true Render the rectangle as a fillRect (default, true) or a strokeRect (

Utils.Debug#sprite

sprite : Phaser.Image If debugging in WebGL mode we need this. Source code: utils/Debug.js (Line 33)

Utils.Debug#soundInfo()

soundInfo(sound, x, y, color) Render Sound information, including decoded state, duration, volume and more. Parameters Name Type Argument Default Description sound Phaser.Sound The sound object to debug. x number X position of the debug info to be rendered. y number Y position of the debug info to be rendered. color string <optional> 'rgb(255,255,255)' color of the debug info to be rendered. (format is css color string). Source code: utils/Debug.js (Line 254)