Methods
-
debug_body_render(object, colour, filled)
-
Makes the physics body for the object visible.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description object
object to display the body of
colour
colour to display the body with
filled
Boolean whether or not the body should display as stroked or filled
Code Equivalent:
game.debug.body(object, colour, filled);
-
debug_camera(camera, colour)
-
Makes the game camera target and deadzone visible.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description camera
camera to display properties of
colour
colour to display the properties with
Code Equivalent:
game.debug.camera(camera,colour);
-
debug_camera_info(x, y, colour)
-
Displays information about the camera at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
game.debug.cameraInfo(`game.camera`, x, y, colour);
-
debug_geom(object, colour, filled)
-
Renders a geometry object.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description object
object to render
colour
colour to render the object with
filled
Boolean whether or not to leave the object filled or stroked
Code Equivalent:
game.debug.geom(object, colour, filled);
-
debug_input_info(x, y, colour)
-
Display information about the mouse at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
game.debug.inputInfo(x, y, colour);
-
debug_key(dropdown_key, x, y, colour)
-
Display information about the key at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description dropdown_key
key to display information of
x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
game.debug.key(game.input.keyboard.addKey(Phaser.Keyboard.dropdown_key), x, y);`;//, colour);
-
debug_rectangle(rect, colour)
-
Display a rectangle with the given properties.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description rect
rectangle to display
colour
colour to display the rectangle with
Code Equivalent:
game.debug.rectangle(rect,colour);
-
debug_sound_info(sound, x, y, colour)
-
Display information about the sound at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description sound
sound to display information of
x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
game.debug.soundInfo(sound, x, y, colour);
-
debug_sprite(object, x, y)
-
Display all information about the sprite object and it's properties.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description object
object to display information about
x
Number x coordiante to display the information at
y
Number y coordinate to display the information at
Code Equivalent:
game.debug.spriteInfo(object, x, y);
-
debug_sprite_coords(sprite, x, y)
-
Display the sprite object's coordinates at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description sprite
sprite to display the coordinates of
x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
Code Equivalent:
game.debug.spriteCoords(sprite, x, y, colour);
-
debug_sprite_info(sprite, x, y)
-
Display information about the sprite object at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description sprite
sprite to display information of
x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
Code Equivalent:
game.debug.spriteInfo(sprite, x, y, colour);
-
debug_text(text, x, y, colour)
-
Display the text at the given location.
Check out the third party documentation for a more in depth explanation.Parameters:
Name Type Description text
text to display
x
Number x coordinate to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
game.debug.text(text, x, y, colour);
-
disable_step()
-
Disables stepping through the game loop.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.disableStep();
-
Display all information about the object's physics body.(object, x, y, colour)
-
Parameters:
Name Type Description object
object to display body information of
x
Number x coordiante to display the information at
y
Number y coordinate to display the information at
colour
colour to display the information with
Code Equivalent:
undefined
-
enable_step()
-
Enables stepping through the game loop one frame at a time. Must use game.step()
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.enableStep();
-
step()
-
Steps through the game loop one frame at a time.
Check out the third party documentation for a more in depth explanation.Code Equivalent:
game.step();