aboutsummaryrefslogtreecommitdiff
path: root/go/client/game.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-04-03 17:33:12 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:07 +0200
commit90e93c708cf045b3f70ebd04c17ed8f0a303ab37 (patch)
treec80e95bfd24f385938e0cd98e09e71fc5c1aacb8 /go/client/game.go
parente536684a420d2e905b23afab22b8ef453714f865 (diff)
downloadmuhqs-game-90e93c708cf045b3f70ebd04c17ed8f0a303ab37.tar.gz
muhqs-game-90e93c708cf045b3f70ebd04c17ed8f0a303ab37.zip
bump ebiten version to 2.5.1 and new APIs
Diffstat (limited to 'go/client/game.go')
-rw-r--r--go/client/game.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go
index 2ea3a9f4..c328ddf7 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -533,7 +533,7 @@ func (g *Game) Update() error {
} else if inpututil.IsKeyJustPressed(ebiten.KeySpace) {
g.passButton.Click(0, 0)
} else if inpututil.IsKeyJustPressed(ebiten.KeyQ) {
- return fmt.Errorf("Exit")
+ return ebiten.Termination
} else if inpututil.IsKeyJustPressed(ebiten.KeyEscape) {
g.removeChoice()
g.selectedObject = nil