diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-13 21:58:57 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-13 21:58:57 +0200 |
commit | 35be9645afbc83146a8e0b7d5d52dcafd136d1d8 (patch) | |
tree | e69665a207c98bd024840e3d8d42af1dd2a1293c /camera.lua | |
parent | 14d7e5e8d94059c377214b578253e75157db3cd7 (diff) | |
download | roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.zip roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.gz roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.bz2 |
Scale fix
Diffstat (limited to 'camera.lua')
-rw-r--r-- | camera.lua | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -30,17 +30,9 @@ function Camera:setPosition (x, y) self.x, self.y = x, y end --- Add follow position -function Camera:addFollow (x, y, w) - local w = 1 - if x ~= nil and y ~= nil then - table.insert(self.follow, {["x"] = x, ["y"] = y, ["w"] = w}) - end -end - -- Move follow function Camera:moveFollow () - local x,y,i = 145, 120, 1 + local x,y,i = 105, 120, 1 for k,point in pairs(Nauts) do i = i + 1 x = math.max(math.min(point.body:getX(),290),0) + x |