Commit efad7d2f authored by 邱旭's avatar 邱旭

1

parent e2f2dd58
......@@ -327,6 +327,9 @@ export default class MainBase extends eui.UILayer {
for (var i = 1; i <= 13; i++) {
RES.getResAsync("lineLight" + i + "_png")
}
for (var i = 0; i <= 8; i++) {
RES.getResAsync("线条尾部炸开_0000" + i + "_png");
}
var arr = [
"rectLatWhite",
"redBombBStar","redBombYStar","redBombBSnow",
......@@ -410,7 +413,8 @@ export default class MainBase extends eui.UILayer {
this.svgaList = await Promise.all([
loadSvga(getResPath() + 'resource/assets/svgas/loading_progress.svga'),
loadSvga(getResPath() + 'resource/assets/svgas/loading_animals.svga'),
loadSvga(getResPath() + 'resource/assets/svgas/loading_title.svga')
loadSvga(getResPath() + 'resource/assets/svgas/loading_title.svga'),
loadSvga(getResPath() + 'resource/assets/svgas/拖尾结束.svga')
]);
loadSvga(getResPath() + 'resource/assets/svgas/box.svga');
loadSvga(getResPath() + 'resource/assets/svgas/invite.svga');
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"main2","version":5,"files":["../assets/mainScene/bonusFra1.png","../assets/mainScene/bonusFra10.png","../assets/mainScene/bonusFra11.png","../assets/mainScene/bonusFra12.png","../assets/mainScene/bonusFra13.png","../assets/mainScene/bonusFra14.png","../assets/mainScene/bonusFra15.png","../assets/mainScene/bonusFra16.png","../assets/mainScene/bonusFra17.png","../assets/mainScene/bonusFra18.png","../assets/mainScene/bonusFra19.png","../assets/mainScene/bonusFra2.png","../assets/mainScene/bonusFra20.png","../assets/mainScene/bonusFra21.png","../assets/mainScene/bonusFra22.png","../assets/mainScene/bonusFra23.png","../assets/mainScene/bonusFra24.png","../assets/mainScene/bonusFra25.png","../assets/mainScene/bonusFra26.png","../assets/mainScene/bonusFra27.png","../assets/mainScene/bonusFra3.png","../assets/mainScene/bonusFra4.png","../assets/mainScene/bonusFra5.png","../assets/mainScene/bonusFra6.png","../assets/mainScene/bonusFra7.png","../assets/mainScene/bonusFra8.png","../assets/mainScene/bonusFra9.png","../assets/mainScene/bonusShoot.png","../assets/mainScene/bonusTime.png","../assets/mainScene/boom1.png","../assets/mainScene/boom10.png","../assets/mainScene/boom11.png","../assets/mainScene/boom12.png","../assets/mainScene/boom13.png","../assets/mainScene/boom14.png","../assets/mainScene/boom15.png","../assets/mainScene/boom16.png","../assets/mainScene/boom17.png","../assets/mainScene/boom18.png","../assets/mainScene/boom2.png","../assets/mainScene/boom3.png","../assets/mainScene/boom4.png","../assets/mainScene/boom5.png","../assets/mainScene/boom6.png","../assets/mainScene/boom7.png","../assets/mainScene/boom8.png","../assets/mainScene/boom9.png","../assets/mainScene/boomBtn.png","../assets/mainScene/chooseRect.png","../assets/mainScene/dangqianfenshu.png","../assets/mainScene/eggPiece1.png","../assets/mainScene/eggPiece2.png","../assets/mainScene/eggPiece3.png","../assets/mainScene/eggPiece4.png","../assets/mainScene/eggPiece5.png","../assets/mainScene/eggStatus0.png","../assets/mainScene/eggStatus1.png","../assets/mainScene/eggStatus2.png","../assets/mainScene/ele0.png","../assets/mainScene/ele0Exp.png","../assets/mainScene/ele0Line.png","../assets/mainScene/ele1.png","../assets/mainScene/ele1Exp.png","../assets/mainScene/ele1Line.png","../assets/mainScene/ele2.png","../assets/mainScene/ele2Exp.png","../assets/mainScene/ele2Line.png","../assets/mainScene/ele3.png","../assets/mainScene/ele3Exp.png","../assets/mainScene/ele3Line.png","../assets/mainScene/ele4.png","../assets/mainScene/ele4Exp.png","../assets/mainScene/ele4Line.png","../assets/mainScene/ele5.png","../assets/mainScene/ele6.png","../assets/mainScene/ele7.png","../assets/mainScene/ele8.png","../assets/mainScene/ele9.png","../assets/mainScene/eleDis1.png","../assets/mainScene/eleDis10.png","../assets/mainScene/eleDis11.png","../assets/mainScene/eleDis12.png","../assets/mainScene/eleDis13.png","../assets/mainScene/eleDis14.png","../assets/mainScene/eleDis15.png","../assets/mainScene/eleDis16.png","../assets/mainScene/eleDis17.png","../assets/mainScene/eleDis18.png","../assets/mainScene/eleDis19.png","../assets/mainScene/eleDis2.png","../assets/mainScene/eleDis3.png","../assets/mainScene/eleDis4.png","../assets/mainScene/eleDis5.png","../assets/mainScene/eleDis6.png","../assets/mainScene/eleDis7.png","../assets/mainScene/eleDis8.png","../assets/mainScene/eleDis9.png","../assets/mainScene/exLighting1.png","../assets/mainScene/exLighting11.png","../assets/mainScene/exLighting14.png","../assets/mainScene/exLighting16.png","../assets/mainScene/exLighting18.png","../assets/mainScene/exLighting19.png","../assets/mainScene/exLighting21.png","../assets/mainScene/exLighting23.png","../assets/mainScene/exLighting25.png","../assets/mainScene/exLighting27.png","../assets/mainScene/exLighting29.png","../assets/mainScene/exLighting3.png","../assets/mainScene/exLighting32.png","../assets/mainScene/exLighting34.png","../assets/mainScene/exLighting5.png","../assets/mainScene/exLighting7.png","../assets/mainScene/exLighting9.png","../assets/mainScene/greenCircleDown.png","../assets/mainScene/greenCircleUp.png","../assets/mainScene/guidePropBoom.png","../assets/mainScene/guidePropCow.png","../assets/mainScene/guidePropHammer.png","../assets/mainScene/guidePropHand.png","../assets/mainScene/guidePropMsgPanel.png","../assets/mainScene/guidePropShoe.png","../assets/mainScene/hammerBtn.png","../assets/mainScene/ice2.png","../assets/mainScene/ice3.png","../assets/mainScene/ice4.png","../assets/mainScene/ice5.png","../assets/mainScene/ice6.png","../assets/mainScene/jellyArrow.png","../assets/mainScene/leftArrow.png","../assets/mainScene/lightedStar.png","../assets/mainScene/lineLight.png","../assets/mainScene/lockVine.png","../assets/mainScene/magicLion.png","../assets/mainScene/magicLionBg.png","../assets/mainScene/mainMusicBtnOff.png","../assets/mainScene/mainMusicBtnOn.png","../assets/mainScene/mainQuestionBtn.png","../assets/mainScene/mainQuitBtn.png","../assets/mainScene/mainSettingBg.png","../assets/mainScene/mainSoundBtnOff.png","../assets/mainScene/mainSoundBtnOn.png","../assets/mainScene/main_mapbottom.png","../assets/mainScene/progressDown.png","../assets/mainScene/propNum0.png","../assets/mainScene/propNum1.png","../assets/mainScene/propNum2.png","../assets/mainScene/propNum3.png","../assets/mainScene/propNum4.png","../assets/mainScene/propNum5.png","../assets/mainScene/propNum6.png","../assets/mainScene/propNum7.png","../assets/mainScene/propNum8.png","../assets/mainScene/propNum9.png","../assets/mainScene/propNumBg.png","../assets/mainScene/rectLat.png","../assets/mainScene/rightArrow.png","../assets/mainScene/rightMark.png","../assets/mainScene/rock2.png","../assets/mainScene/rock3.png","../assets/mainScene/rock4.png","../assets/mainScene/rock5.png","../assets/mainScene/rock6.png","../assets/mainScene/scoreNumber0.png","../assets/mainScene/scoreNumber1.png","../assets/mainScene/scoreNumber2.png","../assets/mainScene/scoreNumber3.png","../assets/mainScene/scoreNumber4.png","../assets/mainScene/scoreNumber5.png","../assets/mainScene/scoreNumber6.png","../assets/mainScene/scoreNumber7.png","../assets/mainScene/scoreNumber8.png","../assets/mainScene/scoreNumber9.png","../assets/mainScene/setting.png","../assets/mainScene/starProgress.png","../assets/mainScene/stepAni1.png","../assets/mainScene/stepAni10.png","../assets/mainScene/stepAni11.png","../assets/mainScene/stepAni2.png","../assets/mainScene/stepAni3.png","../assets/mainScene/stepAni4.png","../assets/mainScene/stepAni5.png","../assets/mainScene/stepAni6.png","../assets/mainScene/stepAni7.png","../assets/mainScene/stepAni8.png","../assets/mainScene/stepAni9.png","../assets/mainScene/stepBtn.png","../assets/mainScene/stepNumber0.png","../assets/mainScene/stepNumber1.png","../assets/mainScene/stepNumber2.png","../assets/mainScene/stepNumber3.png","../assets/mainScene/stepNumber4.png","../assets/mainScene/stepNumber5.png","../assets/mainScene/stepNumber6.png","../assets/mainScene/stepNumber7.png","../assets/mainScene/stepNumber8.png","../assets/mainScene/stepNumber9.png","../assets/mainScene/stepsBoard.png","../assets/mainScene/targetBoard.png","../assets/mainScene/targetNumber0.png","../assets/mainScene/targetNumber1.png","../assets/mainScene/targetNumber2.png","../assets/mainScene/targetNumber3.png","../assets/mainScene/targetNumber4.png","../assets/mainScene/targetNumber5.png","../assets/mainScene/targetNumber6.png","../assets/mainScene/targetNumber7.png","../assets/mainScene/targetNumber8.png","../assets/mainScene/targetNumber9.png","../assets/mainScene/unlightedStar.png","../assets/mainScene/yellowCircleDown.png","../assets/mainScene/yellowCircleUp.png","../assets/mainScene/yezi1.png","../assets/mainScene/bubbleStar19.png","../assets/mainScene/bubleEle0.png","../assets/mainScene/bubleEle1.png","../assets/mainScene/bubleEle2.png","../assets/mainScene/bubleEle3.png","../assets/mainScene/bubleEle4.png","../assets/mainScene/bubbleStar1.png","../assets/mainScene/bubbleStar2.png","../assets/mainScene/bubbleStar3.png","../assets/mainScene/bubbleStar4.png","../assets/mainScene/bubbleStar5.png","../assets/mainScene/bubbleStar6.png","../assets/mainScene/bubbleStar7.png","../assets/mainScene/bubbleStar8.png","../assets/mainScene/bubbleStar9.png","../assets/mainScene/bubbleStar10.png","../assets/mainScene/bubbleStar11.png","../assets/mainScene/bubbleStar12.png","../assets/mainScene/bubbleStar13.png","../assets/mainScene/bubbleStar14.png","../assets/mainScene/bubbleStar15.png","../assets/mainScene/bubbleStar16.png","../assets/mainScene/bubbleStar17.png","../assets/mainScene/bubbleStar18.png","../assets/mainScene/ele11.png","../assets/mainScene/ele10.png","../assets/mainScene/brownBallFace.png","../assets/mainScene/eyeDownLeft.png","../assets/mainScene/eyeSingle.png","../assets/mainScene/greyBallFace.png","../assets/mainScene/eyeDownRight.png","../assets/mainScene/hairballPiece9.png","../assets/mainScene/hairballPiece8.png","../assets/mainScene/hairballPiece7.png","../assets/mainScene/hairballPiece6.png","../assets/mainScene/hairballPiece5.png","../assets/mainScene/hairballPiece4.png","../assets/mainScene/hairballPiece3.png","../assets/mainScene/hairballPiece2.png","../assets/mainScene/hairballPiece11.png","../assets/mainScene/hairballPiece10.png","../assets/mainScene/hairballPiece1.png","../assets/mainScene/hairballDisBg.png","../assets/mainScene/curScoreNum9.png","../assets/mainScene/curScoreNum8.png","../assets/mainScene/curScoreNum7.png","../assets/mainScene/curScoreNum6.png","../assets/mainScene/curScoreNum5.png","../assets/mainScene/curScoreNum4.png","../assets/mainScene/curScoreNum3.png","../assets/mainScene/curScoreNum2.png","../assets/mainScene/curScoreNum1.png","../assets/mainScene/curScoreNum0.png","../assets/mainScene/festivalTargetBg.png","../assets/mainScene/lineLight9.png","../assets/mainScene/lineLight8.png","../assets/mainScene/lineLight7.png","../assets/mainScene/lineLight6.png","../assets/mainScene/lineLight5.png","../assets/mainScene/lineLight4.png","../assets/mainScene/lineLight3.png","../assets/mainScene/lineLight2.png","../assets/mainScene/lineLight13.png","../assets/mainScene/lineLight12.png","../assets/mainScene/lineLight11.png","../assets/mainScene/lineLight10.png","../assets/mainScene/lineLight1.png","../assets/mainScene/fesRedUp.png","../assets/mainScene/fesRedSmallLight.png","../assets/mainScene/fesRedDown.png","../assets/mainScene/fesRedCap.png","../assets/mainScene/fesRedBombSta1.png","../assets/mainScene/fesRedBigLight.png","../assets/mainScene/fesEleSmallDis9.png","../assets/mainScene/fesEleSmallDis8.png","../assets/mainScene/fesEleSmallDis7.png","../assets/mainScene/fesEleSmallDis6.png","../assets/mainScene/fesEleSmallDis5.png","../assets/mainScene/fesEleSmallDis4.png","../assets/mainScene/fesEleSmallDis3.png","../assets/mainScene/fesEleSmallDis2.png","../assets/mainScene/fesEleSmallDis10.png","../assets/mainScene/fesEleSmallDis1.png","../assets/mainScene/ele12.png","../assets/mainScene/ele13.png","../assets/mainScene/xingxingbi.png","../assets/mainScene/tinyRedMid.png","../assets/mainScene/tinyRedLeft.png","../assets/mainScene/tinyRedRight.png","../assets/mainScene/rectLatWhite.png","../assets/mainScene/fesRedBombSta2.png","../assets/mainScene/ele14.png","../assets/mainScene/redBombYStar.png","../assets/mainScene/redBombBStar.png","../assets/mainScene/redBombBSnow.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"main2","version":5,"files":["../assets/mainScene/bonusFra1.png","../assets/mainScene/bonusFra10.png","../assets/mainScene/bonusFra11.png","../assets/mainScene/bonusFra12.png","../assets/mainScene/bonusFra13.png","../assets/mainScene/bonusFra14.png","../assets/mainScene/bonusFra15.png","../assets/mainScene/bonusFra16.png","../assets/mainScene/bonusFra17.png","../assets/mainScene/bonusFra18.png","../assets/mainScene/bonusFra19.png","../assets/mainScene/bonusFra2.png","../assets/mainScene/bonusFra20.png","../assets/mainScene/bonusFra21.png","../assets/mainScene/bonusFra22.png","../assets/mainScene/bonusFra23.png","../assets/mainScene/bonusFra24.png","../assets/mainScene/bonusFra25.png","../assets/mainScene/bonusFra26.png","../assets/mainScene/bonusFra27.png","../assets/mainScene/bonusFra3.png","../assets/mainScene/bonusFra4.png","../assets/mainScene/bonusFra5.png","../assets/mainScene/bonusFra6.png","../assets/mainScene/bonusFra7.png","../assets/mainScene/bonusFra8.png","../assets/mainScene/bonusFra9.png","../assets/mainScene/bonusShoot.png","../assets/mainScene/bonusTime.png","../assets/mainScene/boom1.png","../assets/mainScene/boom10.png","../assets/mainScene/boom11.png","../assets/mainScene/boom12.png","../assets/mainScene/boom13.png","../assets/mainScene/boom14.png","../assets/mainScene/boom15.png","../assets/mainScene/boom16.png","../assets/mainScene/boom17.png","../assets/mainScene/boom18.png","../assets/mainScene/boom2.png","../assets/mainScene/boom3.png","../assets/mainScene/boom4.png","../assets/mainScene/boom5.png","../assets/mainScene/boom6.png","../assets/mainScene/boom7.png","../assets/mainScene/boom8.png","../assets/mainScene/boom9.png","../assets/mainScene/boomBtn.png","../assets/mainScene/chooseRect.png","../assets/mainScene/dangqianfenshu.png","../assets/mainScene/eggPiece1.png","../assets/mainScene/eggPiece2.png","../assets/mainScene/eggPiece3.png","../assets/mainScene/eggPiece4.png","../assets/mainScene/eggPiece5.png","../assets/mainScene/eggStatus0.png","../assets/mainScene/eggStatus1.png","../assets/mainScene/eggStatus2.png","../assets/mainScene/ele0.png","../assets/mainScene/ele0Exp.png","../assets/mainScene/ele0Line.png","../assets/mainScene/ele1.png","../assets/mainScene/ele1Exp.png","../assets/mainScene/ele1Line.png","../assets/mainScene/ele2.png","../assets/mainScene/ele2Exp.png","../assets/mainScene/ele2Line.png","../assets/mainScene/ele3.png","../assets/mainScene/ele3Exp.png","../assets/mainScene/ele3Line.png","../assets/mainScene/ele4.png","../assets/mainScene/ele4Exp.png","../assets/mainScene/ele4Line.png","../assets/mainScene/ele5.png","../assets/mainScene/ele6.png","../assets/mainScene/ele7.png","../assets/mainScene/ele8.png","../assets/mainScene/ele9.png","../assets/mainScene/eleDis1.png","../assets/mainScene/eleDis10.png","../assets/mainScene/eleDis11.png","../assets/mainScene/eleDis12.png","../assets/mainScene/eleDis13.png","../assets/mainScene/eleDis14.png","../assets/mainScene/eleDis15.png","../assets/mainScene/eleDis16.png","../assets/mainScene/eleDis17.png","../assets/mainScene/eleDis18.png","../assets/mainScene/eleDis19.png","../assets/mainScene/eleDis2.png","../assets/mainScene/eleDis3.png","../assets/mainScene/eleDis4.png","../assets/mainScene/eleDis5.png","../assets/mainScene/eleDis6.png","../assets/mainScene/eleDis7.png","../assets/mainScene/eleDis8.png","../assets/mainScene/eleDis9.png","../assets/mainScene/exLighting1.png","../assets/mainScene/exLighting11.png","../assets/mainScene/exLighting14.png","../assets/mainScene/exLighting16.png","../assets/mainScene/exLighting18.png","../assets/mainScene/exLighting19.png","../assets/mainScene/exLighting21.png","../assets/mainScene/exLighting23.png","../assets/mainScene/exLighting25.png","../assets/mainScene/exLighting27.png","../assets/mainScene/exLighting29.png","../assets/mainScene/exLighting3.png","../assets/mainScene/exLighting32.png","../assets/mainScene/exLighting34.png","../assets/mainScene/exLighting5.png","../assets/mainScene/exLighting7.png","../assets/mainScene/exLighting9.png","../assets/mainScene/greenCircleDown.png","../assets/mainScene/greenCircleUp.png","../assets/mainScene/guidePropBoom.png","../assets/mainScene/guidePropCow.png","../assets/mainScene/guidePropHammer.png","../assets/mainScene/guidePropHand.png","../assets/mainScene/guidePropMsgPanel.png","../assets/mainScene/guidePropShoe.png","../assets/mainScene/hammerBtn.png","../assets/mainScene/ice2.png","../assets/mainScene/ice3.png","../assets/mainScene/ice4.png","../assets/mainScene/ice5.png","../assets/mainScene/ice6.png","../assets/mainScene/jellyArrow.png","../assets/mainScene/leftArrow.png","../assets/mainScene/lightedStar.png","../assets/mainScene/lineLight.png","../assets/mainScene/lockVine.png","../assets/mainScene/magicLion.png","../assets/mainScene/magicLionBg.png","../assets/mainScene/mainMusicBtnOff.png","../assets/mainScene/mainMusicBtnOn.png","../assets/mainScene/mainQuestionBtn.png","../assets/mainScene/mainQuitBtn.png","../assets/mainScene/mainSettingBg.png","../assets/mainScene/mainSoundBtnOff.png","../assets/mainScene/mainSoundBtnOn.png","../assets/mainScene/main_mapbottom.png","../assets/mainScene/progressDown.png","../assets/mainScene/propNum0.png","../assets/mainScene/propNum1.png","../assets/mainScene/propNum2.png","../assets/mainScene/propNum3.png","../assets/mainScene/propNum4.png","../assets/mainScene/propNum5.png","../assets/mainScene/propNum6.png","../assets/mainScene/propNum7.png","../assets/mainScene/propNum8.png","../assets/mainScene/propNum9.png","../assets/mainScene/propNumBg.png","../assets/mainScene/rectLat.png","../assets/mainScene/rightArrow.png","../assets/mainScene/rightMark.png","../assets/mainScene/rock2.png","../assets/mainScene/rock3.png","../assets/mainScene/rock4.png","../assets/mainScene/rock5.png","../assets/mainScene/rock6.png","../assets/mainScene/scoreNumber0.png","../assets/mainScene/scoreNumber1.png","../assets/mainScene/scoreNumber2.png","../assets/mainScene/scoreNumber3.png","../assets/mainScene/scoreNumber4.png","../assets/mainScene/scoreNumber5.png","../assets/mainScene/scoreNumber6.png","../assets/mainScene/scoreNumber7.png","../assets/mainScene/scoreNumber8.png","../assets/mainScene/scoreNumber9.png","../assets/mainScene/setting.png","../assets/mainScene/starProgress.png","../assets/mainScene/stepAni1.png","../assets/mainScene/stepAni10.png","../assets/mainScene/stepAni11.png","../assets/mainScene/stepAni2.png","../assets/mainScene/stepAni3.png","../assets/mainScene/stepAni4.png","../assets/mainScene/stepAni5.png","../assets/mainScene/stepAni6.png","../assets/mainScene/stepAni7.png","../assets/mainScene/stepAni8.png","../assets/mainScene/stepAni9.png","../assets/mainScene/stepBtn.png","../assets/mainScene/stepNumber0.png","../assets/mainScene/stepNumber1.png","../assets/mainScene/stepNumber2.png","../assets/mainScene/stepNumber3.png","../assets/mainScene/stepNumber4.png","../assets/mainScene/stepNumber5.png","../assets/mainScene/stepNumber6.png","../assets/mainScene/stepNumber7.png","../assets/mainScene/stepNumber8.png","../assets/mainScene/stepNumber9.png","../assets/mainScene/stepsBoard.png","../assets/mainScene/targetBoard.png","../assets/mainScene/targetNumber0.png","../assets/mainScene/targetNumber1.png","../assets/mainScene/targetNumber2.png","../assets/mainScene/targetNumber3.png","../assets/mainScene/targetNumber4.png","../assets/mainScene/targetNumber5.png","../assets/mainScene/targetNumber6.png","../assets/mainScene/targetNumber7.png","../assets/mainScene/targetNumber8.png","../assets/mainScene/targetNumber9.png","../assets/mainScene/unlightedStar.png","../assets/mainScene/yellowCircleDown.png","../assets/mainScene/yellowCircleUp.png","../assets/mainScene/yezi1.png","../assets/mainScene/bubbleStar19.png","../assets/mainScene/bubleEle0.png","../assets/mainScene/bubleEle1.png","../assets/mainScene/bubleEle2.png","../assets/mainScene/bubleEle3.png","../assets/mainScene/bubleEle4.png","../assets/mainScene/bubbleStar1.png","../assets/mainScene/bubbleStar2.png","../assets/mainScene/bubbleStar3.png","../assets/mainScene/bubbleStar4.png","../assets/mainScene/bubbleStar5.png","../assets/mainScene/bubbleStar6.png","../assets/mainScene/bubbleStar7.png","../assets/mainScene/bubbleStar8.png","../assets/mainScene/bubbleStar9.png","../assets/mainScene/bubbleStar10.png","../assets/mainScene/bubbleStar11.png","../assets/mainScene/bubbleStar12.png","../assets/mainScene/bubbleStar13.png","../assets/mainScene/bubbleStar14.png","../assets/mainScene/bubbleStar15.png","../assets/mainScene/bubbleStar16.png","../assets/mainScene/bubbleStar17.png","../assets/mainScene/bubbleStar18.png","../assets/mainScene/ele11.png","../assets/mainScene/ele10.png","../assets/mainScene/brownBallFace.png","../assets/mainScene/eyeDownLeft.png","../assets/mainScene/eyeSingle.png","../assets/mainScene/greyBallFace.png","../assets/mainScene/eyeDownRight.png","../assets/mainScene/hairballPiece9.png","../assets/mainScene/hairballPiece8.png","../assets/mainScene/hairballPiece7.png","../assets/mainScene/hairballPiece6.png","../assets/mainScene/hairballPiece5.png","../assets/mainScene/hairballPiece4.png","../assets/mainScene/hairballPiece3.png","../assets/mainScene/hairballPiece2.png","../assets/mainScene/hairballPiece11.png","../assets/mainScene/hairballPiece10.png","../assets/mainScene/hairballPiece1.png","../assets/mainScene/hairballDisBg.png","../assets/mainScene/curScoreNum9.png","../assets/mainScene/curScoreNum8.png","../assets/mainScene/curScoreNum7.png","../assets/mainScene/curScoreNum6.png","../assets/mainScene/curScoreNum5.png","../assets/mainScene/curScoreNum4.png","../assets/mainScene/curScoreNum3.png","../assets/mainScene/curScoreNum2.png","../assets/mainScene/curScoreNum1.png","../assets/mainScene/curScoreNum0.png","../assets/mainScene/festivalTargetBg.png","../assets/mainScene/lineLight9.png","../assets/mainScene/lineLight8.png","../assets/mainScene/lineLight7.png","../assets/mainScene/lineLight6.png","../assets/mainScene/lineLight5.png","../assets/mainScene/lineLight4.png","../assets/mainScene/lineLight3.png","../assets/mainScene/lineLight2.png","../assets/mainScene/lineLight13.png","../assets/mainScene/lineLight12.png","../assets/mainScene/lineLight11.png","../assets/mainScene/lineLight10.png","../assets/mainScene/lineLight1.png","../assets/mainScene/fesRedUp.png","../assets/mainScene/fesRedSmallLight.png","../assets/mainScene/fesRedDown.png","../assets/mainScene/fesRedCap.png","../assets/mainScene/fesRedBombSta1.png","../assets/mainScene/fesRedBigLight.png","../assets/mainScene/fesEleSmallDis9.png","../assets/mainScene/fesEleSmallDis8.png","../assets/mainScene/fesEleSmallDis7.png","../assets/mainScene/fesEleSmallDis6.png","../assets/mainScene/fesEleSmallDis5.png","../assets/mainScene/fesEleSmallDis4.png","../assets/mainScene/fesEleSmallDis3.png","../assets/mainScene/fesEleSmallDis2.png","../assets/mainScene/fesEleSmallDis10.png","../assets/mainScene/fesEleSmallDis1.png","../assets/mainScene/ele12.png","../assets/mainScene/ele13.png","../assets/mainScene/xingxingbi.png","../assets/mainScene/tinyRedMid.png","../assets/mainScene/tinyRedLeft.png","../assets/mainScene/tinyRedRight.png","../assets/mainScene/rectLatWhite.png","../assets/mainScene/fesRedBombSta2.png","../assets/mainScene/ele14.png","../assets/mainScene/redBombYStar.png","../assets/mainScene/redBombBStar.png","../assets/mainScene/redBombBSnow.png","../assets/mainScene/线条尾部炸开_00000.png","../assets/mainScene/线条尾部炸开_00001.png","../assets/mainScene/线条尾部炸开_00002.png","../assets/mainScene/线条尾部炸开_00003.png","../assets/mainScene/线条尾部炸开_00004.png","../assets/mainScene/线条尾部炸开_00005.png","../assets/mainScene/线条尾部炸开_00006.png","../assets/mainScene/线条尾部炸开_00007.png","../assets/mainScene/线条尾部炸开_00008.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["../assets/mainScene/线条尾部炸开_00000.png","../assets/mainScene/线条尾部炸开_00001.png","../assets/mainScene/线条尾部炸开_00002.png","../assets/mainScene/线条尾部炸开_00003.png","../assets/mainScene/线条尾部炸开_00005.png","../assets/mainScene/线条尾部炸开_00004.png","../assets/mainScene/线条尾部炸开_00006.png","../assets/mainScene/线条尾部炸开_00008.png","../assets/mainScene/线条尾部炸开_00007.png"]}
\ No newline at end of file
......@@ -97,7 +97,7 @@
"name": "h5"
},
{
"keys": "bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom18_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_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,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_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,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png,bubbleStar19_png,bubleEle0_png,bubleEle1_png,bubleEle2_png,bubleEle3_png,bubleEle4_png,bubbleStar1_png,bubbleStar2_png,bubbleStar3_png,bubbleStar4_png,bubbleStar5_png,bubbleStar6_png,bubbleStar7_png,bubbleStar8_png,bubbleStar9_png,bubbleStar10_png,bubbleStar11_png,bubbleStar12_png,bubbleStar13_png,bubbleStar14_png,bubbleStar15_png,bubbleStar16_png,bubbleStar17_png,bubbleStar18_png,ele11_png,ele10_png,brownBallFace_png,eyeDownLeft_png,eyeSingle_png,greyBallFace_png,eyeDownRight_png,hairballPiece9_png,hairballPiece8_png,hairballPiece7_png,hairballPiece6_png,hairballPiece5_png,hairballPiece4_png,hairballPiece3_png,hairballPiece2_png,hairballPiece11_png,hairballPiece10_png,hairballPiece1_png,hairballDisBg_png,curScoreNum9_png,curScoreNum8_png,curScoreNum7_png,curScoreNum6_png,curScoreNum5_png,curScoreNum4_png,curScoreNum3_png,curScoreNum2_png,curScoreNum1_png,curScoreNum0_png,festivalTargetBg_png,lineLight9_png,lineLight8_png,lineLight7_png,lineLight6_png,lineLight5_png,lineLight4_png,lineLight3_png,lineLight2_png,lineLight13_png,lineLight12_png,lineLight11_png,lineLight10_png,lineLight1_png,fesRedUp_png,fesRedSmallLight_png,fesRedDown_png,fesRedCap_png,fesRedBombSta1_png,fesRedBigLight_png,fesEleSmallDis9_png,fesEleSmallDis8_png,fesEleSmallDis7_png,fesEleSmallDis6_png,fesEleSmallDis5_png,fesEleSmallDis4_png,fesEleSmallDis3_png,fesEleSmallDis2_png,fesEleSmallDis10_png,fesEleSmallDis1_png,ele12_png,ele13_png,xingxingbi_png,tinyRedMid_png,tinyRedLeft_png,tinyRedRight_png,rectLatWhite_png,fesRedBombSta2_png,ele14_png,redBombYStar_png,redBombBStar_png,redBombBSnow_png",
"keys": "bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom18_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_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,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_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,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png,bubbleStar19_png,bubleEle0_png,bubleEle1_png,bubleEle2_png,bubleEle3_png,bubleEle4_png,bubbleStar1_png,bubbleStar2_png,bubbleStar3_png,bubbleStar4_png,bubbleStar5_png,bubbleStar6_png,bubbleStar7_png,bubbleStar8_png,bubbleStar9_png,bubbleStar10_png,bubbleStar11_png,bubbleStar12_png,bubbleStar13_png,bubbleStar14_png,bubbleStar15_png,bubbleStar16_png,bubbleStar17_png,bubbleStar18_png,ele11_png,ele10_png,brownBallFace_png,eyeDownLeft_png,eyeSingle_png,greyBallFace_png,eyeDownRight_png,hairballPiece9_png,hairballPiece8_png,hairballPiece7_png,hairballPiece6_png,hairballPiece5_png,hairballPiece4_png,hairballPiece3_png,hairballPiece2_png,hairballPiece11_png,hairballPiece10_png,hairballPiece1_png,hairballDisBg_png,curScoreNum9_png,curScoreNum8_png,curScoreNum7_png,curScoreNum6_png,curScoreNum5_png,curScoreNum4_png,curScoreNum3_png,curScoreNum2_png,curScoreNum1_png,curScoreNum0_png,festivalTargetBg_png,lineLight9_png,lineLight8_png,lineLight7_png,lineLight6_png,lineLight5_png,lineLight4_png,lineLight3_png,lineLight2_png,lineLight13_png,lineLight12_png,lineLight11_png,lineLight10_png,lineLight1_png,fesRedUp_png,fesRedSmallLight_png,fesRedDown_png,fesRedCap_png,fesRedBombSta1_png,fesRedBigLight_png,fesEleSmallDis9_png,fesEleSmallDis8_png,fesEleSmallDis7_png,fesEleSmallDis6_png,fesEleSmallDis5_png,fesEleSmallDis4_png,fesEleSmallDis3_png,fesEleSmallDis2_png,fesEleSmallDis10_png,fesEleSmallDis1_png,ele12_png,ele13_png,xingxingbi_png,tinyRedMid_png,tinyRedLeft_png,tinyRedRight_png,rectLatWhite_png,fesRedBombSta2_png,ele14_png,redBombYStar_png,redBombBStar_png,redBombBSnow_png,线条尾部炸开_00000_png,线条尾部炸开_00001_png,线条尾部炸开_00002_png,线条尾部炸开_00003_png,线条尾部炸开_00004_png,线条尾部炸开_00005_png,线条尾部炸开_00006_png,线条尾部炸开_00007_png,线条尾部炸开_00008_png",
"name": "main2"
},
{
......@@ -227,6 +227,10 @@
{
"keys": "redbombalert文案_png,redAlert_btn_png",
"name": "redbombalert"
},
{
"keys": "线条尾部炸开_00000_png,线条尾部炸开_00001_png,线条尾部炸开_00002_png,线条尾部炸开_00003_png,线条尾部炸开_00005_png,线条尾部炸开_00004_png,线条尾部炸开_00006_png,线条尾部炸开_00008_png,线条尾部炸开_00007_png",
"name": "preload"
}
],
"resources": [
......@@ -3871,6 +3875,51 @@
"url": "assets/mainScene/redBombYStar.png",
"type": "image",
"name": "redBombYStar_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00000.png",
"type": "image",
"name": "线条尾部炸开_00000_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00001.png",
"type": "image",
"name": "线条尾部炸开_00001_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00002.png",
"type": "image",
"name": "线条尾部炸开_00002_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00003.png",
"type": "image",
"name": "线条尾部炸开_00003_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00005.png",
"type": "image",
"name": "线条尾部炸开_00005_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00004.png",
"type": "image",
"name": "线条尾部炸开_00004_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00006.png",
"type": "image",
"name": "线条尾部炸开_00006_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00008.png",
"type": "image",
"name": "线条尾部炸开_00008_png"
},
{
"url": "assets/mainScene/线条尾部炸开_00007.png",
"type": "image",
"name": "线条尾部炸开_00007_png"
}
]
}
\ No newline at end of file
......@@ -128,12 +128,21 @@ export default class MapScene extends Scene {
]);
}
hcRedBoobBaseInfo() {
return new Promise((r) => {
NetManager.ins.hc_redBombBaseInfo(async () => {
r();
});
});
}
async start(data?) {
super.start();
this.addIcon(); // 添加Icon
this.sendInvite();
this.hcRedBoobBaseInfo();
this.updateMyInfo();
this.updateAdData();
......@@ -1086,8 +1095,10 @@ export default class MapScene extends Scene {
pic['__icon__'].addChildAt(light, 0);
egret.Tween.get(light).to({scaleX: 1.5, scaleY: 1.5,}, 200).call(() => {
pic['__icon__'].removeChild(light);
if(index == pics.length - 1){
showToast('铃铛隐藏在任意关卡中,快去找他们吧~');
}
});
});
});
})
......
import { ImageAni } from "../class/ImageAni";
import { Pool } from "../Pool";
import { RecoverName } from "../enum/RecoverName";
import { Element } from "../class/Element";
import { Tool } from "../Tool";
import { ElementType } from "../enum/ElementType";
import { loadSvga } from "../../loadSvga";
export const stepPosition: number[] = [125, 115];
......@@ -12,14 +12,15 @@ export const stepPosition: number[] = [125, 115];
* 手动修改this.shoot.rotation=
*/
export class FesRedShootAni2 extends egret.DisplayObjectContainer {
light: LightingAni;
imageAni: ImageAni;
imageAniCon: egret.DisplayObjectContainer;
head;
yStar;
bStar;
bSnow;
efs: eui.Image[] = [];
fs:egret.Texture[] = [];
cur = 0;
ef:eui.Image;
tarr = [];
mv;
constructor() {
super();
......@@ -27,196 +28,167 @@ export class FesRedShootAni2 extends egret.DisplayObjectContainer {
let bStarTexture = RES.getRes("redBombBStar_png");
let yStarTexture = RES.getRes("redBombYStar_png");
let bSnowTexture = RES.getRes("redBombBSnow_png");
let textures = [bStarTexture, yStarTexture, bSnowTexture];
for(let i = 0; i <= 8; i++) {
this.tarr.push("线条尾部炸开_0000" + i + "_png");
}
this.head = new eui.Image(bStarTexture);
this.head.scaleX = this.head.scaleY = 1.5;
this.addChild(this.head);
this.tarr.forEach((v) => {
this.fs.push(RES.getRes(v));
});
this.yStar = new eui.Image(yStarTexture);
this.yStar.scaleX = this.yStar.scaleY = 1;
this.addChild(this.yStar);
this.cur = 0;
this.ef = new eui.Image(this.fs[0]);
this.ef.anchorOffsetX = 100;
this.ef.anchorOffsetY = 100;
this.addChild(this.ef);
this.ef.visible = false;
this.bStar = new eui.Image(bStarTexture);
this.bStar.scaleX = this.bStar.scaleY = 0.5;
this.addChild(this.bStar);
this.head = new eui.Image(bStarTexture);
this.head.scaleX = this.head.scaleY = 0.65;
this.head.anchorOffsetX = 35;
this.head.anchorOffsetY = 35;
this.addChild(this.head);
this.bSnow = new eui.Image(bSnowTexture);
this.bSnow.scaleX = this.bSnow.scaleY = 0.7;
this.addChild(this.bSnow);
for(let i = 0; i < 8; i++) {
let nef = new eui.Image(textures[~~(Math.random() * 3)]);
nef.anchorOffsetX = 35;
nef.anchorOffsetY = 35;
this.addChild(nef);
this.efs.push(nef);
}
}
reset(startP: number[]) {
['head', 'yStar', 'bStar', 'bSnow'].forEach((v) => {
this[v].visible = false;
this[v].x = startP[0];
this[v].y = startP[1];
this.head.visible = true;
this.head.x = startP[0];
this.head.y = startP[1];
this.efs.forEach((v: eui.Image) => {
v.visible = true;
v.x = startP[0];
v.y = startP[1];
});
this.cur = 0;
this.ef.visible = true;
}
play(startP: number[], ele: Element, callback: Function) {
this.reset(startP);
let duration = 400;
let dis = Math.sqrt(
(startP[0] - ele.x) * (startP[0] - ele.x) + (startP[1] - ele.y) * (startP[1] - ele.y)
);
// yStar
let ysr = -(Tool.getForwardRotation(startP, [ele.x, ele.y]) - 1.5707963 + 0.2); // 算角度
let ysx = Math.sin(ysr) * (dis * 0.5) + startP[0]; // 算位置
let ysy = Math.cos(ysr) * (dis * 0.5) + startP[1];
egret.Tween.get(this.yStar).set({visible: true})
.wait(100).to({x: ysx, y: ysy}, duration);
egret.Tween.get(this.bStar).to({alpha: 0.6}, duration / 2)
.call(()=>{
egret.Tween.get(this.bStar).to({alpha: 1}, duration / 2)
});
// bStar
let bsr = -(Tool.getForwardRotation(startP, [ele.x, ele.y]) - 1.5707963 - 0.2); // 算角度
let bsx = Math.sin(bsr) * (dis * 0.8) + startP[0]; // 算位置
let bsy = Math.cos(bsr) * (dis * 0.8) + startP[1];
egret.Tween.get(this.bStar).set({visible: true})
.wait(50).to({x: bsx, y: bsy}, duration);
egret.Tween.get(this.bStar).wait(50)
.to({alpha: 0.8}, duration / 2)
.call(() => {
egret.Tween.get(this.bStar).to({alpha: 1}, duration / 2)
});
// bSnow
let bnr = -(Tool.getForwardRotation(startP, [ele.x, ele.y]) - 1.5707963 - 0.1); // 算角度
let bnx = Math.sin(bnr) * (dis * 0.3) + startP[0]; // 算位置
let bny = Math.cos(bnr) * (dis * 0.3) + startP[1];
egret.Tween.get(this.bSnow).set({visible: true})
.wait(150).to({x: bnx, y: bny}, duration);
egret.Tween.get(this.bSnow).wait(150)
.to({alpha: 0.3}, duration / 2)
.call(() => {
egret.Tween.get(this.bSnow).to({alpha: 1}, duration / 2)
});
this.efs.forEach((v: eui.Image) => {
let r = -(Tool.getForwardRotation(startP, [ele.x, ele.y]) - 1.5707963 + (Math.random() * 0.6) - 0.3); // 算角度
v.scaleX = v.scaleY = Math.random() * 0.55 + 0.1; // 大小
let x = Math.sin(r) * (dis * (Math.random() * 0.8)) + startP[0]; // 算位置
let y = Math.cos(r) * (dis * (Math.random() * 0.8)) + startP[1];
egret.Tween.get(v).wait(100).to({x: x, y: y}, duration, egret.Ease.quadInOut);
egret.Tween.get(v).to({alpha: (Math.random() * 0.6 + 0.2)}, duration / 2)
.call(() => {
egret.Tween.get(v).to({alpha: 1}, duration / 2)
});
});
this.head.visible = true;
egret.Tween.get(this.head)
.to({x: ele.x, y: ele.y}, duration)
.to({x: ele.x, y: ele.y, rotation: 360}, duration)
.call(() => {
// 变换元素
ele.reset(ElementType.FESTIVALELE_SMALL);
ele.scaleX = ele.scaleY = 0.1;
egret.Tween.get(ele)
.to({scaleX: 1, scaleY: 1}, 500, egret.Ease.backOut)
//回调
callback();
// 移除
if(this.$parent) {
this.$parent.removeChild(this)
}
// 回收
Pool.recover(RecoverName.FESREDSHOOT_ANI2, this);
.to({scaleX: 1, scaleY: 1}, 500, egret.Ease.backOut);
this.ef.x = ele.x;
this.ef.y = ele.y;
this.ef.source = this.tarr[0];
let i = setInterval(() => {
this.cur++;
this.ef.source = this.tarr[this.cur];
if(this.cur == this.fs.length - 1) {
clearInterval(i);
this.ef.visible = false;
//回调
callback();
// 移除
if(this.$parent) {
this.$parent.removeChild(this)
}
// 回收
Pool.recover(RecoverName.FESREDSHOOT_ANI2, this);
}
}, 60);
// 隐藏
setTimeout(() => {
this.efs.forEach((v: eui.Image) => {
v.visible = false;
});
this.head.visible = false;
}, 200)
})
setTimeout(() => {
callback();
}, 200);
// 算角度
// var r = Tool.getForwardRotation(startP, [ele.x, ele.y]);
// this.particle.rotation = r * 180 / Math.PI + 90;
// this.light.x = startP[0];
// this.light.y = startP[1];
// this.imageAniCon.x = ele.x;
// this.imageAniCon.y = ele.y;
// //247
// var dis = Math.sqrt(
// (startP[0] - ele.x) * (startP[0] - ele.x) +
// (startP[1] - ele.y) * (startP[1] - ele.y)
// )
// var scaleX = dis / 247;
// egret.Tween.get(this.light)
// .to({ scaleX: scaleX, }, 400)
// .call(() => {
// ele.reset(ElementType.FESTIVALELE_SMALL);
// ele.scaleX = ele.scaleY = 0.1
// egret.Tween.get(ele)
// .to({ scaleX: 1, scaleY: 1 }, 500, egret.Ease.backOut)
//
// //回调
// callback();
//
// this.imageAni.visible = true;
// this.imageAni.play(() => {
// if (this.$parent) {
// this.$parent.removeChild(this)
// };
// Pool.recover(RecoverName.FESREDSHOOT_ANI2, this)
// })
// setTimeout(() => {
// this.light.visible = false;
// }, 200)
//
// })
});
}
}
class LightingAni extends egret.Bitmap {
class SAni extends egret.Bitmap {
sourceAll: string[];
currentFrame: number;
currentFrame: number = 0;
totalFrames: number;
isPlay: boolean;
startTime: number
/**
* 所有时间,帧数按每秒30
*/
allTime: number
textures: egret.Texture[] = [];
counter: number;
frameInterval: number = 8;
/**
* 播放完的回调
*/
constructor() {
super();
var arr = [];
for(var i = 1; i <= 13; i++) {
arr.push("lineLight" + i + "_png")
for(var i = 0; i <= 8; i++) {
arr.push("线条尾部炸开_0000" + i + "_png");
}
this.anchorOffsetX = 23;
this.anchorOffsetY = 27;
this.anchorOffsetX = 100;
this.anchorOffsetY = 100;
this.sourceAll = arr;
this.texture = RES.getRes(this.sourceAll[0])
this.currentFrame = 0;
this.texture = RES.getRes(this.sourceAll[0]);
this.sourceAll.forEach((v) => {
this.textures.push(RES.getRes(v));
});
this.totalFrames = arr.length;
this.addEventListener(egret.Event.ENTER_FRAME, this.onEnterFrame, this)
console.log(this.textures);
}
this.startTime = Date.now()
this.allTime = this.sourceAll.length / 30 * 1000;
play(start = 0) {
this.goto(start);
this.currentFrame = 0;
egret.startTick(this.onTick, this);
}
goto(frame: number) {
this.texture = this.textures[frame];
}
onEnterFrame() {
if(!this.stage) return
var dataNow = Date.now();
var deltaTime = dataNow - this.startTime;
var scale = deltaTime / this.allTime;
if(scale >= 1) {
this.startTime = Date.now()
this.currentFrame = 0;
} else {
this.currentFrame = (scale * this.sourceAll.length) >> 0;
onTick() {
this.currentFrame++;
this.goto(this.currentFrame);
if(this.currentFrame == this.sourceAll.length - 1) {
this.stop();
this.dispatchEvent(new egret.Event(egret.Event.COMPLETE));
}
this.texture = RES.getRes(this.sourceAll[this.currentFrame])
return false;
}
stop() {
this.currentFrame = 0;
egret.stopTick(this.onTick, this);
}
}
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