scenes/levels: fix camera screen size

This commit is contained in:
Kazhnuz 2019-03-03 13:59:45 +01:00
parent e332b1c214
commit 516fb12f0d
1 changed files with 2 additions and 2 deletions

View File

@ -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()