Hi All,
I have a concerns about setting objects sizes and coordinates. As far as I understand from documentation, content size is not actual pixel resolution, but only proportions for displaying a content. I have it default:
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,
fps = 60,
},
}
I understand that if I place an image with this code, it should be displayed more or less in the same place, regardless of phone display resolution?
restartButton = display.newImageRect(“assets/reset.png”, 20, 20)
restartButton.x = display.contentCenterX
restartButton.y = 500
So my problem I don’t understand is, why on simulator everything looks as intended, but when deployed to the phone, all objects are placed differently, and are much smaller (depending on device display resolution). How to solve it? Should I check a device resolution and place objects basing on that, or is there any other way? Any settings which I forgot?
Screenshots attached to show you differences between Simulator and Android.
thanks for help