DebugToggle is a lightweight system for letting the player press a key to show/hide hitbox/debug-outline rendering at run time.
In reality, this isn't useful enough to be an official part of JetLag, but it is convenient for the tutorials, so we're keeping it.
Static
Wire up a key to toggle the rendering of hitboxes on the fly. This only works if hitBoxes is true in the game's Config object.
hitBoxes
true
Config
Optional
The key that toggles debug rendering (default: b)
b
DebugToggle is a lightweight system for letting the player press a key to show/hide hitbox/debug-outline rendering at run time.
In reality, this isn't useful enough to be an official part of JetLag, but it is convenient for the tutorials, so we're keeping it.