update go mod and set window floating

This commit is contained in:
crgimenes
2024-04-02 00:35:15 -03:00
parent ed5a88699c
commit 90afd38d45
3 changed files with 23 additions and 4 deletions

View File

@@ -75,6 +75,8 @@ func playSound(sound []byte) {
currentplayer.Play()
}
var loaded = false
func (m *neko) Update() error {
m.count++
if m.state == 10 && m.count == m.min {
@@ -85,6 +87,7 @@ 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)