Utils.Debug#currentX

currentX : number The current X position the debug information will be rendered at. Source code: utils/Debug.js (Line 75)

Utils.Debug#currentY

currentY : number The current Y position the debug information will be rendered at. Source code: utils/Debug.js (Line 81)

Utils.Debug#Debug

new Debug(game) A collection of methods for displaying debug information about game objects. If your game is running in Canvas mode, then you should invoke all of the Debug methods fromyour games render function. This is because they are drawn directly onto the game canvasitself, so if you call any debug methods outside of render they are likely to be overwrittenby the game itself. If your game is running in WebGL then Debug will create a Sprite that is placed at the top of the Stage display

Utils.Debug#destroy()

destroy() Destroy this object. Source code: utils/Debug.js (Line 877)

Utils.Debug#dirty

dirty : boolean Does the canvas need re-rendering? Source code: utils/Debug.js (Line 92)

Utils.Debug#font

font : string The font that the debug information is rendered in. Default Value '14px Courier' Source code: utils/Debug.js (Line 54)

Utils.Debug#game

game : Phaser.Game A reference to the currently running Game. Source code: utils/Debug.js (Line 28)

Utils.Debug#geom()

geom(object, color, filled) Renders a Rectangle. Parameters Name Type Argument Default Description object Phaser.Rectangle | object The geometry object to render. color string <optional> Color of the debug info to be rendered (format is css color string). filled boolean <optional> true Render the objected as a filled (default, true) or a stroked (false) Source code: utils/Debug.js (Line 645)

Utils.Debug#inputInfo()

inputInfo(x, y, color) Render debug information about the Input object. Parameters Name Type Argument Default Description 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 433)

Utils.Debug#key()

key(key, x, y, color) Renders Phaser.Key object information. Parameters Name Type Argument Default Description key Phaser.Key The Key to render the 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 412)