-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.lua
37 lines (29 loc) · 957 Bytes
/
main.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
28
29
30
31
32
33
34
35
36
37
require "CiderDebugger";-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
--Debug the smart way with Cider!
--start coding and press the debug button
-- reomve the status bar from the screen
display.setStatusBar( display.HiddenStatusBar )
system.activate("multitouch")
local storyboard = require('storyboard');
physics = require "physics";
_W = display.contentWidth;
_w = display.contentWidth * .5;
_H = display.contentHeight;
_h = display.contentHeight * .5;
_PreviousScene = nil;
_CurrentScene = nil;
_ChangeScene = function(newscene)
storyboard.gotoScene(newscene, "fade", 800);
_PreviousScene = _CurrentScene;
_CurrentScene = newscene;
end
local function main()
-- Load Scene
-- Comment out to your scene so dev's faster
_ChangeScene('scenes.mainmenu');
end
main();