diff options
author | Aki <nthirtyone@gmail.com> | 2016-07-16 22:33:52 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-07-16 22:33:52 +0200 |
commit | 89c07885fe40000681235f75798a3d4c519009a9 (patch) | |
tree | bdbd9af1a7ffca7d53a1828d9f28873823ddc341 /world.lua | |
parent | f79c92348b6d18ed35cfd1368ab449eb2eb63272 (diff) | |
download | roflnauts-89c07885fe40000681235f75798a3d4c519009a9.zip roflnauts-89c07885fe40000681235f75798a3d4c519009a9.tar.gz roflnauts-89c07885fe40000681235f75798a3d4c519009a9.tar.bz2 |
Changed jump slighly
Diffstat (limited to 'world.lua')
-rw-r--r-- | world.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |