scenes/levels: add a function to get Camera Scale
This commit is contained in:
parent
516fb12f0d
commit
8b6e3ce544
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue