scenes/levels: make camera take screen dimensions from screen manager
This commit is contained in:
parent
838a68787b
commit
8c48370a48
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue