added d key to toggle debugging

This commit is contained in:
2024-05-28 13:39:02 +02:00
parent 106ff1970a
commit b8d6216feb
2 changed files with 5 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ While it runs, there are a couple of commands you can use:
* s: save game state to file (can be loaded with -l) * s: save game state to file (can be loaded with -l)
* c: enter copy mode. Mark a rectangle with the mouse, when you * c: enter copy mode. Mark a rectangle with the mouse, when you
release the mous button it is being saved to an RLE file release the mous button it is being saved to an RLE file
* d: toggle debug output
* q: quit * q: quit
# Report bugs # Report bugs

View File

@@ -203,6 +203,10 @@ func (scene *ScenePlay) CheckInput() {
scene.Reset() scene.Reset()
} }
if inpututil.IsKeyJustPressed(ebiten.KeyD) {
scene.Config.Debug = !scene.Config.Debug
}
if scene.Paused { if scene.Paused {
if inpututil.IsKeyJustPressed(ebiten.KeyN) { if inpututil.IsKeyJustPressed(ebiten.KeyN) {
scene.Config.RunOneStep = true scene.Config.RunOneStep = true