summaryrefslogtreecommitdiffhomepage
path: root/not/Player.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-16 23:45:35 +0200
committerAki <nthirtyone@gmail.com>2017-07-16 23:45:35 +0200
commit113d648178755dd0fb9f4ea0e7726f173ecc5223 (patch)
treefab6b3f6907b3753ecbb470eade0ee4d996256bd /not/Player.lua
parent25c3cdf7ee06a6415e7bb26418ffb64dda3a2151 (diff)
downloadroflnauts-113d648178755dd0fb9f4ea0e7726f173ecc5223.zip
roflnauts-113d648178755dd0fb9f4ea0e7726f173ecc5223.tar.gz
roflnauts-113d648178755dd0fb9f4ea0e7726f173ecc5223.tar.bz2
Cleaning-up Hero and Player, this far w/o big changes
Diffstat (limited to 'not/Player.lua')
-rw-r--r--not/Player.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Player.lua b/not/Player.lua
index 34f57eb..8e15da0 100644
--- a/not/Player.lua
+++ b/not/Player.lua
@@ -41,7 +41,7 @@ function Player:update (dt)
self.facing = -1
self:applyForce(-250, 0)
-- Controlled speed limit
- if x < -self.max_velocity then
+ if x < -self.MAX_VELOCITY then
self:applyForce(250, 0)
end
end
@@ -49,7 +49,7 @@ function Player:update (dt)
self.facing = 1
self:applyForce(250, 0)
-- Controlled speed limit
- if x > self.max_velocity then
+ if x > self.MAX_VELOCITY then
self:applyForce(-250, 0)
end
end