summaryrefslogtreecommitdiffhomepage
path: root/camera.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-13 21:58:57 +0200
committerAki <nthirtyone@gmail.com>2016-05-13 21:58:57 +0200
commit35be9645afbc83146a8e0b7d5d52dcafd136d1d8 (patch)
treee69665a207c98bd024840e3d8d42af1dd2a1293c /camera.lua
parent14d7e5e8d94059c377214b578253e75157db3cd7 (diff)
downloadroflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.zip
roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.gz
roflnauts-35be9645afbc83146a8e0b7d5d52dcafd136d1d8.tar.bz2
Scale fix
Diffstat (limited to 'camera.lua')
-rw-r--r--camera.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/camera.lua b/camera.lua
index 2893409..8313dac 100644
--- a/camera.lua
+++ b/camera.lua
@@ -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