scenes/levels: make camera take screen dimensions from screen manager

This commit is contained in:
Kazhnuz 2019-03-05 19:28:26 +01:00
parent 838a68787b
commit 8c48370a48
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@ function CameraSystem:new(scene, x, y)
local width, height, flags = love.window.getMode( )
self.screenWidth = width
self.screenHeight = height
self.viewWidth = 424
self.viewHeight = 240
self.viewWidth, self.viewHeight = core.screen:getDimensions()
self.resolution = self.screenWidth / self.viewWidth
self:limit()