Skip to main content

Debug

Logging

The log! macro can log messages to the console for debugging purposes.

// Log a message
log!("DEBUG: {:?}", some_var);

Resetting Game State

In development mode, you can reset the state of the game to its initial state anytime by using a simple keyboard shortcut Cmd+R on MacOS/Linux and Ctrl+R on Windows.

Inspecting Your Spritesheet

You can capture your game's internal spritesheet via keyboard shortcut:

Cmd + 2