Code: Select all
local CAMERA_WIDTH = 512
local CAMERA_HEIGHT = 448
function onStart()
camera.width = CAMERA_WIDTH
camera.height = CAMERA_HEIGHT
Graphics.setMainFramebufferSize(CAMERA_WIDTH, CAMERA_HEIGHT)
end
function onCameraUpdate()
camera.width, camera.height = Graphics.getMainFramebufferSize()
end