Command line argument:
% doodle -debug
# running the dev build uses debug mode by default
% make run
In the developer console:
> boolProp Debug true
> boolProp D true
The boolProp
command can also be used to toggle on and off different
debug options while the game is running.
DebugOverlay
DO
Toggles the main debug text overlay with FPS counter.
DebugCollision
DC
Toggles the collision detection bounding box lines.
The developer console can parse JavaScript commands for more access to the game's internal objects.
The following global variables are available to the shell:
d
is the master Doodle struct.log
is the master logger object for logging messages to the terminal.RGBA()
is therender.RGBA()
function for creating a Color value.Point(x, y)
to create arender.Point