diff options
author | Aki <nthirtyone@gmail.com> | 2016-05-15 22:13:13 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-05-15 22:13:13 +0200 |
commit | 8a51c55cfd5c22ff035f320c9128d6ec49009bf2 (patch) | |
tree | bae11d1bd59bf062e281a61e10eec26eb23295f6 /camera.lua | |
parent | 25701ee54e8fbdcfd3a66fd1605f5b5b647e78a2 (diff) | |
download | roflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.zip roflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.tar.gz roflnauts-8a51c55cfd5c22ff035f320c9128d6ec49009bf2.tar.bz2 |
ZU WARUDO!
Diffstat (limited to 'camera.lua')
-rw-r--r-- | camera.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |