Created
July 15, 2013 18:31
-
-
Save rbreve/6002241 to your computer and use it in GitHub Desktop.
Ultimate config.lua for Corona
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if string.sub(system.getInfo("model"),1,4) == "iPad" then | |
application = | |
{ | |
content = | |
{ | |
width = 360, | |
height = 480, | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["@2x"] = 1.5, | |
["@4x"] = 3.0, | |
}, | |
}, | |
notification = | |
{ | |
iphone = { | |
types = { | |
"badge", "sound", "alert" | |
} | |
} | |
} | |
} | |
elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight > 960 then | |
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 568, | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["@2x"] = 1.5, | |
["@4x"] = 3.0, | |
}, | |
}, | |
notification = | |
{ | |
iphone = { | |
types = { | |
"badge", "sound", "alert" | |
} | |
} | |
} | |
} | |
elseif string.sub(system.getInfo("model"),1,2) == "iP" then | |
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 480, | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["@2x"] = 1.5, | |
["@4x"] = 3.0, | |
}, | |
}, | |
notification = | |
{ | |
iphone = { | |
types = { | |
"badge", "sound", "alert" | |
} | |
} | |
} | |
} | |
elseif display.pixelHeight / display.pixelWidth > 1.72 then | |
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 570, | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["@2x"] = 1.5, | |
["@4x"] = 3.0, | |
}, | |
}, | |
} | |
else | |
application = | |
{ | |
content = | |
{ | |
width = 320, | |
height = 512, | |
scale = "letterBox", | |
xAlign = "center", | |
yAlign = "center", | |
imageSuffix = | |
{ | |
["@2x"] = 1.5, | |
["@4x"] = 3.0, | |
}, | |
}, | |
notification = | |
{ | |
iphone = { | |
types = { | |
"badge", "sound", "alert" | |
} | |
} | |
} | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment