Hi guys,
I’m creating a universal app for both iphone/ipod n ipad family. My game will support iphone5 resolution so this is my config.lua :
if string.sub(system.getInfo("model"),1,4) == "iPad" then
application =
{
content =
{
width = 768,
height = 1024,
scale = "letterBox",
xAlign = "center",
yAlign = "center",
fps = 60,
},
notification =
{
iphone = {
types = {
"badge", "sound", "alert"
}
}
}
}
else
application =
{
content =
{
fps = 60,
},
notification =
{
iphone = {
types = {
"badge", "sound", "alert"
}
}
}
}
end
What i’m trying to do is, if it’s ipad then my app will use auto-scale, if it’s not then my app will handle it myself.
Tested on simulator viewing as iphone5, works fine… no black bar on the side but when i tested it on my new ipod touch the app still stays like it’s still on 960x640. I checked everything and everything seems in order and it works on simulator
Very confused… help??
[import]uid: 76697 topic_id: 35636 reply_id: 335636[/import]