-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
33 lines (24 loc) · 854 Bytes
/
main.lua
File metadata and controls
33 lines (24 loc) · 854 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
--setting up some configurations
application:setOrientation(conf.orientation)
application:setLogicalDimensions(conf.width, conf.height)
application:setScaleMode(conf.scaleMode)
application:setFps(conf.fps)
application:setKeepAwake(conf.keepAwake)
application:setBackgroundColor(0x152235)
application:set("cursor","blank")
if conf.debug == false then
application:setFullScreen(true)
end
local bg = Bitmap.new(Texture.new("Art/bg.png"))
setSize(bg,application:getContentWidth(),application:getContentHeight())
stage:addChild(bg)
local function onEnterFrame()
end
--stage:addEventListener(Event.ENTER_FRAME, onEnterFrame)
sceneManager = SceneManager.new({
["game"] = game,
["menu"] = menu,
["zoomIn"] = zoomIn
})
stage:addChild(sceneManager)
sceneManager:changeScene("game", 1, conf.transition, conf.easing)