Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. if string.sub(system.getInfo("model"),1,4) == "iPad" then
  2. application =
  3. {
  4. content =
  5. {
  6. fps = 60,
  7. width = 360,
  8. height = 480,
  9. scale = "letterBox",
  10. xAlign = "center",
  11. yAlign = "center",
  12. imageSuffix =
  13. {
  14. ["@2x"] = 1.5,
  15. ["@4x"] = 3.0,
  16. },
  17. },
  18. notification =
  19. {
  20. iphone = {
  21. types = {
  22. "badge", "sound", "alert"
  23. }
  24. },
  25. google =
  26. {
  27. projectNumber = "xxxx",
  28. },
  29. }
  30. }
  31.  
  32. elseif string.sub(system.getInfo("model"),1,2) == "iP" and display.pixelHeight > 960 then
  33. application =
  34. {
  35. content =
  36. {
  37. antialias = true,
  38. fps = 60,
  39. width = 320,
  40. height = 568,
  41. scale = "letterBox",
  42. xAlign = "center",
  43. yAlign = "center",
  44. imageSuffix =
  45. {
  46. ["@2x"] = 1.5,
  47. ["@4x"] = 3.0
  48. },
  49. },
  50. notification =
  51. {
  52. iphone = {
  53. types = {
  54. "badge", "sound", "alert"
  55. }
  56. },
  57. google =
  58. {
  59. projectNumber = "xxxx",
  60. },
  61. }
  62. }
  63.  
  64. elseif string.sub(system.getInfo("model"),1,2) == "iP" then
  65. application =
  66. {
  67. content =
  68. {
  69. antialias = true,
  70. fps = 60,
  71. width = 320,
  72. height = 480,
  73. scale = "letterBox",
  74. xAlign = "center",
  75. yAlign = "center",
  76. imageSuffix =
  77. {
  78. ["@2x"] = 1.5,
  79. ["@4x"] = 3.0,
  80. },
  81. },
  82. notification =
  83. {
  84. iphone = {
  85. types = {
  86. "badge", "sound", "alert"
  87. }
  88. },
  89. google =
  90. {
  91. projectNumber = "xxxx",
  92. },
  93. }
  94. }
  95. elseif display.pixelHeight / display.pixelWidth > 1.72 then
  96. application =
  97. {
  98. content =
  99. {
  100. antialias = true,
  101. fps = 60,
  102. width = 320,
  103. height = 570,
  104. scale = "letterBox",
  105. xAlign = "center",
  106. yAlign = "center",
  107. imageSuffix =
  108. {
  109. ["@2x"] = 1.5,
  110. ["@4x"] = 3.0,
  111. },
  112. },
  113. }
  114. else
  115. application =
  116. {
  117. content =
  118. {
  119. antialias = true,
  120. fps = 60,
  121. width = 320,
  122. height = 512,
  123. scale = "letterBox",
  124. xAlign = "center",
  125. yAlign = "center",
  126. imageSuffix =
  127. {
  128. ["@2x"] = 1.5,
  129. ["@4x"] = 3.0,
  130. },
  131. },
  132. notification =
  133. {
  134. iphone = {
  135. types = {
  136. "badge", "sound", "alert"
  137. }
  138. },
  139. google =
  140. {
  141. projectNumber = "xxxx",
  142. },
  143. }
  144. }
  145. end
  146.  
  147. local bgImage = display.newImageRect("textures/title/bg.png", 360, 570)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement