Commit 5c19b872 authored by 邱旭's avatar 邱旭

m

parent 9ea1d2c4
This diff is collapsed.
This diff is collapsed.
{
"code": "000000",
"data": {
"currentLevel": 4,
"currentLevel": 99,
"topLevelVisitSuccess": false,
"power": 10,
"tools": {
......
{
"code": "000000",
"data": {
"tools": {
"hammers": 1,
"steps": 0,
"booms": 1
}
},
"success": true,
"message": "成功"
}
......@@ -5,7 +5,7 @@
"nickName": "我啊是大请问",
"activityId": "string",
"openId": "string",
"isFirstLogin": true,
"isFirstLogin": false,
"loginAddPower": 3,
"isNewUser": false,
"inviteId": "string",
......
......@@ -29,7 +29,7 @@
"name": "RulePanel"
},
{
"keys": "关卡弹窗Bg.png",
"keys": "startBg.png,startBtn.png,startNum1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png",
"name": "StartPanel"
},
{
......@@ -45,11 +45,11 @@
"name": "UseStep"
},
{
"keys": "0250abc4-fabc-4bf3-970a-46ceeb12d416.png,03756d82-4e5c-4bdc-8247-7f704ed92ba7.png,0b1a21c5-2e2f-43bc-81f7-ee1c4474d07f.png,0f025d15-5a0b-4e5d-81e9-4a822c469467.png,445121aa-3bae-4b89-a8e9-fd41e2779276.png,54e427a5-b930-4506-a07d-8f1d7eb83ff5.png,560f6473-1e86-433f-a2fb-8e6d0c06d32f.png,8d000f4d-318a-47a1-9fa4-53c7b203a8fd.png,9ed4a149-8df3-45d4-b531-63b82833255a.png,b0c2b486-8dab-4c34-bec4-02e4b4ef835b.png,cd544214-fe15-402a-99a0-a57072952722.png",
"keys": "0d5e3eff-7726-4e3a-a2d4-409a9e68c2ec.png,16eb7a4a-34a0-45f3-8c02-154b638b1049.png,2c17dca6-ec35-4184-ae72-25813cf8f5dc.png,79040d0c-04ba-4c98-a512-5707d7ed37f5.png,93bcd69f-9897-4b12-8bf0-c0659817ccd2.png,e8c749fe-2a3b-4941-8527-37ba70a66e34.png,fdcf57c3-b91e-44d2-a011-7a0bbf4e5bb4.png",
"name": "bonus_lottie"
},
{
"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,panelBgS.png,powerIcon.png,powerImg.png,stepBtn.png,target0.png,target1.png,target2.png,target3.png,target4.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,e305be55-fdfd-453b-9e6d-41edfe68c0f1.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,panelBgS.png,powerIcon.png,powerImg.png,stepBtn.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,target0.png,target1.png,target2.png,target3.png,target4.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common"
},
{
......@@ -69,7 +69,7 @@
"name": "lotteryScene"
},
{
"keys": "guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_0.png,map_check_1.png,map_check_2.png,map_check_3.png,map_check_4.png,map_check_5.png,map_check_6.png,map_check_7.png,map_check_8.png,map_check_9.png,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png",
"keys": "checkTip99.png,clearanceBtn.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_0.png,map_check_1.png,map_check_2.png,map_check_3.png,map_check_4.png,map_check_5.png,map_check_6.png,map_check_7.png,map_check_8.png,map_check_9.png,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png",
"name": "map"
},
{
......@@ -77,7 +77,7 @@
"name": "mapCheckPrizeEffect"
},
{
"keys": "blueDoorBg.png,brownBallFace.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.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,ele0Hor.png,ele1Exp.png,ele1Hor.png,ele2Exp.png,ele2Hor.png,ele3Exp.png,ele3Hor.png,ele4Exp.png,ele4Hor.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.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,propCancel.png,propNumBg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum当.png,settingBg.png,settingBtn.png,starProgress.png,stepAni11.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"keys": "amazing.png,blueDoorBg.png,brownBallFace.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.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,ele0Hor.png,ele1Exp.png,ele1Hor.png,ele2Exp.png,ele2Hor.png,ele3Exp.png,ele3Hor.png,ele4Exp.png,ele4Hor.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,good.png,great.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.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,perfect.png,playBg.jpg,propCancel.png,propNumBg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum当.png,starProgress.png,stepAni11.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene"
},
{
......@@ -89,16 +89,12 @@
"name": "playSceneGuide"
},
{
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png",
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png",
"name": "playSceneNum"
},
{
"keys": "star_light_0.png,star_light_1.png,star_light_10.png,star_light_11.png,star_light_12.png,star_light_13.png,star_light_14.png,star_light_15.png,star_light_2.png,star_light_3.png,star_light_4.png,star_light_5.png,star_light_6.png,star_light_7.png,star_light_8.png,star_light_9.png",
"name": "starLight"
},
{
"keys": "e305be55-fdfd-453b-9e6d-41edfe68c0f1.png",
"name": "关卡提示"
}
],
"path": "./resource/"
......
......@@ -29,7 +29,7 @@ export const ResJson = {
"name": "RulePanel"
},
{
"keys": "关卡弹窗Bg.png",
"keys": "startBg.png,startBtn.png,startNum1.png,startNum2.png,startNum3.png,startNum4.png,startNum5.png,startNum6.png,startNum7.png,startNum8.png,startNum9.png,startNum关.png,startNum第.png",
"name": "StartPanel"
},
{
......@@ -45,11 +45,11 @@ export const ResJson = {
"name": "UseStep"
},
{
"keys": "0250abc4-fabc-4bf3-970a-46ceeb12d416.png,03756d82-4e5c-4bdc-8247-7f704ed92ba7.png,0b1a21c5-2e2f-43bc-81f7-ee1c4474d07f.png,0f025d15-5a0b-4e5d-81e9-4a822c469467.png,445121aa-3bae-4b89-a8e9-fd41e2779276.png,54e427a5-b930-4506-a07d-8f1d7eb83ff5.png,560f6473-1e86-433f-a2fb-8e6d0c06d32f.png,8d000f4d-318a-47a1-9fa4-53c7b203a8fd.png,9ed4a149-8df3-45d4-b531-63b82833255a.png,b0c2b486-8dab-4c34-bec4-02e4b4ef835b.png,cd544214-fe15-402a-99a0-a57072952722.png",
"keys": "0d5e3eff-7726-4e3a-a2d4-409a9e68c2ec.png,16eb7a4a-34a0-45f3-8c02-154b638b1049.png,2c17dca6-ec35-4184-ae72-25813cf8f5dc.png,79040d0c-04ba-4c98-a512-5707d7ed37f5.png,93bcd69f-9897-4b12-8bf0-c0659817ccd2.png,e8c749fe-2a3b-4941-8527-37ba70a66e34.png,fdcf57c3-b91e-44d2-a011-7a0bbf4e5bb4.png",
"name": "bonus_lottie"
},
{
"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,panelBgS.png,powerIcon.png,powerImg.png,stepBtn.png,target0.png,target1.png,target2.png,target3.png,target4.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,e305be55-fdfd-453b-9e6d-41edfe68c0f1.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,panelBgS.png,powerIcon.png,powerImg.png,stepBtn.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,target0.png,target1.png,target2.png,target3.png,target4.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common"
},
{
......@@ -69,7 +69,7 @@ export const ResJson = {
"name": "lotteryScene"
},
{
"keys": "guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_0.png,map_check_1.png,map_check_2.png,map_check_3.png,map_check_4.png,map_check_5.png,map_check_6.png,map_check_7.png,map_check_8.png,map_check_9.png,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png",
"keys": "checkTip99.png,clearanceBtn.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_0.png,map_check_1.png,map_check_2.png,map_check_3.png,map_check_4.png,map_check_5.png,map_check_6.png,map_check_7.png,map_check_8.png,map_check_9.png,map_check_disable.png,map_check_disable_prize.png,map_check_enable.png,map_check_enable_cur.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png",
"name": "map"
},
{
......@@ -77,7 +77,7 @@ export const ResJson = {
"name": "mapCheckPrizeEffect"
},
{
"keys": "blueDoorBg.png,brownBallFace.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.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,ele0Hor.png,ele1Exp.png,ele1Hor.png,ele2Exp.png,ele2Hor.png,ele3Exp.png,ele3Hor.png,ele4Exp.png,ele4Hor.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.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,propCancel.png,propNumBg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum当.png,settingBg.png,settingBtn.png,starProgress.png,stepAni11.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"keys": "amazing.png,blueDoorBg.png,brownBallFace.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.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,ele0Hor.png,ele1Exp.png,ele1Hor.png,ele2Exp.png,ele2Hor.png,ele3Exp.png,ele3Hor.png,ele4Exp.png,ele4Hor.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,good.png,great.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.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,perfect.png,playBg.jpg,propCancel.png,propNumBg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum当.png,starProgress.png,stepAni11.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene"
},
{
......@@ -89,16 +89,12 @@ export const ResJson = {
"name": "playSceneGuide"
},
{
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png",
"keys": "chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png",
"name": "playSceneNum"
},
{
"keys": "star_light_0.png,star_light_1.png,star_light_10.png,star_light_11.png,star_light_12.png,star_light_13.png,star_light_14.png,star_light_15.png,star_light_2.png,star_light_3.png,star_light_4.png,star_light_5.png,star_light_6.png,star_light_7.png,star_light_8.png,star_light_9.png",
"name": "starLight"
},
{
"keys": "e305be55-fdfd-453b-9e6d-41edfe68c0f1.png",
"name": "关卡提示"
}
],
"path": "./resource/"
......
......@@ -277,80 +277,6 @@ export const SkinJson = {
}
]
},
{
"name": "StartPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "关卡弹窗Bg",
"x": 55,
"y": 266,
"type": "sprite",
"props": {
"source": "关卡弹窗Bg.png"
}
},
{
"name": "关卡数",
"x": 312,
"y": 521,
"type": "text",
"props": {
"text": "第 6 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 206,
"y": 849,
"type": "text",
"props": {
"text": "通关参与抽奖,最高可赢得",
"size": 28,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "开始闯关要能量",
"x": 163,
"y": 1120,
"type": "button",
"props": {
"tUp": "开始闯关要能量.png"
},
"id": "startBtn"
},
{
"name": "prize",
"x": 130,
"y": 903,
"type": "sprite",
"props": {
"source": "prize.png"
},
"id": "prizeImg"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{
"name": "RulePanel",
"x": 0,
......
......@@ -21,19 +21,31 @@ export enum TbNetName {
*/
getActivityBaseInfoById = "feile.getActivityBaseInfoById",
/**
* 获取道具信息
*/
getToolsInfo = "feile.getToolsInfo",
/**
* 消耗道具 ,会返回剩余所有道具数量
* activityId type
*/
consumerTools = "feile.consumerTools",
/**
* 开始闯关,会返回体力值
* activityId level
*/
dojoin = "feile.doJoin",
/**
* 提交分数
* activityId level score stars isVisitSuccess(是否通关)
*/
gameOver = "babycare.gameOver",
gameOver = "feile.gameOver",
/**
* 领取任务奖励
* activityId taskType
......@@ -54,11 +66,7 @@ export enum TbNetName {
* activityId
*/
queryCredits = "babycare.queryCredits",
/**
* 开始闯关,会返回体力值
* activityId level
*/
dojoin = "babycare.dojoin",
/**
* 完成任务(浏览商品详情页, 关注店铺)
* activityId taskType
......
......@@ -75,7 +75,14 @@ export class Tools {
public static getGameInfo() {
return new Promise((r) => {
sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => {
if (s) this.gameData = res.data;
if (s) {
this.gameData = res.data;
Tools.gameData.prizeLevels = [];
for (let k in Tools.gameData.levelPrize) {
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
}
Tools.gameData.prizeLevels.sort((a, b) => a - b);
}
r(s);
})
})
......
This diff is collapsed.
export const 关卡提示 = {
export const CheckTip = {
"v": "5.6.10",
"fr": 24,
"ip": 0,
......
import { Panel } from "../../module/views/Panel";
import MouseEvent = FYGE.MouseEvent;
import { changeScene, showPanel } from "../../module/ctrls";
import { PlayScene } from "../scene/PlayScene";
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture;
import { Tools } from "../Tools";
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { NoEnergyPanel } from "./NoEnergyPanel";
import { ElementTargetData } from "../something/interface/ElementTargetData";
import Container = FYGE.Container;
import { getChapterData } from "../something/chapters/getChapter";
import { RES } from "../../module/RES";
import MouseEvent = FYGE.MouseEvent;
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite;
import Container = FYGE.Container;
import Button = FYGE.Button;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import VERTICAL_ALIGN = FYGE.VERTICAL_ALIGN;
export class StartPanel extends Panel {
get groupNames() {
return ["StartPanel"]
}
get skinName() {
return "StartPanel"
}
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
......@@ -35,24 +33,53 @@ export class StartPanel extends Panel {
});
}
closeBtn: FYGE.Button;
startBtn: FYGE.Button;
tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
prizeImg: Sprite;
initUi() {
this.checkTex.textWidth = 750;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.checkTex.x = 0;
this.checkTex.text = `第\t${this.data.level}\t关`;
this.addChild(new StartTarget(this.data.level))
.position.set(0, 682);
const { level } = this.data;
this.addChild(Tools.getSprite('startBg.png')).position.set(79, 345);
//第几关
const chapterTex = Tools.getNumTextures("startNum");
["第", "关"].forEach(e => chapterTex[e] = RES.getRes(`startNum${e}.png`));
const chapterTxt = this.addChild(new FYGE.BitmapText(chapterTex));
chapterTxt.text = "第" + (level >> 0) + "关";
chapterTxt.position.set(375, 463);
this.prizeImg.texture = Texture.fromUrl(Tools.gameData.levelPrize[`level${this.data.level}`]);
this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.x = 750 / 2;
this.addChild(new StartTarget(level)).position.set(0, 613);
// this.addChild(Tools.getRect(595, 80)).position.set(79, 730);
const tipTxt = level == 99 ? '通过此关即可获得抽取大奖的机会哦' : '通关即可抽取大奖\n分数越高几率越大哦';
const tip = this.addChild(Tools.getText( /// TODO 道具加步数
tipTxt, 26, '#744f1d',
TEXT_ALIGN.CENTER, 595, 79, 730
));
tip.textHeight = 80;
tip.lineSpacing = 10;
tip.verticalAlign = VERTICAL_ALIGN.MIDDLE;
const { prizeLevels, levelPrize } = Tools.gameData;
let pLevel = prizeLevels[0];
for (let i = 0; i < prizeLevels.length; i++) {
if (level <= prizeLevels[i]) {
pLevel = prizeLevels[i];
break;
}
}
const prizeImg = this.addChild(Sprite.fromUrl(levelPrize[`level${pLevel}`]));
prizeImg.position.set(375, 906);
prizeImg.anchorTexture.set(0.5, 0.5);
this.addChild(new Button(RES.getRes("startBtn.png")))
.addEventListener(MouseEvent.CLICK, this.startGame, this)
.position.set(190, 1073);
this.addChild(new Button(RES.getRes('关闭按钮.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(633, 456);
}
start(data) {
......@@ -72,32 +99,19 @@ export class StartPanel extends Panel {
this.enableMouseEvt(true);
if (!success) return;
// 访问页面埋点
sendTbNet(TbNetName.reportAnalytics, {logkey: 'join'});
Tools.gameData.power = res.data.power;
// Tools.gameData.power = res.data.power;
changeScene(PlayScene, {chapter: this.data.level});
this.hidePanel();
}
);
}
initEvents() {
super.initEvents();
this.startBtn.addEventListener(MouseEvent.CLICK, this.startGame, this);
}
removeEvents() {
super.removeEvents();
this.startBtn.removeEventListener(MouseEvent.CLICK, this.startGame, this);
}
}
const pos = [
[325],
[240, 410],
[180, 325, 470],
[345],
[295, 390],
[250, 345, 430],
]
export class StartTarget extends Container {
......@@ -130,14 +144,12 @@ export class StartTargetItem extends Container {
targetKey = 'target';
}
const targetImg = this.addChild(Tools.getSprite(`${targetKey}${data.type}.png`));
targetImg.width = targetImg.height = 100;
targetImg.width = targetImg.height = 65;
const targetTex = this.addChild(Tools.getText(
`${data.count}`, 30, '#ffffff',
TEXT_ALIGN.CENTER, 100, 0, 108
));
targetTex.strokeColor = '#eb5b57';
targetTex.stroke = 3;
const countNum = new FYGE.BitmapText(Tools.getNumTextures("tarNum"));//文字待定
countNum.position.set(65, 52);
countNum.text = data.count + "";
this.addChild(countNum);
this.anchor.set(50, 79);
this.scale.set(0, 0);
......@@ -148,7 +160,7 @@ export class StartTargetItem extends Container {
public playEffect() {
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 500, Ease.backOut)
.to({scaleX: 1, scaleY: 1}, 500, Ease.backOut);
}
}
......@@ -47,10 +47,6 @@ export class LoadingScene extends Scene {
// 游戏基本信息
const baseInfo = await Tools.getGameInfo();
if (!baseInfo) showToast("获取游戏信息失败");
Tools.gameData.prizeLevels = [];
for (let k in Tools.gameData.levelPrize) {
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
}
this.dispatchEvent(FYGE.Event.PROGRESS, 0.5);
......
......@@ -108,6 +108,7 @@ const movieClips = {
wonderful: null,
amazing: null,
great: null,
good: null,
bonusTime: null
}
......@@ -352,10 +353,10 @@ export class PlayScene extends Scene {
var bonusTime = new Lottie(bonus_lottie)
bonusTime.position.set(
(750 - bonusTime.videoWidth) / 2,
(1624 - bonusTime.videoHeight) / 2 - layers.stageOffsetY
(1624 - bonusTime.videoHeight) / 2 - layers.stageOffsetY - 200
)
movieClips.bonusTime = bonusTime;
["great", "wonderful", "amazing"].forEach((e) => {
["great", "wonderful", "amazing", "good"].forEach((e) => {
var g = new GameToast(e + ".png");
g.position.set(375, 1624 / 2 - layers.stageOffsetY);
movieClips[e] = g
......@@ -1013,6 +1014,7 @@ export class PlayScene extends Scene {
this.isMouseAction = true;
break;
case PropType.STEPS:
showToast(`道具使用成功,步数+${Tools.addSteps}!`);
this.playAni(RecoverName.STEP_ANI, [stepPosition[0] - 40, stepPosition[1] + 20]);
setTimeout(() => {
this.steps += 5;
......@@ -1845,9 +1847,11 @@ export class PlayScene extends Scene {
//连消基数为1
this.commonContinuityTimes = 1;
this.effectContinuityTimes = 1;
const rect = this.addChild(Tools.getRect(this.width, this.height, 0x000000, 0.7));
this.addChild(movieClips.bonusTime);
movieClips.bonusTime.play(1, () => {
this.removeChild(movieClips.bonusTime)
this.removeChild(rect);
this.removeChild(movieClips.bonusTime);
//来个波纹
RectsWaveAni(this.lattices, this.map, () => {
this.terminateSteps();
......@@ -2493,18 +2497,21 @@ export class PlayScene extends Scene {
if (this.oneStepScore > 5000) {
//playSound(SoundType.toast);
sv = "wonderful";
} else if (this.oneStepScore > 3000) {
} else if (this.oneStepScore > 3500) {
//playSound(SoundType.toast);
sv = "amazing";
} else if (this.oneStepScore > 1000) {
} else if (this.oneStepScore > 2000) {
//playSound(SoundType.toast);
sv = "great";
} else if (this.oneStepScore > 1000) {
//playSound(SoundType.toast);
sv = "good";
}
if (sv && movieClips[sv]) {
this.addChild(movieClips[sv])
this.addChild(movieClips[sv]);
movieClips[sv].play(1, () => {
this.removeChild(movieClips[sv])
})
this.removeChild(movieClips[sv]);
});
}
this.oneStepScore = 0;
}
......
import Button = FYGE.Button;
import { RES } from "../../../module/RES";
import Container = FYGE.Container;
import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture;
import { Tools } from "../../Tools";
import MouseEvent = FYGE.MouseEvent;
import Point = FYGE.Point;
import FrameAni = FYGE.FrameAni;
import Tween = FYGE.Tween;
import BitmapText = FYGE.BitmapText;
import { RES } from "../../../module/RES";
import { Tools } from "../../Tools";
import { showPanel } from "../../../module/ctrls";
import { StartPanel } from "../../panels/StartPanel";
import BitmapText = FYGE.BitmapText;
import { Lottie } from "../../Lottie";
import { CheckTip } from "../../lotties/checkTip";
export enum CHECK_TYPE {
COM, // 普通
......@@ -42,7 +42,7 @@ export default class CheckBtn extends Container {
private star: CheckStar[] = null;
private prizeAnim: FrameAni = null;
private curAni: Lottie = null;
private checkNum: number = null;
......@@ -112,6 +112,9 @@ export default class CheckBtn extends Container {
RES.getRes('map_check_enable_cur.png'),
RES.getRes('map_check_enable_cur.png'),
RES.getRes('map_check_disable.png'));
const curAni = this.addChildAt(new Lottie(CheckTip), -1);
curAni.position.set(-72, -60);
curAni.play(-1);
break;
}
}
......@@ -126,20 +129,6 @@ export default class CheckBtn extends Container {
constructor(data) {
super();
this.initUi(data);
this.initEffect();
}
private initEffect() {
const textures: Texture[] = [];
for (let i = 0; i < 17; i++) {
textures.push(RES.getRes(`prize_check_${i}.png`));
}
for (let i = 17; i < 60; i++) {
textures.push(RES.getRes('prize_check_0.png'));
}
this.prizeAnim = new FrameAni(textures);
this.prizeAnim.play(-1);
this.prizeAnim.position.set(54, 54);
}
protected initUi(data) {
......@@ -173,6 +162,10 @@ export default class CheckBtn extends Container {
// 点击事件
this.btn.addEventListener(MouseEvent.CLICK, this.clickStart, this);
if (data.check == 99) {
this.addChild(Tools.getSprite("checkTip99.png", -34, -62));
}
}
public clickStart() {
......
......@@ -2,8 +2,8 @@
* 道具类型
*/
export enum PropType {
STEPS = "STEPS",
BOOMS = "BOOMS",
HAMMERS = "HAMMERS",
POWER = "POWER",
STEPS = "steps",
BOOMS = "booms",
HAMMERS = "hammers",
POWER = "power",
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment