Browse Source

Fix thing;

bjorn 10 years ago
parent
commit
f13e6b5540
1 changed files with 1 additions and 1 deletions
  1. 1 1
      map.lua

+ 1 - 1
map.lua

@@ -55,7 +55,7 @@ function Map:update()
   end
   end
 
 
   table.each(self.obstacles, function(obstacle)
   table.each(self.obstacles, function(obstacle)
-    if (love.keyboard.isDown('down') and ctx.pigeon.downDirty > 0) or ctx.pigeon.body:getY() + ctx.pigeon.shapeSize / 2 > obstacle.body:getY() - obstacle.height / 2 then
+    if ((love.keyboard.isDown('down') or (joystick and joystick:getGamepadAxis('lefty') > .5)) and ctx.pigeon.downDirty > 0) or ctx.pigeon.body:getY() + ctx.pigeon.shapeSize / 2 > obstacle.body:getY() - obstacle.height / 2 then
       obstacle.fixture:setCategory(ctx.categories.oneWayPlatform)
       obstacle.fixture:setCategory(ctx.categories.oneWayPlatform)
     else
     else
       obstacle.fixture:setCategory(ctx.categories.ground)
       obstacle.fixture:setCategory(ctx.categories.ground)