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
a55f58f5
Commit
a55f58f5
authored
Jul 20, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Success Panel Effect!
parent
eb5c8911
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
210 additions
and
64 deletions
+210
-64
workspace.xml
.idea/workspace.xml
+35
-28
babycare.exchange.json
mock/miniTb/babycare.exchange.json
+2
-2
babycare.getIndex.json
mock/miniTb/babycare.getIndex.json
+1
-1
babycare.queryCredits.json
mock/miniTb/babycare.queryCredits.json
+2
-2
道具圆圈.png
resource/SuccessPanel/道具圆圈.png
+0
-0
boomBtn.png
resource/common/boomBtn.png
+0
-0
hammerBtn.png
resource/common/hammerBtn.png
+0
-0
stepBtn.png
resource/common/stepBtn.png
+0
-0
res.json
resource/res.json
+3
-3
ResJson.ts
src/ResJson.ts
+3
-3
SkinJson.ts
src/SkinJson.ts
+12
-2
BuyPowerPanel.ts
src/panels/BuyPowerPanel.ts
+37
-0
NoEnergyPanel.ts
src/panels/NoEnergyPanel.ts
+37
-0
StartPanel.ts
src/panels/StartPanel.ts
+6
-1
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+6
-1
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+14
-3
TaskPanel.ts
src/panels/TaskPanel.ts
+16
-0
MapScene.ts
src/scene/map/MapScene.ts
+20
-13
MapUI.ts
src/scene/map/MapUI.ts
+16
-5
No files found.
.idea/workspace.xml
View file @
a55f58f5
This diff is collapsed.
Click to expand it.
mock/miniTb/babycare.exchange.json
View file @
a55f58f5
{
"code"
:
"530001"
,
"data"
:
{
"power"
:
1
231
,
"power"
:
231
,
"tools"
:
{
"STEPS"
:
3
,
"BOOMS"
:
4
,
...
...
@@ -12,4 +12,4 @@
},
"success"
:
true
,
"message"
:
"需要成为会员"
}
\ No newline at end of file
}
mock/miniTb/babycare.getIndex.json
View file @
a55f58f5
...
...
@@ -3,7 +3,7 @@
"code"
:
"1111"
,
"message"
:
"OK"
,
"data"
:
{
"power"
:
10
0
,
"power"
:
0
,
"currentLevel"
:
1
,
"tools"
:
{
"STEPS"
:
1
,
...
...
mock/miniTb/babycare.queryCredits.json
View file @
a55f58f5
...
...
@@ -4,6 +4,6 @@
"data"
:
{
"isvip"
:
false
,
"url"
:
"xxx"
,
"credits"
:
111
1
"credits"
:
47
1
}
}
\ No newline at end of file
}
resource/SuccessPanel/道具圆圈.png
0 → 100644
View file @
a55f58f5
7.32 KB
resource/
playScene
/boomBtn.png
→
resource/
common
/boomBtn.png
View file @
a55f58f5
File moved
resource/
playScene
/hammerBtn.png
→
resource/
common
/hammerBtn.png
View file @
a55f58f5
File moved
resource/
playScene
/stepBtn.png
→
resource/
common
/stepBtn.png
View file @
a55f58f5
File moved
resource/res.json
View file @
a55f58f5
...
...
@@ -45,7 +45,7 @@
"name"
:
"StartPanelPrize"
},
{
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
红包奖励.png,道具
.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
道具.png,道具圆圈
.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"name"
:
"SuccessPanel"
},
{
...
...
@@ -65,7 +65,7 @@
"name"
:
"bonusTime"
},
{
"keys"
:
"
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,star.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.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,star.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想
.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"name"
:
"common"
},
{
...
...
@@ -101,7 +101,7 @@
"name"
:
"mapWhaleEffect"
},
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,b
oomBtn.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,hammerBtn.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepBtn
.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,b
rownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9
.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
},
{
...
...
src/ResJson.ts
View file @
a55f58f5
...
...
@@ -45,7 +45,7 @@ export const ResJson = {
"name"
:
"StartPanelPrize"
},
{
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
红包奖励.png,道具
.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"keys"
:
"star_dis.png,star_en.png,去抽奖.png,圆角矩形 648.png,
道具.png,道具圆圈
.png,闯关成功.png,闯关成功Bg.png,闯关成功不满星按钮.png"
,
"name"
:
"SuccessPanel"
},
{
...
...
@@ -65,7 +65,7 @@ export const ResJson = {
"name"
:
"bonusTime"
},
{
"keys"
:
"
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,star.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.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,star.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想
.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"name"
:
"common"
},
{
...
...
@@ -101,7 +101,7 @@ export const ResJson = {
"name"
:
"mapWhaleEffect"
},
{
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,b
oomBtn.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,hammerBtn.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepBtn
.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"keys"
:
"blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,b
rownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9
.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png"
,
"name"
:
"playScene"
},
{
...
...
src/SkinJson.ts
View file @
a55f58f5
...
...
@@ -258,12 +258,22 @@ export const SkinJson = {
},
{
"name"
:
"img"
,
"x"
:
86
,
"y"
:
45
,
"alpha"
:
1
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"道具.png"
}
},
{
"name"
:
"quanquan"
,
"x"
:
76
,
"y"
:
24
,
"alpha"
:
1
,
"type"
:
"sprite"
,
"props"
:
{
"source"
:
"道具.png"
"source"
:
"道具
圆圈
.png"
}
}
],
...
...
@@ -672,7 +682,7 @@ export const SkinJson = {
"alpha"
:
1
,
"type"
:
"text"
,
"props"
:
{
"text"
:
"+
1
"
,
"text"
:
"+
15
"
,
"size"
:
36
,
"fillColor"
:
"#ffffff"
,
"textAlpha"
:
1
...
...
src/panels/BuyPowerPanel.ts
View file @
a55f58f5
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getCurrentScene
,
hideWaiting
,
showPanel
,
showToast
,
showWaiting
}
from
"../../module/ctrls"
;
import
{
JoinPanel
}
from
"./JoinPanel"
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
VERTICAL_ALIGN
=
FYGE
.
VERTICAL_ALIGN
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
TextField
=
FYGE
.
TextField
;
export
class
BuyPowerPanel
extends
Panel
{
get
groupNames
()
{
...
...
@@ -14,7 +21,37 @@ export class BuyPowerPanel extends Panel {
closeBtn
:
FYGE
.
Button
;
initUi
()
{
const
btnTxt
:
TextField
=
this
.
exchangeBtn
.
addChild
(
Tools
.
getText
(
'30店铺积分'
,
36
,
'#ffffff'
,
TEXT_ALIGN
.
CENTER
,
this
.
exchangeBtn
.
width
,
0
,
-
3
));
btnTxt
.
textHeight
=
this
.
exchangeBtn
.
height
;
btnTxt
.
verticalAlign
=
VERTICAL_ALIGN
.
MIDDLE
;
btnTxt
.
bold
=
true
;
btnTxt
.
stroke
=
3
;
btnTxt
.
strokeColor
=
'#21926e'
;
this
.
msgTxt
.
bold
=
true
;
this
.
msgTxt
.
stroke
=
3
;
this
.
msgTxt
.
strokeColor
=
'#21926e'
;
this
.
exchangeBtn
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
async
()
=>
{
//购买道具
showWaiting
();
var
res
=
await
Tools
.
exchange
(
PropType
.
POWER
);
hideWaiting
();
//如果是链接,弹出加入会员弹框
if
(
typeof
res
==
"string"
)
{
showPanel
(
JoinPanel
,
{
url
:
res
});
}
//成功了,关闭弹框,修改道具信息
else
if
(
res
)
{
showToast
(
"兑换成功"
);
this
.
hidePanel
();
getCurrentScene
().
updateScene
();
}
},
this
);
}
start
(
data
)
{
...
...
src/panels/NoEnergyPanel.ts
0 → 100644
View file @
a55f58f5
import
{
Panel
}
from
"../../module/views/Panel"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
showPanel
}
from
"../../module/ctrls"
;
import
{
BuyPowerPanel
}
from
"./BuyPowerPanel"
;
export
class
NoEnergyPanel
extends
Panel
{
get
groupNames
()
{
return
[
"NoEnergyPanel"
]
}
get
skinName
()
{
return
"NoEnergyPanel"
}
closeBtn
:
FYGE
.
Button
;
okBtn
:
FYGE
.
Button
;
initUi
()
{
}
start
(
data
)
{
super
.
start
();
}
initEvents
()
{
super
.
initEvents
();
this
.
okBtn
.
addEventListener
(
MouseEvent
.
CLICK
,
()
=>
{
showPanel
(
BuyPowerPanel
);
this
.
hidePanel
();
},
this
);
}
removeEvents
()
{
super
.
removeEvents
();
}
}
src/panels/StartPanel.ts
View file @
a55f58f5
...
...
@@ -5,11 +5,12 @@ import { ElementTargetData } from "../something/interface/ElementTargetData";
import
Container
=
FYGE
.
Container
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
changeScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
{
NoEnergyPanel
}
from
"./NoEnergyPanel"
;
export
class
StartPanel
extends
Panel
{
get
groupNames
()
{
...
...
@@ -57,6 +58,10 @@ export class StartPanel extends Panel {
}
private
startGame
()
{
if
(
this
.
data
.
stars
<
3
&&
Tools
.
gameData
.
power
<=
0
)
{
// 体力不足
showPanel
(
NoEnergyPanel
);
return
;
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
if
(
!
success
)
return
;
...
...
src/panels/StartPanelPrize.ts
View file @
a55f58f5
import
{
Panel
}
from
"../../module/views/Panel"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
changeScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
{
StartTarget
}
from
"./StartPanel"
;
import
TEXT_ALIGN
=
FYGE
.
TEXT_ALIGN
;
...
...
@@ -10,6 +10,7 @@ import Sprite = FYGE.Sprite;
import
Texture
=
FYGE
.
Texture
;
import
{
Tools
}
from
"../Tools"
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
{
NoEnergyPanel
}
from
"./NoEnergyPanel"
;
export
class
StartPanelPrize
extends
Panel
{
get
groupNames
()
{
...
...
@@ -61,6 +62,10 @@ export class StartPanelPrize extends Panel {
}
private
startGame
()
{
if
(
this
.
data
.
stars
<
3
&&
Tools
.
gameData
.
power
<=
0
)
{
// 体力不足
showPanel
(
NoEnergyPanel
);
return
;
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
if
(
!
success
)
return
;
...
...
src/panels/SuccessPrizePanel.ts
View file @
a55f58f5
...
...
@@ -7,6 +7,8 @@ import Sprite = FYGE.Sprite;
import
Texture
=
FYGE
.
Texture
;
import
Container
=
FYGE
.
Container
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
TextField
=
FYGE
.
TextField
;
export
class
SuccessPrizePanel
extends
Panel
{
get
groupNames
()
{
...
...
@@ -60,21 +62,30 @@ export class SuccessPrizePanel extends Panel {
this
.
starGroup
.
play
(
this
.
data
.
stars
);
const
propImg
:
Sprite
=
this
.
prop
.
getChildByName
(
'img'
);
const
propLabel
:
TextField
=
this
.
prop
.
getChildByName
(
'label'
);
if
(
this
.
data
.
tool
)
{
this
.
againBtn
.
visible
=
false
;
this
.
goPrizeBtn
.
visible
=
false
;
this
.
prizeImg
.
visible
=
false
;
switch
(
this
.
data
.
tool
.
type
)
{
case
PropType
.
BOOMS
:
// boomBtn
propImg
.
texture
=
RES
.
getRes
(
'boomBtn.png'
);
propImg
.
y
+=
5
;
propImg
.
x
+=
15
;
propLabel
.
text
=
'步数道具 x1'
;
break
;
case
PropType
.
HAMMERS
:
// hammerBtn
propImg
.
texture
=
RES
.
getRes
(
'hammerBtn.png'
);
propImg
.
x
+=
10
;
propLabel
.
text
=
'锤子道具 x1'
;
break
;
case
PropType
.
STEPS
:
// stepBtn
propImg
.
texture
=
RES
.
getRes
(
'stepBtn.png'
);
propLabel
.
text
=
'步数道具 x1'
;
break
;
}
...
...
src/panels/TaskPanel.ts
View file @
a55f58f5
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Button
=
FYGE
.
Button
;
...
...
@@ -35,6 +36,21 @@ export class TaskPanel extends Panel {
}
public
updateTask
()
{
// const _bd: { string: Button } = {
// 'browseGoods': this.taskBtn1,
// 'invites': this.taskBtn2,
// 'follow': this.taskBtn3,
// 'member': this.taskBtn4,
// }
sendTbNet
(
TbNetName
.
getTaskList
,
{},
(
success
,
res
)
=>
{
if
(
!
success
)
return
;
}
);
}
start
(
data
)
{
super
.
start
();
}
...
...
src/scene/map/MapScene.ts
View file @
a55f58f5
...
...
@@ -13,6 +13,8 @@ import Sprite = FYGE.Sprite;
import
Texture
=
FYGE
.
Texture
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
{
sendTbNet
,
TbNetName
}
from
"../../TaoBaoNet"
;
import
{
showToast
}
from
"../../../module/ctrls"
;
export
class
MapScene
extends
Scene
{
private
mapContainer
:
Container
=
null
;
...
...
@@ -207,22 +209,27 @@ export class MapScene extends Scene {
this
.
scrollPage
.
scrollTo
(
checkY
,
time
);
}
public
async
updateScene
()
{
super
.
updateScene
();
this
.
uiLayer
.
updateUI
();
}
public
start
(
data
?:
any
)
{
super
.
start
(
data
);
Tools
.
gameOver
({
level
:
1
,
score
:
666
,
stars
:
3
,
isVisitSuccess
:
true
,
isPrizeLevel
:
true
,
tool
:
{
type
:
'STEP
S'
,
},
// prize: {
// image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
// }
});
//
Tools.gameOver({
//
level: 1,
//
score: 666,
//
stars: 3,
//
isVisitSuccess: true,
//
isPrizeLevel: true,
//
tool: {
// type: 'HAMMER
S',
//
},
//
// prize: {
//
// image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
//
// }
//
});
}
public
initEvents
()
{
...
...
src/scene/map/MapUI.ts
View file @
a55f58f5
...
...
@@ -15,7 +15,7 @@ import Texture = FYGE.Texture;
export
default
class
MapUI
extends
Container
{
public
energyBox
:
EnergyBox
=
null
;
p
rivate
creditsBox
:
CreditsBox
=
null
;
p
ublic
creditsBox
:
CreditsBox
=
null
;
private
prizeBox
:
PrizeBox
=
null
;
private
myPrizeBtn
:
Button
=
null
;
...
...
@@ -93,6 +93,11 @@ export default class MapUI extends Container {
this
.
prizeBox
=
this
.
addChild
(
new
PrizeBox
({}));
}
public
updateUI
()
{
this
.
creditsBox
.
updateCredits
();
this
.
energyBox
.
count
=
Tools
.
gameData
.
power
;
}
}
/**
...
...
@@ -166,6 +171,15 @@ class CreditsBox extends Container {
this
.
addChild
(
Tools
.
getSprite
(
'map_creditsBg.png'
));
this
.
countLabel
=
this
.
addChild
(
Tools
.
getText
(
'积分:0'
,
20
,
'#ffffff'
,
TEXT_ALIGN
.
CENTER
,
105
,
58
,
21
));
await
this
.
updateCredits
();
}
public
async
updateCredits
()
{
const
creditsData
=
await
sendTbNet
(
TbNetName
.
queryCredits
,
{},
()
=>
{
},
true
);
let
jfLabel
=
'积分:0'
;
...
...
@@ -175,10 +189,7 @@ class CreditsBox extends Container {
jfLabel
=
`积分:
${
creditsData
.
data
.
credits
}
`
;
}
this
.
countLabel
=
this
.
addChild
(
Tools
.
getText
(
jfLabel
,
20
,
'#ffffff'
,
TEXT_ALIGN
.
CENTER
,
105
,
58
,
21
));
this
.
countLabel
.
text
=
jfLabel
;
}
}
...
...
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