Maybe I’m doing it wrong, but here’s what I’ve been doing.
Backgrounds: 1024x768 saved as background@2x.png
512x384 saved as background.png
Other art saved at both normal and 2x sizes, thus if I have a 32x32 sprite, I will save it as object.png and I will save a 64x64 as object@2x.png. (I actually do it backwards in Photoshop, I build the larger, save with the @2x prefix, resize to 50%, save without the prefix).
Then my config.lua contains:
if system.getInfo("model") ~= "iPad" then
application =
{
content =
{
width = 320,
height = 480,
scale = "letterbox",
imageSuffix =
{
["@2x"] = 2,
},
},
}
else
application =
{
content =
{
width = 384,
height = 512,
scale = "letterbox",
imageSuffix =
{
["@2x"] = 2,
},
},
}
Note: I haven’t figured android out yet.
My backgrounds are developed such that the iPhone’s crop out of the middle and I let the system scale it so that the long side fits. In this case, the 512x384 will be resized by Corona to 480x360 and I center the background and 20 pixels on either side are cropped off. As long as there are no controls, sensors, or display elements in those two zones, I can use the same images on both devices.
This to me is better than a 960x640 that is going to be used on an iPad that will get scaled up to 1024x683 and still have letterboxing black borders of 42 pixels on either side.
At some point I need to figure out android in all of this. But… [import]uid: 19626 topic_id: 14480 reply_id: 53592[/import]