Hi,
So, I decided I’ll have 2 separate builds, one for iPhone/iPod touch and one for iPad.
I will have assets at different resolutions for each build.
This being said, I do not want to entirely duplicated my code base.
I kinda figured I should be able to do this via the build.settings/config.lua files.
For config.lua, I was think of something like this:
[lua]if system.getInfo(“model”) == “iPad” then
application = {
content = {
width = 1024,
height = 768,
scale = “none”,
imageSuffix = {
["~iPad"] = 1
}
}
}
else
application = {
content = {
width = 320,
height = 480,
scale = “zoomeven”,
imageSuffix = {
["@2"] = 2
}
}
}
end[/lua]
With this file, my assumption is that dynamic image resolution will take care of both platforms correctly.
That is, for the following statement:
display.newImageRect( “image.png”, display.contentWidth, display.contentHeight)
On iPhone 4, image@2x.png will be used.
On iPhone/iPod touch, image.png will be used.
On iPad, image~iPad.png will be used.
Is this the right way to do this? [import]uid: 59054 topic_id: 10224 reply_id: 310224[/import]