This commit is contained in:
crgimenes
2024-04-04 22:42:30 -03:00
parent 81a5eb02ee
commit 1635505ea3

View File

@@ -242,8 +242,8 @@ func main() {
config.File = "neko.ini"
config.Parse(cfg)
width *= int(cfg.Scale)
height *= int(cfg.Scale)
width = int(float64(width) * cfg.Scale)
height = int(float64(height) * cfg.Scale)
mSprite = make(map[string]*ebiten.Image)
mSound = make(map[string][]byte)
@@ -290,6 +290,8 @@ func main() {
max: 16,
}
log.Printf("Width: %d, Height: %d", width, height)
ebiten.SetRunnableOnUnfocused(true)
ebiten.SetScreenClearedEveryFrame(false)
ebiten.SetTPS(50)