scenes/levels: add a function to get Camera Scale

This commit is contained in:
Kazhnuz 2019-03-03 14:01:24 +01:00
parent 516fb12f0d
commit 8b6e3ce544
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ function Level:getCameraCoord()
return camx, camy, camw, camh
end
function Level:getCameraScale()
return self.camera.scale
end
function Level:getScreenCoord()
local camx, camy, camh, camw
camx = self.camera.x - (self.screenWidth/2)