Hello everyone, I am struggling with the config.lua file for my project. My main issue is the fact that, instead creating a 320x480 (iPhone) and resize the images, I created an iPad project and downsize the images.
I figured out a way to handle the “downsize” for the iPhone but, for iPhone4, I do not have success (it shows the images for the iPhone, instead the ones for the iPad). Any ideas on what am I doing wrong here?
My config.lua file below:
[code]
if system.getInfo(“model”) ~= “iPad” and system.getInfo(“model”) ~= “iPhone4” then
application =
{
content =
{
–zoom
width = 768,
height = 1024,
fps = 60,
scale = “zoomStretch”,
imageSuffix =
{
["@2"] = 1,
}
}
}
elseif system.getInfo(“model”) == “iPhone4” then
application =
{
content =
{
width = 768,
height = 1024,
fps = 60,
scale = “zoomStretch”,
imageSuffix =
{
["@2"] = 1,
}
}
}
else
application =
{
content =
{
width = 768,
height = 1024,
fps = 60,
scale = “zoomStretch”,
imageSuffix =
{
["@2"] = 1,
}
}
}
end
[/code] [import]uid: 4883 topic_id: 8918 reply_id: 308918[/import]