-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathconfig.lua
More file actions
executable file
·44 lines (40 loc) · 956 Bytes
/
Copy pathconfig.lua
File metadata and controls
executable file
·44 lines (40 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
local topInset, leftInset, bottomInset, rightInset = display.getSafeAreaInsets()
local aspectRatio = display.pixelHeight / display.pixelWidth
local portraitWidth, portraitHeight = 320, 480
if topInset > 0 or leftInset > 0 or bottomInset > 0 or rightInset > 0 then
if aspectRatio > 2.1 then
portraitWidth, portraitHeight = 360, 693
end
end
application =
{
content =
{
width = 320, --aspectRatio > 1.5 and portraitWidth or math.ceil( portraitHeight / aspectRatio ),
height = 480, --aspectRatio < 1.5 and portraitHeight or math.ceil( portraitWidth * aspectRatio ),
scale = "adaptive", -- adaptive , letterbox
fps = 60,
xAlign = "left", -- default: center
yAlign = "top", -- default: center
---[[--
imageSuffix =
{
["@2x"] = 1.5,
["@4x"] = 3.0
},
--]]--
},
--[[
-- Push notifications
notification =
{
iphone =
{
types =
{
"badge", "sound", "alert", "newsstand"
}
}
},
--]]
}