summaryrefslogtreecommitdiffhomepage
path: root/camera.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-05 17:30:56 +0200
committerAki <nthirtyone@gmail.com>2016-08-05 17:30:56 +0200
commit7e8663fe5b1917d33f947ce2ec87b08d94358157 (patch)
tree5b400033a4593fd7db78c801ed7c780eddd29e6d /camera.lua
parenta63e57ff889cf1528c6b96aa82f2798bf399de0b (diff)
downloadroflnauts-7e8663fe5b1917d33f947ce2ec87b08d94358157.zip
roflnauts-7e8663fe5b1917d33f947ce2ec87b08d94358157.tar.gz
roflnauts-7e8663fe5b1917d33f947ce2ec87b08d94358157.tar.bz2
Fixed translate bug
Diffstat (limited to 'camera.lua')
-rw-r--r--camera.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera.lua b/camera.lua
index 32a1bed..f9cc839 100644
--- a/camera.lua
+++ b/camera.lua
@@ -65,7 +65,7 @@ end
function Camera:translatePosition(x, y)
local x = x or 0
local y = y or 0
- return x-self.x*self.scale, y-self.y*self.scale
+ return (x-self.x)*self.scale, (y-self.y)*self.scale
end
function Camera:translatePoints(...)