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);

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.

Cmd + R

Inspect Your Spritesheet

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

Cmd + 2

Take a Screenshot

On native platforms, you can capture a screenshot from your game via keyboard shortcut:

Cmd + 1