scenes/levels: fix camera screen size
This commit is contained in:
parent
e332b1c214
commit
516fb12f0d
|
@ -4,8 +4,8 @@ function Level:initCamera(x, y)
|
|||
local width, height, flags = love.window.getMode( )
|
||||
self.screenWidth = width
|
||||
self.screenHeight = height
|
||||
self.cameraWidth = 480
|
||||
self.cameraHeight = 272
|
||||
self.cameraWidth = 424
|
||||
self.cameraHeight = 240
|
||||
|
||||
self.resolution = self.screenWidth / self.cameraWidth
|
||||
self:limitCamera()
|
||||
|
|
Loading…
Reference in New Issue