aboutsummaryrefslogtreecommitdiffstats
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
parent9d79ba461a399ce5c211dc7ca2fc49b8934c1cd7 (diff)
beautiful ball bounce sound
-rw-r--r--Assets/boing.wavbin0 -> 605018 bytes
-rw-r--r--Scripts/init.lua4
2 files changed, 4 insertions, 0 deletions
diff --git a/Assets/boing.wav b/Assets/boing.wav
new file mode 100644
index 0000000..a142197
--- /dev/null
+++ b/Assets/boing.wav
Binary files differ
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