Assuming you’re using the built-in camera component, and not zooming the camera in or out, I would just do something like this in an init()
function:
local width = tonumber(sys.get_config("display.width"))
self.offset = width / 2
Assuming you’re using the built-in camera component, and not zooming the camera in or out, I would just do something like this in an init()
function:
local width = tonumber(sys.get_config("display.width"))
self.offset = width / 2