aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/init.lua
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2019-10-02 13:51:26 -0400
committerClyne Sullivan <clyne@bitgloo.com>2019-10-02 13:51:26 -0400
commit16a29df61f6cbc546123c91a0b72d1bfb68d6de2 (patch)
treee04a6da0474e5da5cf9a3fb19fd5e4467d492a61 /Scripts/init.lua
parent9d79ba461a399ce5c211dc7ca2fc49b8934c1cd7 (diff)
beautiful ball bounce sound
Diffstat (limited to 'Scripts/init.lua')
-rw-r--r--Scripts/init.lua4
1 files changed, 4 insertions, 0 deletions
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