API Docs for: 1.13.1
Show:

game.Debug Class

Extends game.Class
Defined in: engine/debug.js:17
Module: debug

Show debug box. Automatically enabled, if URL contains ?debug.

Methods

extend

(
  • prop
)
game.Class

Inherited from game.Class: engine/core.js:757

Extend class.

Parameters:

  • prop Object

Returns:

init

(
  • arguments
)

Inherited from game.Class: engine/core.js:811

This method is called, when you create new instance of the class.

Parameters:

  • arguments Array

inject

(
  • prop
)

Inherited from game.Class: engine/core.js:825

Inject class.

Parameters:

  • prop Object

staticInit

(
  • arguments
)

Inherited from game.Class: engine/core.js:795

This method is called before init.

Parameters:

  • arguments Array

Attributes

backgroundColor

String

Defined in engine/debug.js:87

Background color of debug box.

Default: black

color

String

Defined in engine/debug.js:81

Text color of debug box.

Default: red

enabled

Boolean

Defined in engine/debug.js:70

Enable debug box.

frequency

Number

Defined in engine/debug.js:75

How fast to update fps (ms).

Default: 500

positionX

Number

Defined in engine/debug.js:93

X position of debug box.

Default: 0

positionY

Number

Defined in engine/debug.js:99

Y position of debug box.

Default: 0,0