diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-10-02 13:51:26 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-10-02 13:51:26 -0400 |
commit | 16a29df61f6cbc546123c91a0b72d1bfb68d6de2 (patch) | |
tree | e04a6da0474e5da5cf9a3fb19fd5e4467d492a61 | |
parent | 9d79ba461a399ce5c211dc7ca2fc49b8934c1cd7 (diff) |
beautiful ball bounce sound
-rw-r--r-- | Assets/boing.wav | bin | 0 -> 605018 bytes | |||
-rw-r--r-- | Scripts/init.lua | 4 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Assets/boing.wav b/Assets/boing.wav Binary files differnew file mode 100644 index 0000000..a142197 --- /dev/null +++ b/Assets/boing.wav diff --git a/Scripts/init.lua b/Scripts/init.lua index d09fb14..96e031a 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -80,10 +80,14 @@ ball = { }, Idle = function(self) if self.Physics.standing == true then + game.play(self.Position, self.Audio) self.Velocity.y = self.Velocity.y + 15 self.Velocity.x = math.random(-1, 1); end end, + Audio = { + file = "Assets/boing.wav" + }, } -- Create the world |