From eff39f1f49d5223cb27b5874f8ac29ce8a2ef85f Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Apr 2017 16:28:21 +0200 Subject: Moved damping back to Hero from Player --- not/Player.lua | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'not/Player.lua') diff --git a/not/Player.lua b/not/Player.lua index 30057bb..2a4b2e6 100644 --- a/not/Player.lua +++ b/not/Player.lua @@ -69,24 +69,6 @@ function Player:update (dt) self:applyForce(-250, 0) end end - - -- Limiting walking speed. - if not self:isControlDown("left") and - not self:isControlDown("right") - then - local face = nil - if x < -12 then - face = 1 - elseif x > 12 then - face = -1 - else - face = 0 - end - self:applyForce(40*face,0) - if not self.inAir then - self:applyForce(80*face,0) - end - end end -- Controller callbacks. -- cgit v1.1