mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 12:10:58 +01:00
added d key to toggle debugging
This commit is contained in:
@@ -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)
|
||||
* c: enter copy mode. Mark a rectangle with the mouse, when you
|
||||
release the mous button it is being saved to an RLE file
|
||||
* d: toggle debug output
|
||||
* q: quit
|
||||
|
||||
# Report bugs
|
||||
|
||||
@@ -203,6 +203,10 @@ func (scene *ScenePlay) CheckInput() {
|
||||
scene.Reset()
|
||||
}
|
||||
|
||||
if inpututil.IsKeyJustPressed(ebiten.KeyD) {
|
||||
scene.Config.Debug = !scene.Config.Debug
|
||||
}
|
||||
|
||||
if scene.Paused {
|
||||
if inpututil.IsKeyJustPressed(ebiten.KeyN) {
|
||||
scene.Config.RunOneStep = true
|
||||
|
||||
Reference in New Issue
Block a user