Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tb_project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
钱根
tb_project
Commits
1c5772e1
Commit
1c5772e1
authored
Aug 12, 2021
by
Master Q
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方连点
parent
58a746b7
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
967 additions
and
24 deletions
+967
-24
ResJson.ts
src/ResJson.ts
+932
-7
CountDownComp.ts
src/components/CountDownComp.ts
+8
-0
GameOverPanel.ts
src/panels/GameOverPanel.ts
+12
-11
PrizeShowPanel.ts
src/panels/PrizeShowPanel.ts
+1
-0
GameOverScene.ts
src/scenes/GameOverScene/GameOverScene.ts
+6
-3
GameScene.ts
src/scenes/GameScene/GameScene.ts
+8
-3
No files found.
src/ResJson.ts
View file @
1c5772e1
...
@@ -2,28 +2,953 @@ export const ResJson = {
...
@@ -2,28 +2,953 @@ export const ResJson = {
"groups"
:
[
"groups"
:
[
{
{
"keys"
:
"countdown-back.png"
,
"keys"
:
"countdown-back.png"
,
"name"
:
"CountDownComp"
"name"
:
"CountDownComp"
,
"atlas"
:
{
"countdown-back.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
207
,
"h"
:
57
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
207
,
"sh"
:
57
,
"ro"
:
false
}
}
},
},
{
{
"keys"
:
"back-home.png,jump-icon.png,more-btn.png,new-record-icon.png,product-link__icon.png,share-btn.png"
,
"keys"
:
"back-home.png,jump-icon.png,more-btn.png,new-record-icon.png,product-link__icon.png,share-btn.png"
,
"name"
:
"GameOver"
"name"
:
"GameOver"
,
"atlas"
:
{
"more-btn.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
655
,
"h"
:
120
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
655
,
"sh"
:
120
,
"ro"
:
false
},
"share-btn.png"
:
{
"x"
:
2
,
"y"
:
124
,
"w"
:
655
,
"h"
:
120
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
655
,
"sh"
:
120
,
"ro"
:
false
},
"back-home.png"
:
{
"x"
:
2
,
"y"
:
246
,
"w"
:
130
,
"h"
:
43
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
130
,
"sh"
:
43
,
"ro"
:
false
},
"jump-icon.png"
:
{
"x"
:
2
,
"y"
:
291
,
"w"
:
102
,
"h"
:
54
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
102
,
"sh"
:
54
,
"ro"
:
false
},
"new-record-icon.png"
:
{
"x"
:
106
,
"y"
:
291
,
"w"
:
102
,
"h"
:
37
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
102
,
"sh"
:
37
,
"ro"
:
false
},
"product-link__icon.png"
:
{
"x"
:
210
,
"y"
:
246
,
"w"
:
87
,
"h"
:
87
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
87
,
"sh"
:
87
,
"ro"
:
false
}
}
},
},
{
{
"keys"
:
"over-back.png,over-tipsicon.png,prize-icon1.png"
,
"keys"
:
"over-back.png,over-tipsicon.png,prize-icon1.png"
,
"name"
:
"GameOverPanel"
"name"
:
"GameOverPanel"
,
"atlas"
:
{
"over-back.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
590
,
"h"
:
804
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
590
,
"sh"
:
804
,
"ro"
:
false
},
"prize-icon1.png"
:
{
"x"
:
594
,
"y"
:
2
,
"w"
:
464
,
"h"
:
220
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
464
,
"sh"
:
220
,
"ro"
:
true
},
"over-tipsicon.png"
:
{
"x"
:
594
,
"y"
:
468
,
"w"
:
172
,
"h"
:
37
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
172
,
"sh"
:
37
,
"ro"
:
false
}
}
},
},
{
{
"keys"
:
"balance_guidance.png,guidance-t1.png,num0.png,num1.png,num2.png,num3.png,num4.png,num5.png,num6.png,num7.png,num8.png,num9.png,numb0.png,numb1.png,numb2.png,numb3.png,numb4.png,numb5.png,numb6.png,numb7.png,numb8.png,numb9.png,numbp.png,nump.png,p1-b.png,p1.png,p10-b.png,p10.png,p11-b.png,p11.png,p12-b.png,p12.png,p13-b.png,p13.png,p14-b.png,p14.png,p15-b.png,p15.png,p16-b.png,p16.png,p17-b.png,p17.png,p18-b.png,p18.png,p19-b.png,p19.png,p2-b.png,p2.png,p20-b.png,p20.png,p3-b.png,p3.png,p4-b.png,p4.png,p5-b.png,p5.png,p6-b.png,p6.png,p7-b.png,p7.png,p8-b.png,p8.png,p9-b.png,p9.png"
,
"keys"
:
"balance_guidance.png,guidance-t1.png,num0.png,num1.png,num2.png,num3.png,num4.png,num5.png,num6.png,num7.png,num8.png,num9.png,numb0.png,numb1.png,numb2.png,numb3.png,numb4.png,numb5.png,numb6.png,numb7.png,numb8.png,numb9.png,numbp.png,nump.png,p1-b.png,p1.png,p10-b.png,p10.png,p11-b.png,p11.png,p12-b.png,p12.png,p13-b.png,p13.png,p14-b.png,p14.png,p15-b.png,p15.png,p16-b.png,p16.png,p17-b.png,p17.png,p18-b.png,p18.png,p19-b.png,p19.png,p2-b.png,p2.png,p20-b.png,p20.png,p3-b.png,p3.png,p4-b.png,p4.png,p5-b.png,p5.png,p6-b.png,p6.png,p7-b.png,p7.png,p8-b.png,p8.png,p9-b.png,p9.png"
,
"name"
:
"GameScene"
"name"
:
"GameScene"
,
"atlas"
:
{
"guidance-t1.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
574
,
"h"
:
183
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
574
,
"sh"
:
183
,
"ro"
:
false
},
"p12-b.png"
:
{
"x"
:
2
,
"y"
:
187
,
"w"
:
335
,
"h"
:
535
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
335
,
"sh"
:
535
,
"ro"
:
true
},
"p12.png"
:
{
"x"
:
2
,
"y"
:
524
,
"w"
:
335
,
"h"
:
535
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
335
,
"sh"
:
535
,
"ro"
:
true
},
"p20-b.png"
:
{
"x"
:
578
,
"y"
:
2
,
"w"
:
287
,
"h"
:
535
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
287
,
"sh"
:
535
,
"ro"
:
false
},
"p20.png"
:
{
"x"
:
2
,
"y"
:
861
,
"w"
:
287
,
"h"
:
535
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
287
,
"sh"
:
535
,
"ro"
:
true
},
"p11-b.png"
:
{
"x"
:
867
,
"y"
:
2
,
"w"
:
496
,
"h"
:
533
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
496
,
"sh"
:
533
,
"ro"
:
false
},
"p11.png"
:
{
"x"
:
867
,
"y"
:
537
,
"w"
:
496
,
"h"
:
533
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
496
,
"sh"
:
533
,
"ro"
:
false
},
"p13-b.png"
:
{
"x"
:
2
,
"y"
:
1150
,
"w"
:
421
,
"h"
:
533
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
421
,
"sh"
:
533
,
"ro"
:
true
},
"p13.png"
:
{
"x"
:
537
,
"y"
:
1150
,
"w"
:
421
,
"h"
:
533
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
421
,
"sh"
:
533
,
"ro"
:
true
},
"balance_guidance.png"
:
{
"x"
:
539
,
"y"
:
539
,
"w"
:
258
,
"h"
:
532
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
258
,
"sh"
:
532
,
"ro"
:
false
},
"p3-b.png"
:
{
"x"
:
1365
,
"y"
:
2
,
"w"
:
532
,
"h"
:
520
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
532
,
"sh"
:
520
,
"ro"
:
true
},
"p3.png"
:
{
"x"
:
1365
,
"y"
:
536
,
"w"
:
532
,
"h"
:
520
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
532
,
"sh"
:
520
,
"ro"
:
true
},
"p9-b.png"
:
{
"x"
:
1072
,
"y"
:
1072
,
"w"
:
487
,
"h"
:
532
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
487
,
"sh"
:
532
,
"ro"
:
true
},
"p9.png"
:
{
"x"
:
2
,
"y"
:
1573
,
"w"
:
487
,
"h"
:
532
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
487
,
"sh"
:
532
,
"ro"
:
true
},
"p4-b.png"
:
{
"x"
:
1072
,
"y"
:
1561
,
"w"
:
499
,
"h"
:
531
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
499
,
"sh"
:
531
,
"ro"
:
true
},
"p4.png"
:
{
"x"
:
1605
,
"y"
:
1561
,
"w"
:
499
,
"h"
:
531
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
499
,
"sh"
:
531
,
"ro"
:
true
},
"p6-b.png"
:
{
"x"
:
536
,
"y"
:
1573
,
"w"
:
526
,
"h"
:
368
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
526
,
"sh"
:
368
,
"ro"
:
false
},
"p6.png"
:
{
"x"
:
1606
,
"y"
:
1070
,
"w"
:
526
,
"h"
:
368
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
526
,
"sh"
:
368
,
"ro"
:
false
},
"p2-b.png"
:
{
"x"
:
2
,
"y"
:
2062
,
"w"
:
524
,
"h"
:
518
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
524
,
"sh"
:
518
,
"ro"
:
false
},
"p2.png"
:
{
"x"
:
528
,
"y"
:
2062
,
"w"
:
524
,
"h"
:
518
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
524
,
"sh"
:
518
,
"ro"
:
false
},
"p18-b.png"
:
{
"x"
:
1887
,
"y"
:
2
,
"w"
:
270
,
"h"
:
521
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
270
,
"sh"
:
521
,
"ro"
:
false
},
"p18.png"
:
{
"x"
:
1887
,
"y"
:
525
,
"w"
:
270
,
"h"
:
521
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
270
,
"sh"
:
521
,
"ro"
:
false
},
"p10-b.png"
:
{
"x"
:
1054
,
"y"
:
2062
,
"w"
:
502
,
"h"
:
513
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
502
,
"sh"
:
513
,
"ro"
:
false
},
"p10.png"
:
{
"x"
:
1558
,
"y"
:
2062
,
"w"
:
502
,
"h"
:
513
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
502
,
"sh"
:
513
,
"ro"
:
false
},
"p5-b.png"
:
{
"x"
:
2062
,
"y"
:
2062
,
"w"
:
460
,
"h"
:
513
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
460
,
"sh"
:
513
,
"ro"
:
false
},
"p5.png"
:
{
"x"
:
2134
,
"y"
:
1048
,
"w"
:
460
,
"h"
:
513
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
460
,
"sh"
:
513
,
"ro"
:
true
},
"p15-b.png"
:
{
"x"
:
2138
,
"y"
:
1510
,
"w"
:
499
,
"h"
:
463
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
499
,
"sh"
:
463
,
"ro"
:
true
},
"p15.png"
:
{
"x"
:
2159
,
"y"
:
2
,
"w"
:
499
,
"h"
:
463
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
499
,
"sh"
:
463
,
"ro"
:
false
},
"p14-b.png"
:
{
"x"
:
2159
,
"y"
:
467
,
"w"
:
438
,
"h"
:
460
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
438
,
"sh"
:
460
,
"ro"
:
false
},
"p14.png"
:
{
"x"
:
2
,
"y"
:
2582
,
"w"
:
438
,
"h"
:
460
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
438
,
"sh"
:
460
,
"ro"
:
true
},
"p8-b.png"
:
{
"x"
:
2524
,
"y"
:
2011
,
"w"
:
308
,
"h"
:
460
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
308
,
"sh"
:
460
,
"ro"
:
false
},
"p8.png"
:
{
"x"
:
2524
,
"y"
:
2473
,
"w"
:
308
,
"h"
:
460
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
308
,
"sh"
:
460
,
"ro"
:
false
},
"p7-b.png"
:
{
"x"
:
1054
,
"y"
:
2577
,
"w"
:
426
,
"h"
:
443
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
426
,
"sh"
:
443
,
"ro"
:
false
},
"p7.png"
:
{
"x"
:
1482
,
"y"
:
2577
,
"w"
:
426
,
"h"
:
443
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
426
,
"sh"
:
443
,
"ro"
:
false
},
"p17-b.png"
:
{
"x"
:
464
,
"y"
:
2582
,
"w"
:
434
,
"h"
:
398
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
434
,
"sh"
:
398
,
"ro"
:
true
},
"p17.png"
:
{
"x"
:
1910
,
"y"
:
2577
,
"w"
:
434
,
"h"
:
398
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
434
,
"sh"
:
398
,
"ro"
:
true
},
"p19-b.png"
:
{
"x"
:
2834
,
"y"
:
2
,
"w"
:
416
,
"h"
:
364
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
416
,
"sh"
:
364
,
"ro"
:
true
},
"p19.png"
:
{
"x"
:
2834
,
"y"
:
420
,
"w"
:
416
,
"h"
:
364
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
416
,
"sh"
:
364
,
"ro"
:
true
},
"p16-b.png"
:
{
"x"
:
2834
,
"y"
:
838
,
"w"
:
406
,
"h"
:
360
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
406
,
"sh"
:
360
,
"ro"
:
true
},
"p16.png"
:
{
"x"
:
2834
,
"y"
:
1246
,
"w"
:
406
,
"h"
:
360
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
406
,
"sh"
:
360
,
"ro"
:
true
},
"p1-b.png"
:
{
"x"
:
2834
,
"y"
:
1654
,
"w"
:
321
,
"h"
:
368
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
321
,
"sh"
:
368
,
"ro"
:
true
},
"p1.png"
:
{
"x"
:
2834
,
"y"
:
1977
,
"w"
:
321
,
"h"
:
368
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
321
,
"sh"
:
368
,
"ro"
:
true
},
"num0.png"
:
{
"x"
:
2603
,
"y"
:
1510
,
"w"
:
160
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
160
,
"sh"
:
226
,
"ro"
:
true
},
"num3.png"
:
{
"x"
:
2603
,
"y"
:
1672
,
"w"
:
151
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
151
,
"sh"
:
226
,
"ro"
:
true
},
"num8.png"
:
{
"x"
:
2603
,
"y"
:
1825
,
"w"
:
154
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
154
,
"sh"
:
226
,
"ro"
:
true
},
"numb0.png"
:
{
"x"
:
2599
,
"y"
:
467
,
"w"
:
160
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
160
,
"sh"
:
226
,
"ro"
:
true
},
"numb3.png"
:
{
"x"
:
2599
,
"y"
:
629
,
"w"
:
151
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
151
,
"sh"
:
226
,
"ro"
:
true
},
"numb8.png"
:
{
"x"
:
2599
,
"y"
:
782
,
"w"
:
154
,
"h"
:
226
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
154
,
"sh"
:
226
,
"ro"
:
true
},
"num2.png"
:
{
"x"
:
2660
,
"y"
:
2
,
"w"
:
155
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
155
,
"sh"
:
222
,
"ro"
:
false
},
"num5.png"
:
{
"x"
:
2660
,
"y"
:
226
,
"w"
:
148
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
148
,
"sh"
:
222
,
"ro"
:
false
},
"num6.png"
:
{
"x"
:
2649
,
"y"
:
938
,
"w"
:
153
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
153
,
"sh"
:
222
,
"ro"
:
false
},
"num9.png"
:
{
"x"
:
2649
,
"y"
:
1162
,
"w"
:
153
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
153
,
"sh"
:
222
,
"ro"
:
false
},
"numb2.png"
:
{
"x"
:
864
,
"y"
:
2582
,
"w"
:
155
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
155
,
"sh"
:
222
,
"ro"
:
false
},
"numb5.png"
:
{
"x"
:
2310
,
"y"
:
2577
,
"w"
:
148
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
148
,
"sh"
:
222
,
"ro"
:
false
},
"numb6.png"
:
{
"x"
:
2834
,
"y"
:
2300
,
"w"
:
153
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
153
,
"sh"
:
222
,
"ro"
:
true
},
"numb9.png"
:
{
"x"
:
3058
,
"y"
:
2300
,
"w"
:
153
,
"h"
:
222
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
153
,
"sh"
:
222
,
"ro"
:
false
},
"num1.png"
:
{
"x"
:
2310
,
"y"
:
2801
,
"w"
:
94
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
94
,
"sh"
:
218
,
"ro"
:
false
},
"num4.png"
:
{
"x"
:
2834
,
"y"
:
2455
,
"w"
:
162
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
162
,
"sh"
:
218
,
"ro"
:
true
},
"num7.png"
:
{
"x"
:
2834
,
"y"
:
2619
,
"w"
:
163
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
163
,
"sh"
:
218
,
"ro"
:
true
},
"numb1.png"
:
{
"x"
:
2406
,
"y"
:
2801
,
"w"
:
94
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
94
,
"sh"
:
218
,
"ro"
:
false
},
"numb4.png"
:
{
"x"
:
2834
,
"y"
:
2784
,
"w"
:
162
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
162
,
"sh"
:
218
,
"ro"
:
false
},
"numb7.png"
:
{
"x"
:
2998
,
"y"
:
2784
,
"w"
:
163
,
"h"
:
218
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
163
,
"sh"
:
218
,
"ro"
:
false
},
"numbp.png"
:
{
"x"
:
1606
,
"y"
:
1440
,
"w"
:
118
,
"h"
:
128
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
118
,
"sh"
:
128
,
"ro"
:
true
},
"nump.png"
:
{
"x"
:
1736
,
"y"
:
1440
,
"w"
:
118
,
"h"
:
128
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
118
,
"sh"
:
128
,
"ro"
:
true
}
}
},
},
{
{
"keys"
:
"confirm-btn.png,prize-back.png"
,
"keys"
:
"confirm-btn.png,prize-back.png"
,
"name"
:
"PrizeShowPanel"
"name"
:
"PrizeShowPanel"
,
"atlas"
:
{
"prize-back.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
590
,
"h"
:
741
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
590
,
"sh"
:
741
,
"ro"
:
false
},
"confirm-btn.png"
:
{
"x"
:
594
,
"y"
:
2
,
"w"
:
510
,
"h"
:
94
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
510
,
"sh"
:
94
,
"ro"
:
true
}
}
},
},
{
{
"keys"
:
"back.png,comCloseBtn.png,com_light.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png"
,
"keys"
:
"back.png,comCloseBtn.png,com_light.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png"
,
"name"
:
"common"
"name"
:
"common"
,
"atlas"
:
{
"back.png"
:
{
"x"
:
2
,
"y"
:
2
,
"w"
:
750
,
"h"
:
1624
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
750
,
"sh"
:
1624
,
"ro"
:
false
},
"com_light.png"
:
{
"x"
:
754
,
"y"
:
2
,
"w"
:
746
,
"h"
:
756
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
746
,
"sh"
:
756
,
"ro"
:
false
},
"toastBg.png"
:
{
"x"
:
754
,
"y"
:
760
,
"w"
:
460
,
"h"
:
130
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
460
,
"sh"
:
130
,
"ro"
:
false
},
"waitingBg.png"
:
{
"x"
:
1216
,
"y"
:
760
,
"w"
:
160
,
"h"
:
180
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
160
,
"sh"
:
180
,
"ro"
:
true
},
"跳过按钮.png"
:
{
"x"
:
1398
,
"y"
:
760
,
"w"
:
123
,
"h"
:
57
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
123
,
"sh"
:
57
,
"ro"
:
true
},
"comCloseBtn.png"
:
{
"x"
:
1398
,
"y"
:
885
,
"w"
:
72
,
"h"
:
72
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
72
,
"sh"
:
72
,
"ro"
:
false
},
"waitingRot.png"
:
{
"x"
:
754
,
"y"
:
892
,
"w"
:
56
,
"h"
:
56
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
56
,
"sh"
:
56
,
"ro"
:
false
}
}
}
}
],
],
"path"
:
"
.
/resource/"
"path"
:
"
https://yun.duiba.com.cn/db_games/activity/template/1628665628
/resource/"
}
}
\ No newline at end of file
src/components/CountDownComp.ts
View file @
1c5772e1
...
@@ -97,4 +97,12 @@ export default class CountDownComp extends Module {
...
@@ -97,4 +97,12 @@ export default class CountDownComp extends Module {
}
}
destory
()
{
this
.
stop
()
this
.
timeoutFn
.
length
=
0
super
.
destroy
()
}
}
}
\ No newline at end of file
src/panels/GameOverPanel.ts
View file @
1c5772e1
...
@@ -36,6 +36,7 @@ export class GameOverPanel extends Panel {
...
@@ -36,6 +36,7 @@ export class GameOverPanel extends Panel {
var
icon
=
UI
.
Sp
(
panelCtn
,
'prize-icon1.png'
,
panelCtn
.
width
/
2
,
580
)
var
icon
=
UI
.
Sp
(
panelCtn
,
'prize-icon1.png'
,
panelCtn
.
width
/
2
,
580
)
icon
.
anchorTexture
.
set
(
0.5
,
0.5
)
icon
.
anchorTexture
.
set
(
0.5
,
0.5
)
icon
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
async
function
()
{
icon
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
async
function
()
{
this
.
btnDelay
(
this
)
const
{
data
,
success
}
=
await
sendTbNet
(
TbNetName
.
drawLotteryPrize
)
const
{
data
,
success
}
=
await
sendTbNet
(
TbNetName
.
drawLotteryPrize
)
if
(
success
)
{
if
(
success
)
{
if
(
data
.
type
!=
5
)
{
if
(
data
.
type
!=
5
)
{
...
...
src/panels/PrizeShowPanel.ts
View file @
1c5772e1
...
@@ -27,6 +27,7 @@ export class PrizeShowPanel extends Panel {
...
@@ -27,6 +27,7 @@ export class PrizeShowPanel extends Panel {
.
endFill
()
.
endFill
()
UI
.
Btn
(
panelCtn
,
'confirm-btn.png'
,
function
()
{
UI
.
Btn
(
panelCtn
,
'confirm-btn.png'
,
function
()
{
this
.
btnDelay
(
this
)
if
(
this
.
data
.
type
==
3
)
{
if
(
this
.
data
.
type
==
3
)
{
this
.
hidePanel
()
this
.
hidePanel
()
changeScene
(
GameOverScene
,
this
.
data
)
changeScene
(
GameOverScene
,
this
.
data
)
...
...
src/scenes/GameOverScene/GameOverScene.ts
View file @
1c5772e1
...
@@ -36,17 +36,19 @@ export class GameOverScene extends Scene {
...
@@ -36,17 +36,19 @@ export class GameOverScene extends Scene {
},
this
,
45
,
950
)
},
this
,
45
,
950
)
UI
.
Btn
(
this
,
'more-btn.png'
,
function
()
{
UI
.
Btn
(
this
,
'more-btn.png'
,
function
()
{
this
.
btnDelay
(
this
)
// @ts-ignore
// @ts-ignore
my
.
re
directTo
({
my
.
re
Launch
({
url
:
'/pages/mainscene/mainscene'
url
:
'/pages/mainscene/mainscene'
})
})
},
this
,
45
,
1110
)
},
this
,
45
,
1110
)
var
_s
=
UI
.
Sp
(
this
,
'back-home.png'
,
layers
.
stageCenterX
,
1350
)
var
_s
=
UI
.
Sp
(
this
,
'back-home.png'
,
layers
.
stageCenterX
,
1350
)
_s
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
function
()
{
_s
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
function
()
{
this
.
btnDelay
(
this
)
// todo
// todo
console
.
log
(
'回到主场'
)
console
.
log
(
'回到主场'
)
})
}
,
this
)
_s
.
anchorTexture
.
set
(
0.5
,
0.5
)
_s
.
anchorTexture
.
set
(
0.5
,
0.5
)
var
bottomCont
=
UI
.
Ctn
(
this
)
var
bottomCont
=
UI
.
Ctn
(
this
)
...
@@ -57,10 +59,11 @@ export class GameOverScene extends Scene {
...
@@ -57,10 +59,11 @@ export class GameOverScene extends Scene {
UI
.
Txt
(
bottomCont
,
'让你的体态更加健康'
,
26
,
'#111111'
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
500
,
160
,
75
)
UI
.
Txt
(
bottomCont
,
'让你的体态更加健康'
,
26
,
'#111111'
,
FYGE
.
TEXT_ALIGN
.
LEFT
,
500
,
160
,
75
)
UI
.
Sp
(
bottomCont
,
'jump-icon.png'
,
600
,
40
)
UI
.
Sp
(
bottomCont
,
'jump-icon.png'
,
600
,
40
)
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
function
()
{
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
function
()
{
this
.
btnDelay
(
this
)
// @ts-ignore
// @ts-ignore
// my.
// my.
console
.
log
(
this
.
data
.
productLink
)
console
.
log
(
this
.
data
.
productLink
)
})
}
,
this
)
}
}
}
}
\ No newline at end of file
src/scenes/GameScene/GameScene.ts
View file @
1c5772e1
...
@@ -100,8 +100,7 @@ export class GameScene extends MotionInitScene {
...
@@ -100,8 +100,7 @@ export class GameScene extends MotionInitScene {
var
cdp
=
this
.
cdp
=
this
.
addChild
(
new
CountDownComp
(
GameCfg
.
iTime
))
var
cdp
=
this
.
cdp
=
this
.
addChild
(
new
CountDownComp
(
GameCfg
.
iTime
))
this
.
cdp
.
addTimeoutFunc
(()
=>
{
this
.
cdp
.
addTimeoutFunc
(()
=>
{
this
.
cdp
.
visible
=
false
this
.
cdp
.
destory
()
// 销毁 instance
// 销毁 instance
DeviceMotion
.
instance
.
destory
()
DeviceMotion
.
instance
.
destory
()
//@ts-ignore
//@ts-ignore
...
@@ -128,7 +127,7 @@ export class GameScene extends MotionInitScene {
...
@@ -128,7 +127,7 @@ export class GameScene extends MotionInitScene {
}
}
async
onSubmit
(
params
)
{
async
onSubmit
(
params
)
{
const
{
data
,
success
}
=
await
sendTbNet
(
TbNetName
.
submitGame
,
params
)
const
{
data
,
success
,
message
}
=
await
sendTbNet
(
TbNetName
.
submitGame
,
params
)
if
(
success
)
{
if
(
success
)
{
const
{
score
,
isNewRecord
,
productLink
,
isWinPrize
}
=
data
const
{
score
,
isNewRecord
,
productLink
,
isWinPrize
}
=
data
if
(
isWinPrize
)
{
if
(
isWinPrize
)
{
...
@@ -146,6 +145,12 @@ export class GameScene extends MotionInitScene {
...
@@ -146,6 +145,12 @@ export class GameScene extends MotionInitScene {
isWinPrize
isWinPrize
})
})
}
}
}
else
{
//@ts-ignore
my
&&
my
.
showToast
({
content
:
message
});
sendTbNet
(
TbNetName
.
navigateBack
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment