Update:
so apparently the zoom is fine, as I added the following debugs:
self.camera_url = msg.url(nil, "camera", "camera")
local old_zoom = go.get(self.camera_url, "orthographic_zoom")
print("Old zoom:", old_zoom)
go.set(self.camera_url, "orthographic_zoom", 2)
local new_zoom = go.get(self.camera_url, "orthographic_zoom")
print("New zoom:", new_zoom)
and got:
05-12 09:28:13.311 2916 3071 I defold : INFO:ENGINE: Initialised sound device 'default'
05-12 09:28:13.585 2916 3071 W defold : WARNING:INPUT: No gamepad map found for gamepad 0 (Virtual). The raw gamepad map will be used.
05-12 09:28:13.704 2916 3071 D defold : DEBUG:SCRIPT: Old zoom: 2
05-12 09:28:13.704 2916 3071 D defold : DEBUG:SCRIPT: New zoom: 2
So the zoom value is fine, then why does it look like this on device?