mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 20:20:57 +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)
|
* 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user