OK, say I have a game in landscape with a background.png image that is 1140x720 to cover the majority of mobile device screen sizes.
To my understanding after reading the Project Configuration Guide, it sounds like if I use:
- scale = “letterbox” then my background image will be resized automatically to fit the entire image into the device screen area. Meaning that either the top/bottom or left/side of the device screen will have nothing to show (no image content there).
- scale = “zoomEven” then my background image will be resized automatically to fit the device screen with either the top/bottom or left/right sides of the image bleeding out of the display area of the device screen.
From what I read in the Understanding Letterbox Scalling It sounds like the opposite of what I understood about letterbox and zoomEven. It sounds like if “The background though is a bit bigger for the screen and has some extra width compared to screen size. Since the background is centered, you would actually not see some pixels to the sides.” which is done by using letterbox.
In the image below, am I wrong in thinking the orange dotted line is the background image and the black part is the visible area of the device screen?
Also, my background image is not really scaling unless I scale it myself manually:
local background = display.newImageRect(backgroundGroup, "images/background.png", 1140, 720); background:scale(display.contentScaleX, display.contentScaleY); background.x = display.contentCenterX; background.y = display.contentCenterY;