diff --git a/main.go b/main.go index 9c50389..44ae1a0 100644 --- a/main.go +++ b/main.go @@ -48,6 +48,7 @@ const ( ) var ( + loaded = false mSprite map[string]*ebiten.Image mSound map[string][]byte @@ -77,8 +78,6 @@ func playSound(sound []byte) { currentplayer.Play() } -var loaded = false - func (m *neko) Update() error { m.count++ if m.state == 10 && m.count == m.min { @@ -89,7 +88,6 @@ func (m *neko) Update() error { m.x = max(0, min(m.x, monitorWidth)) m.y = max(0, min(m.y, monitorHeight)) ebiten.SetWindowPosition(m.x, m.y) - ebiten.SetWindowFloating(true) mx, my := ebiten.CursorPosition() x := mx - (height / 2)