Skip to content

Commit 3bae84c

Browse files
committed
Add fullscreen toggle via F11/F
1 parent 7c27590 commit 3bae84c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/game/game.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ func (g *Game) Update() error {
120120
g.camera.ZoomOut()
121121
}
122122

123+
if inpututil.IsKeyJustPressed(ebiten.KeyF11) || inpututil.IsKeyJustPressed(ebiten.KeyF) {
124+
ebiten.SetFullscreen(!ebiten.IsFullscreen())
125+
}
126+
123127
// FIXME: For some reason Layout doesn't position the UI properly...
124128
g.ui.Layout(&g.uiOptions)
125129

0 commit comments

Comments
 (0)