Hi guys,
I’m trying to do this for my android build :
-
if the screen width is 1280 or less then my game will handle the scaling itself
-
if the screen width is more than that then I’ll use auto-scale since i couldn’t be bothered to provide really hi-res images/texture.
This is what my config.lua looks like :
if (display.pixelWidth\>1280) then application = { content = { width = 800, height = 1280, scale = "letterBox", xAlign = "center", yAlign = "center", fps = 60, }, } else application = { content = { fps = 60, }, } end
But it seems that config doesn’t work as I tested on kindle Fire HD 9 and other newer device that has 1920x1080 resolution, the game doesn’t scale at all.
Is there something that I do wrong in the config?
Thanks