Debug
Logging
The log!
macro can log messages to the console for debugging purposes.
// Log a message
log!("DEBUG: {:?}", some_var);
Reset Game State
In development mode, you can reset the state of the game to its initial state anytime by using a simple keyboard shortcut.
- MacOS / Linux
- Windows
Cmd + R
Ctrl + R
Inspect Your Spritesheet
You can capture your game's internal spritesheet via keyboard shortcut:
- MacOS / Linux
- Windows
Cmd + 2
Ctrl + 2
Take a Screenshot
On native platforms, you can capture a screenshot from your game via keyboard shortcut:
- MacOS / Linux
- Windows
Cmd + 1
Ctrl + 1