summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/world.lua b/world.lua
index 86a8ab1..2207e00 100644
--- a/world.lua
+++ b/world.lua
@@ -361,6 +361,9 @@ function World.beginContact(a, b, coll)
b:getUserData().jumpdouble = true
b:getUserData().salto = false
b:getUserData():createEffect("land")
+ end
+ local vx, vy = b:getUserData().body:getLinearVelocity()
+ if math.abs(x) == 1 or y == -1 then
b:getUserData():playSound(3)
end
end