mirror of
https://github.com/make-42/xyosc
synced 2025-01-18 18:57:10 +01:00
trans
This commit is contained in:
parent
e099777404
commit
b623e69976
2
main.go
2
main.go
@ -137,7 +137,7 @@ func main() {
|
|||||||
screenW, screenH := ebiten.Monitor().Size()
|
screenW, screenH := ebiten.Monitor().Size()
|
||||||
ebiten.SetWindowPosition(screenW/2-int(config.Config.WindowWidth)/2, screenH/2-int(config.Config.WindowHeight)/2)
|
ebiten.SetWindowPosition(screenW/2-int(config.Config.WindowWidth)/2, screenH/2-int(config.Config.WindowHeight)/2)
|
||||||
ebiten.SetVsyncEnabled(true)
|
ebiten.SetVsyncEnabled(true)
|
||||||
if err := ebiten.RunGame(&Game{}); err != nil {
|
if err := ebiten.RunGameWithOptions(&Game{}, &ebiten.RunGameOptions{ScreenTransparent: true}); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user