瀏覽代碼

Disable flying;

bjorn 10 年之前
父節點
當前提交
88151bedcf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pigeon.lua

+ 2 - 2
pigeon.lua

@@ -472,7 +472,7 @@ function Pigeon.air:update()
     self.body:setLinearVelocity(0, vy)
   end
 
-  if love.keyboard.isDown(' ') then
+  --[[if love.keyboard.isDown(' ') then
     if self.fuel > 0 and not self.grounded then
       if (vy > 0 or math.abs(vy) < self.maxFlySpeed) then
         self.fuel = math.max(self.fuel - 33 * ls.tickrate, 0)
@@ -487,7 +487,7 @@ function Pigeon.air:update()
 
       self.jumped = true
     end
-  end
+  end]]
 
   if (self.animation.state.name == 'fly' or self.animation.state.name == 'flyStart') and (not love.keyboard.isDown(' ') or self.fuel < 1) then
     self.animation:set('flyEnd')