-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.lua
27 lines (27 loc) · 824 Bytes
/
config.lua
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
--global conf object stores different template configurations
conf = {
--set app's orientation
orientation = Stage.LANDSCAPE_LEFT,
--default transition for scene manager
transition = SceneManager.flipWithFade,
--default easing used in template
easing = easing.outBack,
--defauly texture fitlering
textureFilter = true,
--scaling mode
scaleMode = "letterbox",
--keep application awake
keepAwake = true,
--logical width of screen
width = 480,
--logical height of screen
height = 800,
--fps of application
fps = 60,
--for absolute positioning
dx = application:getLogicalTranslateX() / application:getLogicalScaleX(),
dy = application:getLogicalTranslateY() / application:getLogicalScaleY(),
--some commonly used fonts
smallFont = TTFont.new("tahoma.ttf", 20),
largeFont = TTFont.new("tahoma.ttf", 40),
}