-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsceneTransition.lua
50 lines (37 loc) · 1.26 KB
/
sceneTransition.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
38
39
40
41
42
43
44
45
46
47
48
49
50
module(..., package.seeall)
local composer = require( "composer" )
local M = { }
-- -----------------------------------------------------------------------------------
-- Todas as funções de transição
-- -----------------------------------------------------------------------------------
function M.gotoCredits()
composer.gotoScene( "credits", { time = 800, effect = "crossFade" } )
end
function M.gotoProgress()
composer.gotoScene( "progress", { time = 800, effect = "crossFade" } )
end
function M.gotoMenu()
composer.gotoScene( "menu", { time = 800, effect = "crossFade" } )
end
function M.gotoHouse()
composer.gotoScene( "house", { time = 800, effect = "crossFade" } )
end
function M.gotoSchool()
composer.gotoScene( "school", { time = 800, effect = "crossFade" } )
end
function M.gotoRestaurant()
composer.gotoScene( "restaurant", { time = 800, effect = "crossFade" } )
end
function M.gotoMap()
composer.gotoScene( "map", { time = 4000 } )
end
function M.gotoNewGame()
composer.gotoScene( "newGame", { time = 800, effect = "crossFade" } )
end
function M.gotoChooseGameFile()
composer.gotoScene( "chooseGameFile", { time = 800, effect = "crossFade" } )
end
function M.gotoWarning()
composer.gotoScene( "warning", { time = 800, effect = "crossFade" } )
end
return M