diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-01 17:28:57 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-01 17:28:57 +0200 |
commit | 12af452c3ff9686502c9a83dbd088b88e5b7cefb (patch) | |
tree | 65e48a56995b4717a1a615ae17b145a29933f044 | |
parent | 297f123251c99f2fd872eef9e0ad54dc4f38a1c3 (diff) | |
download | roflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.zip roflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.tar.gz roflnauts-12af452c3ff9686502c9a83dbd088b88e5b7cefb.tar.bz2 |
Landing bug fix
-rw-r--r-- | world.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -287,7 +287,6 @@ function World:draw() -- Background love.graphics.draw(self.background, 0, 0, 0, scaler, scaler) - -- This needs to be reworked! -- Draw clouds for _,cloud in pairs(self.Clouds) do @@ -370,7 +369,7 @@ end function World.beginContact(a, b, coll) if a:getCategory() == 1 then local x,y = coll:getNormal() - if y == -1 then + if y < -0.6 then print(b:getUserData().name .. " is not in air") -- Move them to Player b:getUserData().inAir = false |