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 objectobject to display the body of
colourcolour to display the body with
filledBoolean 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 cameracamera to display properties of
colourcolour 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 xNumber x coordinate to display the information at
yNumber y coordinate to display the information at
colourcolour 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 objectobject to render
colourcolour to render the object with
filledBoolean 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 xNumber x coordinate to display the information at
yNumber y coordinate to display the information at
colourcolour 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_keykey to display information of
xNumber x coordinate to display the information at
yNumber y coordinate to display the information at
colourcolour 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 rectrectangle to display
colourcolour 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 soundsound to display information of
xNumber x coordinate to display the information at
yNumber y coordinate to display the information at
colourcolour 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 objectobject to display information about
xNumber x coordiante to display the information at
yNumber 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 spritesprite to display the coordinates of
xNumber x coordinate to display the information at
yNumber 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 spritesprite to display information of
xNumber x coordinate to display the information at
yNumber 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 texttext to display
xNumber x coordinate to display the information at
yNumber y coordinate to display the information at
colourcolour 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 objectobject to display body information of
xNumber x coordiante to display the information at
yNumber y coordinate to display the information at
colourcolour 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();