summaryrefslogtreecommitdiff
path: root/objects.go
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2024-04-23 01:24:40 +0100
committerdavidovski <david@davidovski.xyz>2024-04-23 01:24:40 +0100
commitf51a9efca57b561a3ccd88d04e1330dc9cc65726 (patch)
treea88786e70c7bcb26aa71f34e171c85ecc95bdf1d /objects.go
parent2824bb82ccb8b336779a78cd1f82bc675efaca91 (diff)
add spring boing
Diffstat (limited to 'objects.go')
-rw-r--r--objects.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/objects.go b/objects.go
index b26d1c8..008d712 100644
--- a/objects.go
+++ b/objects.go
@@ -333,6 +333,8 @@ func OnCollideSpring(this, other *GameObject) bool {
other.onGround = true
this.state = 2
this.delta = 1
+ this.game.audioPlayer.springAudio.Rewind()
+ this.game.audioPlayer.springAudio.Play()
return false
}