Create a better debug mode
We have a rudimentary debug mode currently. When an empty file named ~/.solaus/voadi/debug
is created, debug mode becomes active. You can check that debug is active with sol.main.is_debug_enabled()
(this is quest-specific, and defined in main.lua
).
All it does right now is makes log()
calls print to the console. That's is. We should take advantage of debug mode to make our work faster.
When debug mode is active, VOADI should:
- Skip the
solarus_logo
andintro
menus when the game is started. It goes directly to the title screen. - If "continue" is chosen, the game continues as normal.
- If a new game happens, the hero should start in a new map called
debug
. - The debug map will contain teletransporters that can take the hero to various parts of the world.
Over time, we will update the debug map depending on our work.
Edited by Alex Gleason