Defold camera zoom not working when running on Android

Ortho camera module may require an update(not sure, I’m not using it) to use the newly introduced display scale.

Zoom calculation is generally like this:

local zoom = math.min(M.window_width / M.game_width, M.window_height / M.game_height) / window.get_display_scale()

But this all may depend on how you want to handle your game scene.

3 Likes