remove unused function call
This commit is contained in:
4
main.go
4
main.go
@@ -48,6 +48,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
loaded = false
|
||||||
mSprite map[string]*ebiten.Image
|
mSprite map[string]*ebiten.Image
|
||||||
mSound map[string][]byte
|
mSound map[string][]byte
|
||||||
|
|
||||||
@@ -77,8 +78,6 @@ func playSound(sound []byte) {
|
|||||||
currentplayer.Play()
|
currentplayer.Play()
|
||||||
}
|
}
|
||||||
|
|
||||||
var loaded = false
|
|
||||||
|
|
||||||
func (m *neko) Update() error {
|
func (m *neko) Update() error {
|
||||||
m.count++
|
m.count++
|
||||||
if m.state == 10 && m.count == m.min {
|
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.x = max(0, min(m.x, monitorWidth))
|
||||||
m.y = max(0, min(m.y, monitorHeight))
|
m.y = max(0, min(m.y, monitorHeight))
|
||||||
ebiten.SetWindowPosition(m.x, m.y)
|
ebiten.SetWindowPosition(m.x, m.y)
|
||||||
ebiten.SetWindowFloating(true)
|
|
||||||
|
|
||||||
mx, my := ebiten.CursorPosition()
|
mx, my := ebiten.CursorPosition()
|
||||||
x := mx - (height / 2)
|
x := mx - (height / 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user