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)

Utils.Debug#ropeSegments()

ropeSegments(rope, color, filled) Renders the Rope's segments. Note: This is really expensive as it has to calculate new segments every time you call it Parameters Name Type Argument Default Description rope Phaser.Rope The rope to display the segments 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 (false) Source cod

Utils.Debug#reset()

reset() Clears the Debug canvas. Source code: utils/Debug.js (Line 162)