summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-07-16 22:33:52 +0200
committerAki <nthirtyone@gmail.com>2016-07-16 22:33:52 +0200
commit89c07885fe40000681235f75798a3d4c519009a9 (patch)
treebdbd9af1a7ffca7d53a1828d9f28873823ddc341 /world.lua
parentf79c92348b6d18ed35cfd1368ab449eb2eb63272 (diff)
downloadroflnauts-89c07885fe40000681235f75798a3d4c519009a9.zip
roflnauts-89c07885fe40000681235f75798a3d4c519009a9.tar.gz
roflnauts-89c07885fe40000681235f75798a3d4c519009a9.tar.bz2
Changed jump slighly
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/world.lua b/world.lua
index 2207e00..f0f5e1f 100644
--- a/world.lua
+++ b/world.lua
@@ -358,12 +358,12 @@ function World.beginContact(a, b, coll)
if y == -1 then
print(b:getUserData().name .. " is not in air")
b:getUserData().inAir = false
- b:getUserData().jumpdouble = true
+ b:getUserData().jumpnumber = 2
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
+ if math.abs(x) == 1 or (y == -1 and x == 0) then
b:getUserData():playSound(3)
end
end