Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
babycare_xiaoxiao
Commits
882d9054
Commit
882d9054
authored
Aug 03, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
e94f4a88
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
198 additions
and
194 deletions
+198
-194
output.js
output.js
+96
-92
output.js.map
output.js.map
+1
-1
任务背景.png
resource/TaskPanel/任务背景.png
+0
-0
res.json
resource/res.json
+2
-2
ResJson.ts
src/ResJson.ts
+91
-91
PlayScene.ts
src/scene/PlayScene.ts
+8
-8
No files found.
output.js
View file @
882d9054
...
...
@@ -2108,12 +2108,12 @@ exports.ResJson = {
}
},
{
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,st
ar.png,st
epBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common",
"atlas": {
"boomBtn.png": {
"x":
920
,
"y":
2
,
"x":
108
,
"y":
874
,
"w": 101,
"h": 109,
"ox": 0,
...
...
@@ -2123,8 +2123,8 @@ exports.ResJson = {
"ro": false
},
"comCloseBtn.png": {
"x":
762
,
"y":
351
,
"x":
347
,
"y":
908
,
"w": 48,
"h": 48,
"ox": 0,
...
...
@@ -2134,8 +2134,8 @@ exports.ResJson = {
"ro": false
},
"comm_light.png": {
"x":
2
,
"y":
134
,
"x":
464
,
"y":
2
,
"w": 439,
"h": 439,
"ox": 0,
...
...
@@ -2145,63 +2145,63 @@ exports.ResJson = {
"ro": false
},
"ele0.png": {
"x":
599
,
"y":
199
,
"x":
188
,
"y":
762
,
"w": 80,
"h": 66,
"ox": 0,
"oy": 13,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele1.png": {
"x":
688
,
"y":
305
,
"x":
279
,
"y":
922
,
"w": 66,
"h": 72,
"ox": 7,
"oy": 8,
"sw": 80,
"sh": 80,
"ro":
tru
e
"ro":
fals
e
},
"ele10.png": {
"x":
521
,
"y":
199
,
"x":
256
,
"y":
761
,
"w": 76,
"h": 74,
"ox": 2,
"oy": 6,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele11.png": {
"x":
443
,
"y":
199
,
"x":
211
,
"y":
844
,
"w": 76,
"h": 74,
"ox": 2,
"oy": 6,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele12.png": {
"x":
443
,
"y":
199
,
"x":
211
,
"y":
844
,
"w": 76,
"h": 74,
"ox": 2,
"oy": 6,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele13.png": {
"x":
952
,
"y":
343
,
"x":
287
,
"y":
839
,
"w": 67,
"h": 67,
"ox": 0,
...
...
@@ -2211,8 +2211,8 @@ exports.ResJson = {
"ro": false
},
"ele14.png": {
"x":
960
,
"y":
275
,
"x":
332
,
"y":
754
,
"w": 61,
"h": 66,
"ox": 0,
...
...
@@ -2222,41 +2222,41 @@ exports.ResJson = {
"ro": false
},
"ele2.png": {
"x":
532
,
"y":
953
,
"x":
118
,
"y":
762
,
"w": 80,
"h": 68,
"ox": 0,
"oy": 10,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele3.png": {
"x":
804
,
"y":
279
,
"x":
280
,
"y":
598
,
"w": 72,
"h": 70,
"ox": 4,
"oy": 10,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele4.png": {
"x":
884
,
"y":
275
,
"x":
279
,
"y":
678
,
"w": 74,
"h": 64,
"ox": 6,
"oy": 14,
"sw": 80,
"sh": 80,
"ro":
fals
e
"ro":
tru
e
},
"ele5.png": {
"x":
920
,
"y":
113
,
"x":
118
,
"y":
598
,
"w": 80,
"h": 80,
"ox": 0,
...
...
@@ -2266,19 +2266,19 @@ exports.ResJson = {
"ro": false
},
"ele6.png": {
"x":
878
,
"y":
341
,
"x":
211
,
"y":
922
,
"w": 66,
"h": 72,
"ox": 7,
"oy": 5,
"sw": 80,
"sh": 80,
"ro":
tru
e
"ro":
fals
e
},
"ele7.png": {
"x":
614
,
"y":
953
,
"x":
278
,
"y":
528
,
"w": 72,
"h": 68,
"ox": 4,
...
...
@@ -2288,19 +2288,19 @@ exports.ResJson = {
"ro": false
},
"ele8.png": {
"x":
920
,
"y":
195
,
"x":
118
,
"y":
680
,
"w": 78,
"h": 80,
"ox": 1,
"oy": 0,
"sw": 80,
"sh": 80,
"ro":
tru
e
"ro":
fals
e
},
"ele9.png": {
"x":
804
,
"y":
199
,
"x":
200
,
"y":
598
,
"w": 78,
"h": 78,
"ox": 1,
...
...
@@ -2310,30 +2310,19 @@ exports.ResJson = {
"ro": false
},
"hammerBtn.png": {
"x":
688
,
"y":
199
,
"x":
2
,
"y":
874
,
"w": 104,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 104,
"sh": 114,
"ro": true
},
"star.png": {
"x": 464,
"y": 2,
"w": 454,
"h": 195,
"ox": 0,
"oy": 0,
"sw": 454,
"sh": 195,
"ro": false
},
"stepBtn.png": {
"x":
532
,
"y":
827
,
"x":
905
,
"y":
2
,
"w": 124,
"h": 117,
"ox": 0,
...
...
@@ -2354,8 +2343,8 @@ exports.ResJson = {
"ro": false
},
"waitingBg.png": {
"x":
350
,
"y":
851
,
"x":
278
,
"y":
366
,
"w": 160,
"h": 180,
"ox": 0,
...
...
@@ -2365,8 +2354,8 @@ exports.ResJson = {
"ro": true
},
"waitingRot.png": {
"x":
582
,
"y":
348
,
"x":
345
,
"y":
672
,
"w": 56,
"h": 56,
"ox": 0,
...
...
@@ -2376,8 +2365,8 @@ exports.ResJson = {
"ro": false
},
"关闭按钮.png": {
"x":
599
,
"y":
267
,
"x":
198
,
"y":
680
,
"w": 79,
"h": 79,
"ox": 0,
...
...
@@ -2387,8 +2376,8 @@ exports.ResJson = {
"ro": false
},
"再想想.png": {
"x":
466
,
"y": 5
51
,
"x":
2
,
"y": 5
98
,
"w": 274,
"h": 114,
"ox": 0,
...
...
@@ -2398,41 +2387,41 @@ exports.ResJson = {
"ro": true
},
"开始闯关不要能量.png": {
"x": 2
34
,
"y":
575
,
"x": 2,
"y":
250
,
"w": 424,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 424,
"sh": 114,
"ro":
tru
e
"ro":
fals
e
},
"开始闯关要能量.png": {
"x":
118
,
"y":
575
,
"x":
2
,
"y":
134
,
"w": 424,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 424,
"sh": 114,
"ro":
tru
e
"ro":
fals
e
},
"确定.png": {
"x":
443
,
"y":
275
,
"x":
2
,
"y":
482
,
"w": 274,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 274,
"sh": 114,
"ro":
tru
e
"ro":
fals
e
},
"继续闯关大.png": {
"x":
2
,
"y":
575
,
"x":
905
,
"y":
128
,
"w": 424,
"h": 114,
"ox": 0,
...
...
@@ -2442,15 +2431,15 @@ exports.ResJson = {
"ro": true
},
"继续闯关小.png": {
"x":
350
,
"y":
575
,
"x":
2
,
"y":
366
,
"w": 274,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 274,
"sh": 114,
"ro":
tru
e
"ro":
fals
e
}
}
},
...
...
@@ -10040,7 +10029,7 @@ exports.ResJson = {
}
},
{
"keys": "star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png",
"keys": "star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
开奖按钮120.png,
道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png",
"name": "SuccessPanel",
"atlas": {
"star_dis.png": {
...
...
@@ -10067,7 +10056,7 @@ exports.ResJson = {
},
"去抽奖.png": {
"x": 2,
"y": 1
883
,
"y": 1
402
,
"w": 274,
"h": 114,
"ox": 0,
...
...
@@ -10078,7 +10067,7 @@ exports.ResJson = {
},
"圆角矩形 648.png": {
"x": 2,
"y": 1
37
9,
"y": 1
52
9,
"w": 502,
"h": 196,
"ox": 0,
...
...
@@ -10087,6 +10076,17 @@ exports.ResJson = {
"sh": 200,
"ro": true
},
"开奖按钮120.png": {
"x": 835,
"y": 1103,
"w": 424,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 424,
"sh": 114,
"ro": true
},
"道具圆圈.png": {
"x": 835,
"y": 803,
...
...
@@ -10121,15 +10121,15 @@ exports.ResJson = {
"ro": true
},
"闯关成功不满星按钮.png": {
"x":
835
,
"y": 1
103
,
"x":
2
,
"y": 1
286
,
"w": 274,
"h": 114,
"ox": 0,
"oy": 0,
"sw": 274,
"sh": 114,
"ro":
tru
e
"ro":
fals
e
}
}
},
...
...
@@ -10218,7 +10218,7 @@ exports.ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596
188364
/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596
423352
/resource/"
};
...
...
@@ -11623,7 +11623,11 @@ var Tools = (function () {
if (!data.isVisitSuccess) {
ctrls_2.showPanel(FailedPanel_1.FailedPanel, data);
}
else if ((data.prize && data.prize.image) || (data.tool && data.tool.type)) {
else if ((data.prize && data.prize.image) || (data.tool && data.tool.type) || data.level == 120) {
if (data.level == 120 && (!data.prize || !data.prize.image)) {
data.prize = data.prize || {};
data.prize.image = Tools.baseInfo.levelPrize['level_120'];
}
ctrls_2.showPanel(SuccessPrizePanel_1.SuccessPrizePanel, data);
}
else {
output.js.map
View file @
882d9054
This source diff could not be displayed because it is too large. You can
view the blob
instead.
resource/TaskPanel/任务背景.png
View replaced file @
e94f4a88
View file @
882d9054
184 KB
|
W:
|
H:
198 KB
|
W:
|
H:
2-up
Swipe
Onion skin
resource/res.json
View file @
882d9054
...
...
@@ -9,7 +9,7 @@
"name"
:
"BuyPowerPanel"
},
{
"keys"
:
"boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,st
ar.png,st
epBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"keys"
:
"boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"name"
:
"common"
},
{
...
...
@@ -105,7 +105,7 @@
"name"
:
"StartPanelPrize"
},
{
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
开奖按钮120.png,
道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"name"
:
"SuccessPanel"
},
{
...
...
src/ResJson.ts
View file @
882d9054
...
...
@@ -288,12 +288,12 @@ export const ResJson = {
}
},
{
"keys"
:
"boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,st
ar.png,st
epBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"keys"
:
"boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"name"
:
"common"
,
"atlas"
:
{
"boomBtn.png"
:
{
"x"
:
920
,
"y"
:
2
,
"x"
:
108
,
"y"
:
874
,
"w"
:
101
,
"h"
:
109
,
"ox"
:
0
,
...
...
@@ -303,8 +303,8 @@ export const ResJson = {
"ro"
:
false
},
"comCloseBtn.png"
:
{
"x"
:
762
,
"y"
:
351
,
"x"
:
347
,
"y"
:
908
,
"w"
:
48
,
"h"
:
48
,
"ox"
:
0
,
...
...
@@ -314,8 +314,8 @@ export const ResJson = {
"ro"
:
false
},
"comm_light.png"
:
{
"x"
:
2
,
"y"
:
134
,
"x"
:
464
,
"y"
:
2
,
"w"
:
439
,
"h"
:
439
,
"ox"
:
0
,
...
...
@@ -325,63 +325,63 @@ export const ResJson = {
"ro"
:
false
},
"ele0.png"
:
{
"x"
:
599
,
"y"
:
199
,
"x"
:
188
,
"y"
:
762
,
"w"
:
80
,
"h"
:
66
,
"ox"
:
0
,
"oy"
:
13
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele1.png"
:
{
"x"
:
688
,
"y"
:
305
,
"x"
:
279
,
"y"
:
922
,
"w"
:
66
,
"h"
:
72
,
"ox"
:
7
,
"oy"
:
8
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"ele10.png"
:
{
"x"
:
521
,
"y"
:
199
,
"x"
:
256
,
"y"
:
761
,
"w"
:
76
,
"h"
:
74
,
"ox"
:
2
,
"oy"
:
6
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele11.png"
:
{
"x"
:
443
,
"y"
:
199
,
"x"
:
211
,
"y"
:
844
,
"w"
:
76
,
"h"
:
74
,
"ox"
:
2
,
"oy"
:
6
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele12.png"
:
{
"x"
:
443
,
"y"
:
199
,
"x"
:
211
,
"y"
:
844
,
"w"
:
76
,
"h"
:
74
,
"ox"
:
2
,
"oy"
:
6
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele13.png"
:
{
"x"
:
952
,
"y"
:
343
,
"x"
:
287
,
"y"
:
839
,
"w"
:
67
,
"h"
:
67
,
"ox"
:
0
,
...
...
@@ -391,8 +391,8 @@ export const ResJson = {
"ro"
:
false
},
"ele14.png"
:
{
"x"
:
960
,
"y"
:
275
,
"x"
:
332
,
"y"
:
754
,
"w"
:
61
,
"h"
:
66
,
"ox"
:
0
,
...
...
@@ -402,41 +402,41 @@ export const ResJson = {
"ro"
:
false
},
"ele2.png"
:
{
"x"
:
532
,
"y"
:
953
,
"x"
:
118
,
"y"
:
762
,
"w"
:
80
,
"h"
:
68
,
"ox"
:
0
,
"oy"
:
10
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele3.png"
:
{
"x"
:
804
,
"y"
:
279
,
"x"
:
280
,
"y"
:
598
,
"w"
:
72
,
"h"
:
70
,
"ox"
:
4
,
"oy"
:
10
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele4.png"
:
{
"x"
:
884
,
"y"
:
275
,
"x"
:
279
,
"y"
:
678
,
"w"
:
74
,
"h"
:
64
,
"ox"
:
6
,
"oy"
:
14
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
fals
e
"ro"
:
tru
e
},
"ele5.png"
:
{
"x"
:
920
,
"y"
:
113
,
"x"
:
118
,
"y"
:
598
,
"w"
:
80
,
"h"
:
80
,
"ox"
:
0
,
...
...
@@ -446,19 +446,19 @@ export const ResJson = {
"ro"
:
false
},
"ele6.png"
:
{
"x"
:
878
,
"y"
:
341
,
"x"
:
211
,
"y"
:
922
,
"w"
:
66
,
"h"
:
72
,
"ox"
:
7
,
"oy"
:
5
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"ele7.png"
:
{
"x"
:
614
,
"y"
:
953
,
"x"
:
278
,
"y"
:
528
,
"w"
:
72
,
"h"
:
68
,
"ox"
:
4
,
...
...
@@ -468,19 +468,19 @@ export const ResJson = {
"ro"
:
false
},
"ele8.png"
:
{
"x"
:
920
,
"y"
:
195
,
"x"
:
118
,
"y"
:
680
,
"w"
:
78
,
"h"
:
80
,
"ox"
:
1
,
"oy"
:
0
,
"sw"
:
80
,
"sh"
:
80
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"ele9.png"
:
{
"x"
:
804
,
"y"
:
199
,
"x"
:
200
,
"y"
:
598
,
"w"
:
78
,
"h"
:
78
,
"ox"
:
1
,
...
...
@@ -490,30 +490,19 @@ export const ResJson = {
"ro"
:
false
},
"hammerBtn.png"
:
{
"x"
:
688
,
"y"
:
199
,
"x"
:
2
,
"y"
:
874
,
"w"
:
104
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
104
,
"sh"
:
114
,
"ro"
:
true
},
"star.png"
:
{
"x"
:
464
,
"y"
:
2
,
"w"
:
454
,
"h"
:
195
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
454
,
"sh"
:
195
,
"ro"
:
false
},
"stepBtn.png"
:
{
"x"
:
532
,
"y"
:
827
,
"x"
:
905
,
"y"
:
2
,
"w"
:
124
,
"h"
:
117
,
"ox"
:
0
,
...
...
@@ -534,8 +523,8 @@ export const ResJson = {
"ro"
:
false
},
"waitingBg.png"
:
{
"x"
:
350
,
"y"
:
851
,
"x"
:
278
,
"y"
:
366
,
"w"
:
160
,
"h"
:
180
,
"ox"
:
0
,
...
...
@@ -545,8 +534,8 @@ export const ResJson = {
"ro"
:
true
},
"waitingRot.png"
:
{
"x"
:
582
,
"y"
:
348
,
"x"
:
345
,
"y"
:
672
,
"w"
:
56
,
"h"
:
56
,
"ox"
:
0
,
...
...
@@ -556,8 +545,8 @@ export const ResJson = {
"ro"
:
false
},
"关闭按钮.png"
:
{
"x"
:
599
,
"y"
:
267
,
"x"
:
198
,
"y"
:
680
,
"w"
:
79
,
"h"
:
79
,
"ox"
:
0
,
...
...
@@ -567,8 +556,8 @@ export const ResJson = {
"ro"
:
false
},
"再想想.png"
:
{
"x"
:
466
,
"y"
:
5
51
,
"x"
:
2
,
"y"
:
5
98
,
"w"
:
274
,
"h"
:
114
,
"ox"
:
0
,
...
...
@@ -578,41 +567,41 @@ export const ResJson = {
"ro"
:
true
},
"开始闯关不要能量.png"
:
{
"x"
:
2
34
,
"y"
:
575
,
"x"
:
2
,
"y"
:
250
,
"w"
:
424
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
424
,
"sh"
:
114
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"开始闯关要能量.png"
:
{
"x"
:
118
,
"y"
:
575
,
"x"
:
2
,
"y"
:
134
,
"w"
:
424
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
424
,
"sh"
:
114
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"确定.png"
:
{
"x"
:
443
,
"y"
:
275
,
"x"
:
2
,
"y"
:
482
,
"w"
:
274
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
274
,
"sh"
:
114
,
"ro"
:
tru
e
"ro"
:
fals
e
},
"继续闯关大.png"
:
{
"x"
:
2
,
"y"
:
575
,
"x"
:
905
,
"y"
:
128
,
"w"
:
424
,
"h"
:
114
,
"ox"
:
0
,
...
...
@@ -622,15 +611,15 @@ export const ResJson = {
"ro"
:
true
},
"继续闯关小.png"
:
{
"x"
:
350
,
"y"
:
575
,
"x"
:
2
,
"y"
:
366
,
"w"
:
274
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
274
,
"sh"
:
114
,
"ro"
:
tru
e
"ro"
:
fals
e
}
}
},
...
...
@@ -8220,7 +8209,7 @@ export const ResJson = {
}
},
{
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
开奖按钮120.png,
道具圆圈.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"name"
:
"SuccessPanel"
,
"atlas"
:
{
"star_dis.png"
:
{
...
...
@@ -8247,7 +8236,7 @@ export const ResJson = {
},
"去抽奖.png"
:
{
"x"
:
2
,
"y"
:
1
883
,
"y"
:
1
402
,
"w"
:
274
,
"h"
:
114
,
"ox"
:
0
,
...
...
@@ -8258,7 +8247,7 @@ export const ResJson = {
},
"圆角矩形 648.png"
:
{
"x"
:
2
,
"y"
:
1
37
9
,
"y"
:
1
52
9
,
"w"
:
502
,
"h"
:
196
,
"ox"
:
0
,
...
...
@@ -8267,6 +8256,17 @@ export const ResJson = {
"sh"
:
200
,
"ro"
:
true
},
"开奖按钮120.png"
:
{
"x"
:
835
,
"y"
:
1103
,
"w"
:
424
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
424
,
"sh"
:
114
,
"ro"
:
true
},
"道具圆圈.png"
:
{
"x"
:
835
,
"y"
:
803
,
...
...
@@ -8301,15 +8301,15 @@ export const ResJson = {
"ro"
:
true
},
"闯关成功不满星按钮.png"
:
{
"x"
:
835
,
"y"
:
1
103
,
"x"
:
2
,
"y"
:
1
286
,
"w"
:
274
,
"h"
:
114
,
"ox"
:
0
,
"oy"
:
0
,
"sw"
:
274
,
"sh"
:
114
,
"ro"
:
tru
e
"ro"
:
fals
e
}
}
},
...
...
@@ -8398,5 +8398,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596
188364
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1596
423352
/resource/"
}
\ No newline at end of file
src/scene/PlayScene.ts
View file @
882d9054
...
...
@@ -2888,7 +2888,7 @@ export class PlayScene extends Scene {
// }
// return currentTarget
// }
let
isOn
:
boolean
=
true
;
class
SettingBtn
extends
FYGE
.
Container
{
constructor
()
{
super
()
...
...
@@ -2898,24 +2898,24 @@ class SettingBtn extends FYGE.Container {
bg
.
visible
=
false
;
//音乐
var
musicBtn
=
this
.
addChild
(
new
class
extends
FYGE
.
Sprite
{
private
isOn
:
boolean
;
//
private isOn: boolean;
constructor
()
{
var
t
=
RES
.
getRes
(
"musicOn.png"
)
super
(
t
)
this
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
isOn
=
!
this
.
isOn
;
this
.
texture
=
RES
.
getRes
(
this
.
isOn
?
"musicOn.png"
:
"musicOff.png"
);
isOn
=
!
isOn
;
this
.
texture
=
RES
.
getRes
(
isOn
?
"musicOn.png"
:
"musicOff.png"
);
//播放或暂停音乐接口
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
this
.
isOn
})
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
isOn
})
},
this
);
//默认开启
this
.
isOn
=
true
;
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
this
.
isOn
})
//
this.isOn = true;
if
(
isOn
)
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
true
})
//添加onSHow事件
GDispatcher
.
addEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
onShow
,
this
)
}
onShow
()
{
if
(
this
.
isOn
)
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
true
})
if
(
isOn
)
sendTbNet
(
TbNetName
.
openMusic
,
{
isOn
:
true
})
}
destroy
()
{
GDispatcher
.
removeEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
onShow
,
this
)
...
...
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