-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzcompliment_script.lua
More file actions
689 lines (586 loc) ยท 22.2 KB
/
Copy pathzcompliment_script.lua
File metadata and controls
689 lines (586 loc) ยท 22.2 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
--์นญ์ฐฌ ์คํฌ๋ฆฝํธ
local composer = require( "composer" )
local scene = composer.newScene()
local loadsave = require( "loadsave" )
function scene:create( event )
print("zcompliment_script๋ก ๋ค์ด์ด")
local sceneGroup = self.view
local loadedSettings = loadsave.loadTable( "settings.json" )
mainName = loadedSettings.name
--์ฅ๋ฉด์ ํ
local options={
effect="crossFade",
time=1000
}
local background_1 = display.newImageRect("์ด๋ฏธ์ง/๋ํ/์ฐ์ ๋ฐฐ๊ฒฝ/๋นจ๊ฐ.png",display.contentWidth, display.contentHeight)
background_1.x,background_1.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(background_1)
background_1.alpha = 0
local background_2 = display.newImageRect("์ด๋ฏธ์ง/๋ํ/์ฐ์ ๋ฐฐ๊ฒฝ/๋
ธ๋.png",display.contentWidth, display.contentHeight)
background_2.x,background_2.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(background_2)
background_2.alpha = 0
local background_3 = display.newImageRect("์ด๋ฏธ์ง/๋ํ/์ฐ์ ๋ฐฐ๊ฒฝ/์ด๋ก.png",display.contentWidth, display.contentHeight)
background_3.x,background_3.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(background_3)
background_3.alpha = 0
local background_4 = display.newImageRect("์ด๋ฏธ์ง/๋ํ/์ฐ์ ๋ฐฐ๊ฒฝ/ํ๋.png",display.contentWidth, display.contentHeight)
background_4.x,background_4.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(background_4)
background_4.alpha = 0
local background_5 = display.newImageRect("์ด๋ฏธ์ง/๋ํ/์ฐ์ ๋ฐฐ๊ฒฝ/๋ณด๋ผ.png",display.contentWidth, display.contentHeight)
background_5.x,background_5.y = display.contentWidth/2,display.contentHeight/2
sceneGroup:insert(background_5)
background_5.alpha = 0
--๋ธ๋ฆฌ
local blli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ธ๋ฆฌ/๊ธฐ๋ณธ.png")
blli.x, blli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(blli)
blli.alpha = 0
local happy_blli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ธ๋ฆฌ/๊ธฐ์จ.png")
happy_blli.x, happy_blli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(happy_blli)
happy_blli.alpha = 0
local nangam_blli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ธ๋ฆฌ/๋๊ฐ.png")
nangam_blli.x, nangam_blli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(nangam_blli)
nangam_blli.alpha = 0
local choose11 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/๋ธ๋ฆฌ.png")
choose11.x, choose11.y = display.contentWidth*0.23,display.contentHeight*0.47
sceneGroup:insert(choose11)
choose11.alpha = 0
local choose12 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/๋ธ๋ฆฌ.png")
choose12.x, choose12.y = display.contentWidth*0.77,display.contentHeight*0.47
sceneGroup:insert(choose12)
choose12.alpha = 0
--์กฐ์ด
local joy = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์กฐ์ด/๊ธฐ๋ณธ.png")
joy.x, joy.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(joy)
joy.alpha = 0
local happy_joy = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์กฐ์ด/๊ธฐ์จ.png")
happy_joy.x, happy_joy.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(happy_joy)
happy_joy.alpha = 0
local nangam_joy = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์กฐ์ด/๋๊ฐ.png")
nangam_joy.x, nangam_joy.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(nangam_joy)
nangam_joy.alpha = 0
local sad_joy = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์กฐ์ด/์ฌํ.png")
sad_joy.x, sad_joy.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(sad_joy)
sad_joy.alpha = 0
local choose21 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์กฐ์ด.png")
choose21.x, choose21.y = display.contentWidth*0.23,display.contentHeight*0.47
sceneGroup:insert(choose21)
choose21.alpha = 0
local choose22 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์กฐ์ด.png")
choose22.x, choose22.y = display.contentWidth*0.77,display.contentHeight*0.47
sceneGroup:insert(choose22)
choose22.alpha = 0
--์๋ฆฌ
local soli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์๋ฆฌ/๊ธฐ๋ณธ.png")
soli.x, soli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(soli)
soli.alpha = 0
local happy_soli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์๋ฆฌ/๊ธฐ์จ.png")
happy_soli.x, happy_soli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(happy_soli)
happy_soli.alpha = 0
local nangam_soli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์๋ฆฌ/๋๊ฐ.png")
nangam_soli.x, nangam_soli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(nangam_soli)
nangam_soli.alpha = 0
local sad_soli = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์๋ฆฌ/์ฌํ.png")
sad_soli.x, sad_soli.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(sad_soli)
sad_soli.alpha = 0
local choose31 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์๋ฆฌ.png")
choose31.x, choose31.y = display.contentWidth*0.23,display.contentHeight*0.47
sceneGroup:insert(choose31)
choose31.alpha = 0
local choose32 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์๋ฆฌ.png")
choose32.x, choose32.y = display.contentWidth*0.77,display.contentHeight*0.47
sceneGroup:insert(choose32)
choose32.alpha = 0
--์์ฆ
local wiz = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์์ฆ/๊ธฐ๋ณธ.png")
wiz.x, wiz.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(wiz)
wiz.alpha = 0
local happy_wiz = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์์ฆ/๊ธฐ์จ.png")
happy_wiz.x, happy_wiz.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(happy_wiz)
happy_wiz.alpha = 0
local nangam_wiz = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์์ฆ/๋๊ฐ.png")
nangam_wiz.x, nangam_wiz.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(nangam_wiz)
nangam_wiz.alpha = 0
local sad_wiz = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/์์ฆ/์ฌํ.png")
sad_wiz.x, sad_wiz.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(sad_wiz)
sad_wiz.alpha = 0
local choose41 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์์ฆ.png")
choose41.x, choose41.y = display.contentWidth*0.23,display.contentHeight*0.47
sceneGroup:insert(choose41)
choose41.alpha = 0
local choose42 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/์์ฆ.png")
choose42.x, choose42.y = display.contentWidth*0.77,display.contentHeight*0.47
sceneGroup:insert(choose42)
choose42.alpha = 0
--๋ณด๋ผ
local lay = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ ์ด/๊ธฐ๋ณธ.png")
lay.x, lay.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(lay)
lay.alpha = 0
local alay = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ ์ด/๊ธฐ๋ณธ.png")
alay.x, alay.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(alay)
alay.alpha = 0
local happy_lay = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ ์ด/๊ธฐ์จ.png")
happy_lay.x, happy_lay.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(happy_lay)
happy_lay.alpha = 0
local sad_lay = display.newImage("์ด๋ฏธ์ง/์บ๋ฆญํฐ/๋ ์ด/์ฌํ.png")
sad_lay.x, sad_lay.y = display.contentWidth*0.53,display.contentHeight*0.5
sceneGroup:insert(sad_lay)
sad_lay.alpha = 0
local choose51 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/๋ ์ด.png")
choose51.x, choose51.y = display.contentWidth*0.23,display.contentHeight*0.47
sceneGroup:insert(choose51)
choose51.alpha = 0
local choose52 = display.newImage("์ด๋ฏธ์ง/๋ํ/์ ํ์ง/๋ ์ด.png")
choose52.x, choose52.y = display.contentWidth*0.77,display.contentHeight*0.47
sceneGroup:insert(choose52)
choose52.alpha = 0
local script_1 = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/๋ธ๋ฆฌ.png")
script_1.x,script_1.y = display.contentWidth*0.5,display.contentHeight*0.7176
sceneGroup:insert(script_1)
script_1.alpha = 0
script_1.anchorY=0
local script_2 = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/์กฐ์ด.png")
script_2.x, script_2.y = display.contentWidth*0.5,display.contentHeight*0.7176
sceneGroup:insert(script_2)
script_2.alpha = 0
script_2.anchorY=0
local script_3 = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/์๋ฆฌ.png")
script_3.x, script_3.y = display.contentWidth*0.5,display.contentHeight*0.7176
sceneGroup:insert(script_3)
script_3.alpha = 0
script_3.anchorY=0
local script_4 = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/์์ฆ.png")
script_4.x, script_4.y = display.contentWidth*0.5,display.contentHeight*0.7176
sceneGroup:insert(script_4)
script_4.alpha = 0
script_4.anchorY=0
local script_5 = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/๋ ์ด.png")
script_5.x, script_5.y = display.contentWidth*0.5,display.contentHeight*0.7176
sceneGroup:insert(script_5)
script_5.alpha = 0
script_5.anchorY=0
local my_daesapan = display.newImage("์ด๋ฏธ์ง/๋ํ/๋ํ์ฐฝ/์ฃผ์ธ๊ณต.png")
my_daesapan.x, my_daesapan.y = display.contentWidth/2,display.contentHeight*0.7176
sceneGroup:insert(my_daesapan)
my_daesapan.alpha=0
my_daesapan.anchorY=0
local option = {
text = mainName,
x = display.contentWidth*0.175,
y = display.contentHeight*0.73,
font = "font/NanumSquareRoundB",
fontSize =45,
align="center"
}
local my = display.newText(option)
my.anchorY = 0
my.size = 45
my.alpha = 0
my:setFillColor(1)
sceneGroup:insert(my)
--๋ธ๋ฆฌ
local daewha1 = {}
local daewha2 = {}
local daewha3 = {}
--2์
local text1 = {
mainName .."์ ๋ฌด์์ด๋ ์ด์ฌํ ํ๋ ๊ฒ ๊ฐ์. ์ด์ฌํ ํ๋ค๋ ๊ฑด ์ ๋ง ํ๋ ์ผ์ธ๋ฐ ๋๋จํด. ๋๋ ๋์ ๊ทธ๋ฐ ์ ์ด ์ข์!"
}
--4์
local text2 = {
"๋ํ ์ ๊ณต์ฃผ๋์ ํญ์ ์๋ฅํ๊ณ ๋ฐ๋ปํ ๋ง์์จ๋ฅผ ๊ฐ์ง๊ณ ์์ด. ๊ทธ๋ฆฌ๊ณ "..mainName .."์ ๊ณต์ฃผ๋์ฒ๋ผ ๋ฐ๋ปํด!"
}
--6์
local text3 = {
mainName .."์ ์๋ฆ๋ค์ด ์ฌ๋ ์ด์ผ๊ธฐ ๊ฐ์ ๋ง์ ํ๋๊ตฌ๋! ์ธ์ ๋ ์น๊ตฌ๋ฅผ ์๊ฒ ํด์ฃผ๋ ๋ง์ ํ๋ "..mainName .."์ ์ ๋ง ๋ฉ์ ธ!"
}
i = 1
--2์
daewha1[i] = display.newText(text1[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha1[i].anchorX,daewha1[i].anchorY = 0,0
daewha1[i]:setFillColor(0)
daewha1[i].alpha = 0
daewha1[i].size = 30
sceneGroup:insert(daewha1[i])
--4์
daewha2[i] = display.newText(text2[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha2[i].anchorX,daewha2[i].anchorY = 0,0
daewha2[i]:setFillColor(0)
daewha2[i].alpha = 0
daewha2[i].size = 30
sceneGroup:insert(daewha2[i])
--6์
daewha3[i] = display.newText(text3[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha3[i].anchorX,daewha3[i].anchorY = 0,0
daewha3[i]:setFillColor(0)
daewha3[i].alpha = 0
daewha3[i].size = 30
sceneGroup:insert(daewha3[i])
--์กฐ์ด
local daewha4 = {}
local daewha5 = {}
local daewha6 = {}
--2์
local text4 = {
mainName .."! ๋ ์ ๋ง ํ๋ฐํ๊ตฌ๋! ".. mainName .."๊ณผ ๊ฐ์ด ์์ผ๋ฉด ํญ์ ์ฆ๊ฒ๊ฒ ๋
ธ๋ํ ์ ์์ ๊ฒ ๊ฐ์!"
}
--4์
local text5 = {
"๋ ๊ทธ๊ฑฐ ์๋? ๋ ๋ชฌ๊ณผ ๋ฐ๋๋๋ ์ ์ด์ธ๋ฆฌ๋ ์์์ด์ผ. ๊ทธ๋ฆฌ๊ณ ๋์ ๋๋ ๋ง์น ๋ ๋ชฌ๊ณผ ๋ฐ๋๋ ๊ฐ์."
}
--6์
local text6 = {
"์ ๋ง ์ต๊ณ ์ผ! ๋ง์น ์์ฝ๋ฅด๋ฅผ ๋ถ๋ฅด๋ ์๋ฒฝํ ๋ฌด๋ ๊ฐ์์ด! ๊ฐ์ด ํด๋ด๊ธฐ ์ํด์ ์ต์ ์ ๋คํ "..mainName.."์ ๋ฐ์๋ฐ์ ๋ง๋
ํด. "
}
i = 1
--2์
daewha4[i] = display.newText(text4[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha4[i].anchorX,daewha4[i].anchorY = 0,0
daewha4[i]:setFillColor(0)
daewha4[i].alpha = 0
daewha4[i].size = 30
sceneGroup:insert(daewha4[i])
--4์
daewha5[i] = display.newText(text5[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha5[i].anchorX,daewha5[i].anchorY = 0,0
daewha5[i]:setFillColor(0)
daewha5[i].alpha = 0
daewha5[i].size = 30
sceneGroup:insert(daewha5[i])
--6์
daewha6[i] = display.newText(text6[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha6[i].anchorX,daewha6[i].anchorY = 0,0
daewha6[i]:setFillColor(0)
daewha6[i].alpha = 0
daewha6[i].size = 30
sceneGroup:insert(daewha6[i])
--์์ฆ
local daewha7 = {}
local daewha8 = {}
local daewha9 = {}
--2์
local text7 = {
mainName .."์, ์ฐ๋ฆฌโฆ ๋ด๊ฐ ์๊ฐํ๋ ๊ฒ๋ณด๋ค ๋ ๋ง์ด ์ ํตํ๋ ๊ฒ ๊ฐ์. ๊ทธ๋ฐ ๊ฑฐ ์์์, '์์์ด ํตํ๋ ์ฌ์ด'!"
}
--4์
local text8 = {
"์ธ์ ๊ฐ ์ฑ
์์ ๋ดค๋๋ฐ, ์น๊ตฌ๋ ๋ ๋ค๋ฅธ ๋๋. "..mainName.."๋์๊ฒ์ ๊ฝค ์์ฃผ ๋ด๊ฐ ๋ณด์ฌ! ๋๋ํ๊ณ ํธ๊ธฐ์ฌ ๋ง์ ๋ชจ์ต ๋ง์ด์ผ!"
}
--6์
local text9 = {
"์ด๊ฑด ๋น๋ฐ์ธ๋ฐ, ๋ด๊ฐ ์๋ก ์์ํ ์ฐ๊ตฌ๊ฐ ์๊ฑฐ๋ . ์งํ์ ์์์ ๊ฐ์ถ ๋์๊ฒ๋ง ์ด์ง ์๋ ค์ค๊ฒ. ๋ฐ๋กโฆ '๋ง๋ฅธํ๋์ ๋ ๋ฒผ๋ฝ ๋ง๋ ๋ฒ'์ด์ผ! ์ฐธ์ฌํ๊ณ ์ถ์ผ๋ฉด ์ธ์ ๋ ์ง ์ค๋ผ๊ตฌ. ๋๋ผ๋ฉด ํ์์ด์ผ!"
}
i = 1
--2์
daewha7[i] = display.newText(text7[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha7[i].anchorX,daewha7[i].anchorY = 0,0
daewha7[i]:setFillColor(0)
daewha7[i].alpha = 0
daewha7[i].size = 30
sceneGroup:insert(daewha7[i])
--4์
daewha8[i] = display.newText(text8[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha8[i].anchorX,daewha8[i].anchorY = 0,0
daewha8[i]:setFillColor(0)
daewha8[i].alpha = 0
daewha8[i].size = 30
sceneGroup:insert(daewha8[i])
--6์
daewha9[i] = display.newText(text9[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha9[i].anchorX,daewha9[i].anchorY = 0,0
daewha9[i]:setFillColor(0)
daewha9[i].alpha = 0
daewha9[i].size = 30
sceneGroup:insert(daewha9[i])
--์๋ฆฌ
local daewha10 = {}
local daewha11 = {}
local daewha12 = {}
--2์
local text10 = {
mainName .."์, ์ด์ ์ ์์ด์คํฌ๋ฆผ์ ๋์๊ฒ ์๋ณดํด์ค์ ์ ๋ง ๊ณ ๋ง์~ ๋ค์ ํ ๋๋ฅผ ์ํด ์ค๋์ ๋ด๊ฐ ๋ฏผํธ ์ด์ฝ๋ฆฟ์ ์ค๋นํ๋๋ฐ, ๊ฐ์ด ๋จน์๋?"
}
--4์
local text11 = {
mainName.."์, ๋์ ํจ๊ป ์๋ชฉ์์ ๊ฐ ์ ์์ด์ ๋๋ฌด ์ฆ๊ฑฐ์ ์ด~ ๋ค๋ฅธ ๊ณณ์ ๊ฐ ์ ์์๋๋ฐ๋ ๋ด๊ฐ ์ข์ํ๋ ์๋ชฉ์์ ์ ํํ ๋๋ ์ ๋ง ๋ฐฐ๋ ค์ฌ์ด ๋์น๋ ๊ฒ ๊ฐ์."
}
--6์
local text12 = {
mainName.."์, ๋๋ ์ ๋ง ๋ง์์ด ๋ฐ๋ปํ ์ฌ๋์ธ ๊ฒ ๊ฐ์. ๋๋ ์ฐ๋ฆฌ๋ฅผ ํ์ด์ฃผ๋ ๋
น์ ์ฒ์ฒ๋ผ ๋์ ๋ง์์ ๊ฐ์ก์ด. ์ธ์ ๋ ๊ณ ๋ง์~"
}
i = 1
--2์
daewha10[i] = display.newText(text10[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha10[i].anchorX,daewha10[i].anchorY = 0,0
daewha10[i]:setFillColor(0)
daewha10[i].alpha = 0
daewha10[i].size = 30
sceneGroup:insert(daewha10[i])
--4์
daewha11[i] = display.newText(text11[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha11[i].anchorX,daewha11[i].anchorY = 0,0
daewha11[i]:setFillColor(0)
daewha11[i].alpha = 0
daewha11[i].size = 30
sceneGroup:insert(daewha11[i])
--6์
daewha12[i] = display.newText(text12[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha12[i].anchorX,daewha12[i].anchorY = 0,0
daewha12[i]:setFillColor(0)
daewha12[i].alpha = 0
daewha12[i].size = 30
sceneGroup:insert(daewha12[i])
--๋ ์ด
local daewha13 = {}
local daewha14 = {}
local daewha15 = {}
--2์
local text13 = {
mainName .."์, ๋ด๊ฐ ๋์ดํฐ์์ ์ ๋๋ก ๋๋ตํ์ง ๋ชปํ์ ๋ ๋์์ค์ ๊ณ ๋ง์. ๋๋ ์ธ์ ๊ฐ ๋์ฒ๋ผ ์ฉ๊ฐํด์ง ์ ์๊ฒ ์งโฆ?"
}
--4์
local text14 = {
mainName.."์, ๋๋ ์ฐธ ์ฉ๊ฐํ๊ณ ๋ค์ ํด. ๋ฌด์์ด ์ฑ
์ ํผ์์ ์ฝ์ง ๋ชปํ๋ ๋๋ฅผ ์ํด ๊ณ์ ์์ด์ฃผ๋ค๋โฆโฆ ๋์ ํจ๊ป๋ผ๋ฉด ๋ญ๋ ๊ฐ๋ฅํ ๊ฒ ๊ฐ์."
}
--6์
local text15 = {
mainName.."์, ์ฉ๊ฐํ ๋ค ๋ชจ์ต์ ๋ณด๋ฉฐ ๋๋ ํจ๊ป ์ฉ๊ธฐ๋ฅผ ์ป๊ณ ์์ด. ๋๋ฅผ ๋ณธ๋ฐ์์ ๋๋ ๋์ฑ ์ฉ๊ฐํ ์ฌ๋์ด ๋๋๋ก ๋
ธ๋ ฅํ ๊ฒ!"
}
i = 1
--2์
daewha13[i] = display.newText(text13[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha13[i].anchorX,daewha13[i].anchorY = 0,0
daewha13[i]:setFillColor(0)
daewha13[i].alpha = 0
daewha13[i].size = 30
sceneGroup:insert(daewha13[i])
--4์
daewha14[i] = display.newText(text14[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha14[i].anchorX,daewha14[i].anchorY = 0,0
daewha14[i]:setFillColor(0)
daewha14[i].alpha = 0
daewha14[i].size = 30
sceneGroup:insert(daewha14[i])
--6์
daewha15[i] = display.newText(text15[i],display.contentWidth*0.0833,display.contentHeight*0.8009,"font/NanumSquare_acB.ttf")
daewha15[i].anchorX,daewha15[i].anchorY = 0,0
daewha15[i]:setFillColor(0)
daewha15[i].alpha = 0
daewha15[i].size = 30
sceneGroup:insert(daewha15[i])
local num = 0
local function touch4(event)
if num == 1 then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
num = num + 1
end
local loadedSettings = loadsave.loadTable( "settings.json" )
local color = composer.getVariable("color")
--print(loadedSettings.limited_num)
if color == "1" then --๋ธ๋ฆฌ
local function next(event)
if event.phase == "began" then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
end
if loadedSettings.script6 == 1 then
local i = 1
background_1.alpha = 1
happy_blli.alpha = 1
daewha3[i].alpha = 1
script_1.alpha = 1
script_1:addEventListener("touch", next)
elseif loadedSettings.script4 == 1 then
local i = 1
background_1.alpha = 1
happy_blli.alpha = 1
daewha2[i].alpha = 1
script_1.alpha = 1
script_1:addEventListener("touch", next)
elseif loadedSettings.script2 == 1 then
local i = 1
background_1.alpha = 1
happy_blli.alpha = 1
daewha1[i].alpha = 1
script_1.alpha = 1
script_1:addEventListener("touch", next)
end
elseif color == "2" then --์์ฆ
local function next(event)
if event.phase == "began" then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
end
if loadedSettings.script6 == 1 then
local i = 1
background_4.alpha = 1
happy_wiz.alpha = 1
daewha9[i].alpha = 1
script_4.alpha = 1
script_4:addEventListener("touch", next)
elseif loadedSettings.script4 == 1 then
local i = 1
background_4.alpha = 1
happy_wiz.alpha = 1
daewha8[i].alpha = 1
script_4.alpha = 1
script_4:addEventListener("touch", next)
elseif loadedSettings.script2 == 1 then
local i = 1
background_4.alpha = 1
happy_wiz.alpha = 1
daewha7[i].alpha = 1
script_4.alpha = 1
script_4:addEventListener("touch", next)
end
elseif color == "3" then --์กฐ์ด
local function next(event)
if event.phase == "began" then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
end
if loadedSettings.script6 == 1 then
local i = 1
background_2.alpha = 1
happy_joy.alpha = 1
daewha6[i].alpha = 1
script_2.alpha = 1
script_2:addEventListener("touch", next)
elseif loadedSettings.script4 == 1 then
local i = 1
background_2.alpha = 1
happy_joy.alpha = 1
daewha5[i].alpha = 1
script_2.alpha = 1
script_2:addEventListener("touch", next)
elseif loadedSettings.script2 == 1 then
local i = 1
background_2.alpha = 1
happy_joy.alpha = 1
daewha4[i].alpha = 1
script_2.alpha = 1
script_2:addEventListener("touch", next)
end
elseif color == "4" then --๋ ์ด
local function next(event)
if event.phase == "began" then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
end
if loadedSettings.script6 == 1 then
local i = 1
background_5.alpha = 1
happy_lay.alpha = 1
daewha15[i].alpha = 1
script_5.alpha = 1
script_5:addEventListener("touch", next)
elseif loadedSettings.script4 == 1 then
local i = 1
background_5.alpha = 1
happy_lay.alpha = 1
daewha14[i].alpha = 1
script_5.alpha = 1
script_5:addEventListener("touch", next)
elseif loadedSettings.script2 == 1 then
local i = 1
background_5.alpha = 1
happy_lay.alpha = 1
daewha13[i].alpha = 1
script_5.alpha = 1
script_5:addEventListener("touch", next)
end
elseif color == "5" then --์๋ฆฌ
local function next(event)
if event.phase == "began" then
composer.removeScene("zcompliment_script")
composer.gotoScene("view01Map",options)
end
end
if loadedSettings.script6 == 1 then
local i = 1
background_3.alpha = 1
happy_soli.alpha = 1
daewha12[i].alpha = 1
script_3.alpha = 1
script_3:addEventListener("touch", next)
elseif loadedSettings.script4 == 1 then
local i = 1
background_3.alpha = 1
happy_soli.alpha = 1
daewha11[i].alpha = 1
script_3.alpha = 1
script_3:addEventListener("touch", next)
elseif loadedSettings.script2 == 1 then
local i = 1
background_3.alpha = 1
happy_soli.alpha = 1
daewha10[i].alpha = 1
script_3.alpha = 1
script_3:addEventListener("touch", next)
end
end
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
-- Called 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