Commit 4ec7aeeb authored by haiyoucuv's avatar haiyoucuv

guide

parent 22c898b0
This diff is collapsed.
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
"isReceive": true "isReceive": true
} }
], ],
"isFristLogin": false, "isFristLogin": true,
"loginAddPower": false "loginAddPower": false
} }
} }
resource/playScene/gameGuideBoard.png

47.3 KB | W: | H:

resource/playScene/gameGuideBoard.png

7.52 KB | W: | H:

resource/playScene/gameGuideBoard.png
resource/playScene/gameGuideBoard.png
resource/playScene/gameGuideBoard.png
resource/playScene/gameGuideBoard.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/guidePropHand.png

8.16 KB | W: | H:

resource/playScene/guidePropHand.png

8.17 KB | W: | H:

resource/playScene/guidePropHand.png
resource/playScene/guidePropHand.png
resource/playScene/guidePropHand.png
resource/playScene/guidePropHand.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
"name": "lotteryScene" "name": "lotteryScene"
}, },
{ {
"keys": "cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png", "keys": "cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,mapGuide.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png",
"name": "map" "name": "map"
}, },
{ {
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
"name": "mapTree" "name": "mapTree"
}, },
{ {
"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,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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,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,prop_count_bg.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,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", "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,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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,gameGuide1.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-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,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,prop_count_bg.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,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" "name": "playScene"
}, },
{ {
......
...@@ -69,7 +69,7 @@ export const ResJson = { ...@@ -69,7 +69,7 @@ export const ResJson = {
"name": "lotteryScene" "name": "lotteryScene"
}, },
{ {
"keys": "cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png", "keys": "cur_light_1.png,cur_light_2.png,guide_fox.png,guide_hand.png,guide_light.png,guide_tip.png,lightImg.png,mapGuide.png,map_avatar_bg.png,map_bg1.jpg,map_bg2.jpg,map_bg3.jpg,map_check_disable.png,map_check_enable.png,map_check_enable_cur.png,map_energyAdd.png,map_energyBg.png,map_prizeBtn.png,map_ruleBtn.png,map_star_disable.png,map_star_enable.png,map_taskBtn.png,map_taskBtn_tip.png",
"name": "map" "name": "map"
}, },
{ {
...@@ -97,7 +97,7 @@ export const ResJson = { ...@@ -97,7 +97,7 @@ export const ResJson = {
"name": "mapTree" "name": "mapTree"
}, },
{ {
"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,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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,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,prop_count_bg.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,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", "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,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,ele0Line.png,ele1Exp.png,ele1Line.png,ele2Exp.png,ele2Line.png,ele3Exp.png,ele3Line.png,ele4Exp.png,ele4Line.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,gameGuide1.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-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,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,prop_count_bg.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,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" "name": "playScene"
}, },
{ {
......
...@@ -82,6 +82,14 @@ export class MapScene extends Scene { ...@@ -82,6 +82,14 @@ export class MapScene extends Scene {
g.beginFill(0, 0.6); g.beginFill(0, 0.6);
g.drawRect(0, 0, 750, 1624); g.drawRect(0, 0, 750, 1624);
g.endFill(); g.endFill();
const mapGuide = guide.addChild(Tools.getSprite('mapGuide.png'));
mapGuide.anchorTexture.set(0.5, 0.5);
mapGuide.position.set(375, 650);
mapGuide.mouseEnable = false;
const guide_check = guide.addChild(new CheckBtn({check: 1})); const guide_check = guide.addChild(new CheckBtn({check: 1}));
guide_check.enabled = true; guide_check.enabled = true;
guide_check.type = CHECK_TYPE.CUR; guide_check.type = CHECK_TYPE.CUR;
...@@ -92,33 +100,33 @@ export class MapScene extends Scene { ...@@ -92,33 +100,33 @@ export class MapScene extends Scene {
guide_hand.position.set(guide_check.x + 90, guide_check.y + 40); guide_hand.position.set(guide_check.x + 90, guide_check.y + 40);
guide_hand.mouseEnable = guide_hand.mouseChildren = false; guide_hand.mouseEnable = guide_hand.mouseChildren = false;
const guide_light = guide.addChild(Tools.getSprite('guide_light.png')); // const guide_light = guide.addChild(Tools.getSprite('guide_light.png'));
guide_light.anchorTexture.set(0.5, 0.5); // guide_light.anchorTexture.set(0.5, 0.5);
guide_light.position.set(guide_check.x + 95, guide_check.y + 45); // guide_light.position.set(guide_check.x + 95, guide_check.y + 45);
guide_light.mouseEnable = guide_light.mouseChildren = false; // guide_light.mouseEnable = guide_light.mouseChildren = false;
//
const guide_fox = guide.addChild(Tools.getSprite('guide_fox.png')); // const guide_fox = guide.addChild(Tools.getSprite('guide_fox.png'));
guide_fox.position.set(45, guide_check.y - 200); // guide_fox.position.set(45, guide_check.y - 200);
guide_fox.alpha = 0; // guide_fox.alpha = 0;
//
const guide_tip = guide.addChild(Tools.getSprite('guide_tip.png')); // const guide_tip = guide.addChild(Tools.getSprite('guide_tip.png'));
guide_tip.anchorTexture.set(0, 0.3); // guide_tip.anchorTexture.set(0, 0.3);
guide_tip.position.set(guide_fox.x + 215, guide_fox.y - 70); // guide_tip.position.set(guide_fox.x + 215, guide_fox.y - 70);
guide_tip.scale.set(0, 0); // guide_tip.scale.set(0, 0);
guide.alpha = 0; guide.alpha = 0;
Tween.get(guide) Tween.get(guide)
.to({alpha: 1}, 600, Ease.quadInOut); .to({alpha: 1}, 600, Ease.quadInOut);
Tween.get(guide_fox) // Tween.get(guide_fox)
.wait(300) // .wait(300)
.to({y: guide_check.y - 345, alpha: 1}, 300, Ease.quadInOut) // .to({y: guide_check.y - 345, alpha: 1}, 300, Ease.quadInOut)
.wait(100) // .wait(100)
.call(() => { // .call(() => {
Tween.get(guide_tip) // Tween.get(guide_tip)
.to({scaleX: 1, scaleY: 1}, 300, Ease.quadInOut); // .to({scaleX: 1, scaleY: 1}, 300, Ease.quadInOut);
}); // });
} }
...@@ -250,7 +258,7 @@ export class MapAvatar extends Container { ...@@ -250,7 +258,7 @@ export class MapAvatar extends Container {
super(); super();
this.addChild(Tools.getSprite('map_avatar_bg.png')) this.addChild(Tools.getSprite('map_avatar_bg.png'))
.anchorTexture.set(0.5, 1); .anchorTexture.set(0.5, 1);
this.position.set(54, 32); this.position.set(54, 32);
this.mouseChildren = this.mouseEnable = false; this.mouseChildren = this.mouseEnable = false;
......
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import { MsgBoard } from "./GameGuide"; import { MsgBoard } from "./GameGuide";
import { layers } from "../../../module/views/layers"; import { layers } from "../../../module/views/layers";
import { Tools } from "../../Tools";
// 首次道具赠送 // 首次道具赠送
export class FirstPropGift extends FYGE.Container { export class FirstPropGift extends FYGE.Container {
...@@ -13,13 +14,18 @@ export class FirstPropGift extends FYGE.Container { ...@@ -13,13 +14,18 @@ export class FirstPropGift extends FYGE.Container {
bg.endFill(); bg.endFill();
bg.hitTestByPixel = false; bg.hitTestByPixel = false;
//信息板 //信息板
var msgBoard = this.addChild(new MsgBoard());
msgBoard.position.set((750 - 604) / 2, 800); const guide = this.addChild(Tools.getSprite('gameGuide1.png'));
msgBoard.msg = "首次进入游戏,送你三个道具,让你通关无阻力!"; guide.anchorTexture.set(0.5, 0.5);
//三个道具 guide.position.set(375, 812);
["stepBtn", "boomBtn", "hammerBtn"].forEach((e, i) => {
this.addChild(FYGE.Sprite.fromFrame(e + ".png")) // var msgBoard = this.addChild(new MsgBoard());
.position.set(100 + i * 230, 500) // msgBoard.position.set((750 - 604) / 2, 800);
}) // msgBoard.msg = "首次进入游戏,送你三个道具,让你通关无阻力!";
// 三个道具
// ["stepBtn", "boomBtn", "hammerBtn"].forEach((e, i) => {
// this.addChild(FYGE.Sprite.fromFrame(e + ".png"))
// .position.set(100 + i * 230, 500)
// })
} }
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ import { GTool } from "../../../module/tools/GTool"; ...@@ -10,7 +10,7 @@ import { GTool } from "../../../module/tools/GTool";
* 引导前,initElements需要编排特定元素 * 引导前,initElements需要编排特定元素
* 游戏引导,。8种 * 游戏引导,。8种
* 蒙层都一致,但是需要特定镂空,手势,和提示文案 * 蒙层都一致,但是需要特定镂空,手势,和提示文案
* *
*/ */
export class GameGuide extends FYGE.Container { export class GameGuide extends FYGE.Container {
/** /**
...@@ -25,7 +25,7 @@ export class GameGuide extends FYGE.Container { ...@@ -25,7 +25,7 @@ export class GameGuide extends FYGE.Container {
msgBoard: MsgBoard msgBoard: MsgBoard
/** /**
* 直接把this传入得了,懒得弄了 * 直接把this传入得了,懒得弄了
* @param thisObj * @param thisObj
*/ */
constructor(thisObj: PlayScene) { constructor(thisObj: PlayScene) {
super(); super();
...@@ -98,8 +98,8 @@ export class GameGuide extends FYGE.Container { ...@@ -98,8 +98,8 @@ export class GameGuide extends FYGE.Container {
} }
/** /**
* *
* @param chapter * @param chapter
* @param step 0第一步,1第二步 * @param step 0第一步,1第二步
*/ */
private drawBg(step: number = 0) { private drawBg(step: number = 0) {
...@@ -134,13 +134,13 @@ export class MsgBoard extends FYGE.Sprite { ...@@ -134,13 +134,13 @@ export class MsgBoard extends FYGE.Sprite {
var msg = this.addChild(Tools.getText( var msg = this.addChild(Tools.getText(
"", "",
30, 30,
"#df5942", "#ffffff",
FYGE.TEXT_ALIGN.LEFT, FYGE.TEXT_ALIGN.LEFT,
330, 540,
258, 105,
14 0
)) ))
msg.textHeight = 166; msg.textHeight = 182;
msg.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE; msg.verticalAlign = FYGE.VERTICAL_ALIGN.MIDDLE;
msg.lineType = FYGE.TEXT_lINETYPE.MULTI; msg.lineType = FYGE.TEXT_lINETYPE.MULTI;
this._msg = msg; this._msg = msg;
...@@ -397,9 +397,9 @@ const chapterFuns = { ...@@ -397,9 +397,9 @@ const chapterFuns = {
/** /**
* 根据显示index和隐藏的绘制图形 * 根据显示index和隐藏的绘制图形
* @param shape * @param shape
* @param showIndexs * @param showIndexs
* @param hideIndexs * @param hideIndexs
*/ */
function drawHole(shape: FYGE.Shape, showIndexs: number[], hideIndexs: number[]) { function drawHole(shape: FYGE.Shape, showIndexs: number[], hideIndexs: number[]) {
...@@ -442,4 +442,4 @@ function getWordCnt(arr: any[]) { ...@@ -442,4 +442,4 @@ function getWordCnt(arr: any[]) {
prev[next] = (prev[next] + 1) || 1; prev[next] = (prev[next] + 1) || 1;
return prev; return prev;
}, {}); }, {});
} }
...@@ -3,6 +3,7 @@ import { Tool } from "../Tool"; ...@@ -3,6 +3,7 @@ import { Tool } from "../Tool";
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import { PropType } from "../enum/PropType"; import { PropType } from "../enum/PropType";
import { stepPosition } from "../anis/BonusShootAni"; import { stepPosition } from "../anis/BonusShootAni";
import { Tools } from "../../Tools";
/** /**
* 道具使用引导,初始化一次,然后用init初始化 * 道具使用引导,初始化一次,然后用init初始化
...@@ -20,6 +21,7 @@ export class PropGuide extends FYGE.Container { ...@@ -20,6 +21,7 @@ export class PropGuide extends FYGE.Container {
super() super()
this.bg = new FYGE.Shape(); this.bg = new FYGE.Shape();
this.addChild(this.bg); this.addChild(this.bg);
this.boomBtn = new FYGE.Sprite(RES.getRes("boomBtn.png")); this.boomBtn = new FYGE.Sprite(RES.getRes("boomBtn.png"));
this.boomBtn.x = 336; this.boomBtn.x = 336;
this.boomBtn.y = offsetY; this.boomBtn.y = offsetY;
......
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