From 7e8663fe5b1917d33f947ce2ec87b08d94358157 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 5 Aug 2016 17:30:56 +0200 Subject: Fixed translate bug --- camera.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camera.lua') 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(...) -- cgit v1.1