summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-23 15:10:33 +0100
committerdavidovski <david@davidovski.xyz>2024-04-23 15:10:33 +0100
commitd739f3a016d9e052ae2e844d5ed62502bb7a4e38 (patch)
treed7feb67321a685267187eb33207acb3aa57dea80
parentc73792133fafc80763297f99a6ca8ff28c2c43cb (diff)
add click sound to menu
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5296557..bfadeb1 100644
--- a/main.go
+++ b/main.go
@@ -293,6 +293,8 @@ func (g *Game) Update() error {
bo = buttonOffset
if onButton && g.animStart <= 0{
g.animStart = g.time + 60
+ g.audioPlayer.landAudio[0].Rewind()
+ g.audioPlayer.landAudio[0].Play()
StartGame(g)
}
}