Yeah setup your config.lua something like below. This means that on a standard iPhone you will load the images designed for that screen size. A background would therefore be 320 x 480 ( or 480 x 320 in this case as its being forced into landscape. )
The code means that Corona will automatically scale the app to fit the screen of the device, in this case with letterbox is the screen aspect ratio is different.
On an iPhone 4, which is 2x the screen resolution I can name a second “background.png” image as “background@2x.png” and Corona will load this image ONLY on the device with the large screen resolution ( more texture memory is used as a result but that is expected and the iPhone4 / iPad have more memory as default. )
application =
{
content =
{
antialias = false,
width = 320,
height = 480,
fps = 30,
scale = "letterbox",
audioPlayFrequency = 44100,
imageSuffix =
{
["@2x"] = 2,
},
},
}
[import]uid: 5354 topic_id: 15582 reply_id: 57613[/import]