I’ve noticed that my game uses a different resolution when run on an actual iPhone 5.
On the actual device there are 2 black squares on the sides, wherein the simulator it scales correctly to the full width of the device (I use the landscape orientation)
I printed some properties when in the device and in the simulator with the following line:
print(display.actualContentWidth, display.actualContentHeight, display.pixelWidth, display.pixelHeight)
When doing this on the actual iPhone 5 I get: “240 160 640 960”
While in the iPhone 5 simulator I get: “284 160 640 1136”
I know this have been working correctly some versions before, I’ll do some testing this afternoon and try to find which version it went wrong.
Ps. here’s the config.lua
application={ content={ width = 160, height = 240, xAlign = "left", yAlign = "top", scale = 'letterbox', fps = 60 }, license={ google={ key="blabla" } } }