summaryrefslogtreecommitdiffhomepage
path: root/camera.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-15 22:13:13 +0200
committerAki <nthirtyone@gmail.com>2016-05-15 22:13:13 +0200
commit8a51c55cfd5c22ff035f320c9128d6ec49009bf2 (patch)
treebae11d1bd59bf062e281a61e10eec26eb23295f6 /camera.lua
parent25701ee54e8fbdcfd3a66fd1605f5b5b647e78a2 (diff)
downloadroflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.zip
roflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.tar.gz
roflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.tar.bz2
ZU WARUDO!
Diffstat (limited to 'camera.lua')
-rw-r--r--camera.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/camera.lua b/camera.lua
index 8313dac..79e680b 100644
--- a/camera.lua
+++ b/camera.lua
@@ -33,7 +33,8 @@ end
-- Move follow
function Camera:moveFollow ()
local x,y,i = 105, 120, 1
- for k,point in pairs(Nauts) do
+ -- w.Nauts [!] temporary
+ for k,point in pairs(w.Nauts) do
i = i + 1
x = math.max(math.min(point.body:getX(),290),0) + x
y = math.max(math.min(point.body:getY(),180),20) + y