-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtitle3.lua
More file actions
214 lines (177 loc) ยท 6.79 KB
/
Copy pathtitle3.lua
File metadata and controls
214 lines (177 loc) ยท 6.79 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
--์๋ฉ์ฐฝ์์ ์๋ฉ ์ด๋ฏธ์ง
local loadsave = require( "loadsave" )
local composer = require( "composer" )
local scene = composer.newScene()
local json = require( "json" )
function scene:create( event )
local sceneGroup = self.view
print("title3")
-- ์๋ฉ ์ด๋ฏธ์ง ๊ฐ์ฒด ์์ฑ
--๋ฌด์ง๊ฐ ์๋ฉ --
local rainbow = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/๋ฌด์ง๊ฐ.png")
rainbow.x, rainbow.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(rainbow)
rainbow.alpha = 0
local mix_red = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/์ฐ์ ๋นจ๊ฐ.png")
mix_red.x, mix_red.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(mix_red)
mix_red.alpha = 0
local mix_yellow = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/์ฐ์ ๋
ธ๋.png")
mix_yellow.x, mix_yellow.y =display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(mix_yellow)
mix_yellow.alpha =0
local mix_blue = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/์ฐ์ ํ๋.png")
mix_blue.x,mix_blue.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(mix_blue)
mix_blue.alpha = 0
local mix_purple = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/์ฐ์ ๋ณด๋ผ.png")
mix_purple.x, mix_purple.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(mix_purple)
mix_purple.alpha = 0
local mix_green = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/์ฐ์ ์ด๋ก.png")
mix_green.x, mix_green.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(mix_green)
mix_green.alpha = 0
--ํผํฉ์๋ฉ--
local violet = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(๊ณต๋ถ)๋ฐ์ด์ฌ๋ .png")
violet.x, violet.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(violet)
violet.alpha = 0
local act_violet = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(ํ๋)๋ฐ์ด์ฌ๋ .png")
act_violet.x, act_violet.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(act_violet)
act_violet.alpha = 0
local orange = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(๊ณต๋ถ)์ฃผํฉ.png")
orange.x, orange.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(orange)
orange.alpha = 0
local act_orange = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(ํ๋)์ฃผํฉ.png")
act_orange.x, act_orange.y =display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(act_orange)
act_orange.alpha = 0
local chung = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(๊ณต๋ถ)์ฒญ๋ก.png")
chung.x, chung.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(chung)
chung.alpha = 0
local act_chung = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํผํฉ(ํ๋)์ฒญ๋ก.png")
act_chung.x, act_chung.y =display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(act_chung)
act_chung.alpha = 0
--ํ๋ ์๋ฉ
local good = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/๊ตฟ.png")
good.x, good.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(good)
good.alpha = 0
local bad = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/๋ฐฐ๋.png")
bad.x, bad.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(bad)
bad.alpha = 0
local pastell_yellow = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํ์คํ
๋
ธ๋.png")
pastell_yellow.x, pastell_yellow.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(pastell_yellow)
pastell_yellow.alpha = 0
local pastell_purple = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํ์คํ
๋ณด๋ผ.png")
pastell_purple.x, pastell_purple.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(pastell_purple)
pastell_purple.alpha = 0
local pastell_red = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํ์คํ
๋นจ๊ฐ.png")
pastell_red.x, pastell_red.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(pastell_red)
pastell_red.alpha = 0
local pastell_blue = display.newImage("์ด๋ฏธ์ง/์๋ฉ/์๋ฉ์นด๋/ํ์คํ
ํ๋.png")
pastell_blue.x, pastell_blue.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(pastell_blue)
pastell_blue.alpha =0
-- title1.lua์์ ํด๋ฆญ๋ pen์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ด
name = composer.getVariable("name")
if name == 1 then
mix_red.alpha = 1
elseif name == 2 then
mix_yellow.alpha = 1
elseif name == 3 then
mix_blue.alpha = 1
elseif name == 4 then
mix_green.alpha = 1
elseif name == 5 then
mix_purple.alpha = 1
elseif name == 6 then
pastell_red.alpha = 1
elseif name == 7 then
pastell_yellow.alpha = 1
elseif name == 8 then
pastell_blue.alpha = 1
elseif name == 9 then
pastell_green.alpha = 1
elseif name == 10 then
pastell_purple.alpha = 1
elseif name == 11 then
orange.alpha = 1
elseif name == 12 then
chung.alpha = 1
elseif name == 13 then
violet.alpha = 1
elseif name == 14 then
act_orange.alpha = 1
elseif name == 15 then
act_chung.alpha = 1
elseif name == 16 then
act_violet.alpha = 1
elseif name == 17 then
good.alpha = 1
elseif name == 18 then
bad.alpha = 1
elseif name == 19 then
rainbow.alpha = 1
elseif name == 20 then
print("F")
end
local function gotomap(event)
if event.phase == "began" then
composer.hideOverlay("title3")
end
end
local exit = display.newImage("์ด๋ฏธ์ง/๊ณตํต/x๋ฒํผ.png")
exit.x, exit.y = display.contentWidth*0.9207, display.contentHeight*0.0438
sceneGroup:insert(exit)
exit.anchorX,exit.anchorY = 0,0
exit:addEventListener("touch",gotomap)
end
function scene:show( event )
local sceneGroup = self.view
local phase = event.phase
if phase == "will" then
-- Called when the scene is still off screen and is about to move on screen
elseif phase == "did" then
-- Called when the scene is now on screen
--
-- INSERT code here to make the scene come alive
-- e.g. start timers, begin animation, play audio, etc.
end
end
function scene:hide( event )
local sceneGroup = self.view
local phase = event.phase
if event.phase == "will" then
-- C.alled when the scene is on screen and is about to move off screen
--
-- INSERT code here to pause the scene
-- e.g. stop timers, stop animation, unload sounds, etc.)
elseif phase == "did" then
-- Called when the scene is now off screen
end
end
function scene:destroy( event )
local sceneGroup = self.view
-- Called prior to the removal of scene's "view" (sceneGroup)
--
-- INSERT code here to cleanup the scene
-- e.g. remove display objects, remove touch listeners, save state, etc.
end
---------------------------------------------------------------------------------
-- Listener setup
scene:addEventListener( "create", scene )
scene:addEventListener( "show", scene )
scene:addEventListener( "hide", scene )
scene:addEventListener( "destroy", scene )
-----------------------------------------------------------------------------------------
return scene