Commit 0fe5ee31 authored by haiyoucuv's avatar haiyoucuv

lowt

parent 551163ce
This diff is collapsed.
This diff is collapsed.
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
"isReceive": true "isReceive": true
} }
], ],
"isFristLogin": true, "isFristLogin": false,
"loginAddPower": false "loginAddPower": false
} }
} }
...@@ -7408,7 +7408,7 @@ exports.ResJson = { ...@@ -7408,7 +7408,7 @@ exports.ResJson = {
} }
}, },
{ {
"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,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png", "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,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,musicBtn.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",
"atlas": { "atlas": {
"blueDoorBg.png": { "blueDoorBg.png": {
...@@ -19306,8 +19306,8 @@ var PlayScene = (function (_super) { ...@@ -19306,8 +19306,8 @@ var PlayScene = (function (_super) {
commonTextArr[":"] = RES_1.RES.getRes("scoreNum冒号.png"); commonTextArr[":"] = RES_1.RES.getRes("scoreNum冒号.png");
this.targetScoreTxt = this.addChild(new FYGE.BitmapText(commonTextArr)); this.targetScoreTxt = this.addChild(new FYGE.BitmapText(commonTextArr));
this.targetScoreTxt.position.set(375, 193); this.targetScoreTxt.position.set(375, 193);
this.settingBtn = this.addChild(new SettingBtn()); this.musicBtn = this.addChild(new SettingBtn());
this.settingBtn.position.set(618, 16); this.musicBtn.position.set(618, 16);
}; };
PlayScene.prototype.start = function (data) { PlayScene.prototype.start = function (data) {
var _this = this; var _this = this;
resource/playScene/magicLion.png

10.2 KB | W: | H:

resource/playScene/magicLion.png

14.8 KB | W: | H:

resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/magicLionBg.png

76.1 KB | W: | H:

resource/playScene/magicLionBg.png

35.7 KB | W: | H:

resource/playScene/magicLionBg.png
resource/playScene/magicLionBg.png
resource/playScene/magicLionBg.png
resource/playScene/magicLionBg.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/musicOff.png

5.72 KB | W: | H:

resource/playScene/musicOff.png

9.52 KB | W: | H:

resource/playScene/musicOff.png
resource/playScene/musicOff.png
resource/playScene/musicOff.png
resource/playScene/musicOff.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/musicOn.png

5.37 KB | W: | H:

resource/playScene/musicOn.png

9.5 KB | W: | H:

resource/playScene/musicOn.png
resource/playScene/musicOn.png
resource/playScene/musicOn.png
resource/playScene/musicOn.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
export const loading_animal = {
"v": "5.6.10",
"fr": 30,
"ip": 0,
"op": 60,
"w": 750,
"h": 1624,
"nm": "loading_animal",
"layers": [
{
"ind": 1,
"ty": 2,
"nm": "owl_sleep.png",
"parent": 2,
"refId": "image_0",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
{
"t": 15,
"s": [
41.002,
21.5,
0
]
},
{
"t": 42,
"s": [
41.115,
27.521,
0
]
}
]
},
"a": {
"a": 0,
"k": [
26,
9.5,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 15,
"op": 42
},
{
"ind": 2,
"ty": 2,
"nm": "img_owl.png",
"refId": "image_1",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 12,
"s": [
0
]
},
{
"t": 42,
"s": [
-6
]
},
{
"t": 48,
"s": [
6
]
},
{
"t": 54,
"s": [
-2
]
},
{
"t": 60,
"s": [
0
]
}
]
},
"p": {
"a": 1,
"k": [
{
"t": 42,
"s": [
679.5,
559,
0
]
},
{
"t": 45,
"s": [
679.5,
547,
0
]
},
{
"t": 48,
"s": [
679.5,
559,
0
]
}
]
},
"a": {
"a": 0,
"k": [
48,
110.5,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 3,
"ty": 2,
"nm": "img_tree.png",
"refId": "image_2",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 42,
"s": [
0
]
},
{
"t": 45,
"s": [
-2
]
},
{
"t": 48,
"s": [
0
]
}
]
},
"p": {
"a": 0,
"k": [
739,
566.5,
0
]
},
"a": {
"a": 0,
"k": [
150,
29.5,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 4,
"ty": 2,
"nm": "fox_head.png",
"parent": 6,
"refId": "image_3",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 0,
"k": [
87.5,
-4,
0
]
},
"a": {
"a": 0,
"k": [
206,
250.5,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 5,
"ty": 2,
"nm": "hommer.png",
"parent": 6,
"refId": "image_4",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 0,
"s": [
-6
]
},
{
"t": 40,
"s": [
-6
]
},
{
"t": 45,
"s": [
6
]
},
{
"t": 50,
"s": [
-6
]
},
{
"t": 55,
"s": [
6
]
},
{
"t": 60,
"s": [
-6
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('cycle', 0);"
},
"p": {
"a": 0,
"k": [
143,
32,
0
]
},
"a": {
"a": 0,
"k": [
29.5,
201.5,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 6,
"ty": 2,
"nm": "fox_body.png",
"refId": "image_5",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 0,
"s": [
-1
]
},
{
"t": 15,
"s": [
1
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"p": {
"a": 0,
"k": [
356,
992,
0
]
},
"a": {
"a": 0,
"k": [
85,
206,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 7,
"ty": 2,
"nm": "fox_arm_l.png",
"parent": 6,
"refId": "image_6",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 0,
"s": [
2
]
},
{
"t": 40,
"s": [
2
]
},
{
"t": 45,
"s": [
-6
]
},
{
"t": 50,
"s": [
2
]
},
{
"t": 55,
"s": [
-6
]
},
{
"t": 60,
"s": [
2
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('cycle', 0);"
},
"p": {
"a": 0,
"k": [
45,
44,
0
]
},
"a": {
"a": 0,
"k": [
116,
32,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 9,
"ty": 2,
"nm": "carb_hand_r.png",
"parent": 10,
"refId": "image_8",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 1,
"k": [
{
"t": 0,
"s": [
8.75,
18,
0
]
},
{
"t": 15,
"s": [
4.25,
8,
0
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"a": {
"a": 0,
"k": [
17.5,
42.25,
0
]
},
"s": {
"a": 1,
"k": [
{
"t": 0,
"s": [
-100,
100,
100
]
},
{
"t": 15,
"s": [
-95,
95,
100
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
}
},
"ip": 0,
"op": 180
},
{
"ind": 10,
"ty": 2,
"nm": "carb_arm.png",
"parent": 13,
"refId": "image_9",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 1,
"k": [
{
"t": 0,
"s": [
107,
46.75,
0
]
},
{
"t": 15,
"s": [
101,
32.25,
0
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"a": {
"a": 0,
"k": [
12.75,
18,
0
]
},
"s": {
"a": 0,
"k": [
-100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 11,
"ty": 2,
"nm": "carb_hand_l.png",
"parent": 12,
"refId": "image_10",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 1,
"k": [
{
"t": 0,
"s": [
5.75,
3.5,
0
]
},
{
"t": 15,
"s": [
10.75,
16,
0
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"a": {
"a": 0,
"k": [
26.5,
39.25,
0
]
},
"s": {
"a": 1,
"k": [
{
"t": 0,
"s": [
100,
100,
100
]
},
{
"t": 15,
"s": [
105,
105,
100
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
}
},
"ip": 0,
"op": 180
},
{
"ind": 12,
"ty": 2,
"nm": "carb_arm.png",
"parent": 13,
"refId": "image_9",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 0,
"k": 0
},
"p": {
"a": 1,
"k": [
{
"t": 0,
"s": [
28,
31.75,
0
]
},
{
"t": 15,
"s": [
23,
45.75,
0
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"a": {
"a": 0,
"k": [
12.5,
17.75,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
},
{
"ind": 13,
"ty": 2,
"nm": "carb_body.png",
"refId": "image_11",
"ks": {
"o": {
"a": 0,
"k": 100
},
"r": {
"a": 1,
"k": [
{
"t": 0,
"s": [
0
]
},
{
"t": 15,
"s": [
-2
]
}
],
"x": "var $bm_rt;\n$bm_rt = loopOut('pingpong', 0);"
},
"p": {
"a": 0,
"k": [
566.5,
1031,
0
]
},
"a": {
"a": 0,
"k": [
64.5,
93,
0
]
},
"s": {
"a": 0,
"k": [
100,
100,
100
]
}
},
"ip": 0,
"op": 180
}
],
"markers": []
}
\ No newline at end of file
...@@ -8,7 +8,6 @@ import { MapScene } from "./map/MapScene"; ...@@ -8,7 +8,6 @@ import { MapScene } from "./map/MapScene";
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { GTool } from "../../module/tools/GTool"; import { GTool } from "../../module/tools/GTool";
import { Lottie } from "../Lottie"; import { Lottie } from "../Lottie";
import { loading_animal } from "../lotties/loading_animal";
export class LoadingScene extends Scene { export class LoadingScene extends Scene {
get groupNames() { get groupNames() {
...@@ -62,8 +61,6 @@ export class LoadingScene extends Scene { ...@@ -62,8 +61,6 @@ export class LoadingScene extends Scene {
//@ts-ignore 进度条托管 //@ts-ignore 进度条托管
this.progressBar = new ProgressBarS(pro); this.progressBar = new ProgressBarS(pro);
//动画 //动画
var l = this.addChild(new Lottie(loading_animal))
l.play(0)
//尾巴 //尾巴
var foxTail = new FYGE.FrameAni((() => { var foxTail = new FYGE.FrameAni((() => {
var arrFox = []; var arrFox = [];
...@@ -72,9 +69,6 @@ export class LoadingScene extends Scene { ...@@ -72,9 +69,6 @@ export class LoadingScene extends Scene {
return arrFox return arrFox
})()) })())
foxTail.play(0); foxTail.play(0);
l.getChildByName("fox_body.png", true, true)
.addChildAt(foxTail, 0)
.position.set(250, 0)
//标题 //标题
this.addChild(new Title()) this.addChild(new Title())
......
...@@ -54,13 +54,11 @@ import { RES } from '../../module/RES'; ...@@ -54,13 +54,11 @@ import { RES } from '../../module/RES';
import { showToast, showWaiting, showPanel, hideWaiting, wait, changeScene } from '../../module/ctrls'; import { showToast, showWaiting, showPanel, hideWaiting, wait, changeScene } from '../../module/ctrls';
import { layers } from '../../module/views/layers'; import { layers } from '../../module/views/layers';
import { Lottie } from '../Lottie'; import { Lottie } from '../Lottie';
import { GameToast } from '../something/uis/GameToast'; import { GameToast } from '../something/uis/GameToast';
import { sendTbNet, TbNetName } from '../TaoBaoNet'; import { sendTbNet, TbNetName } from '../TaoBaoNet';
import { MapScene } from './map/MapScene'; import { MapScene } from './map/MapScene';
import { NoStepPanel } from '../panels/NoStepPanel'; import { NoStepPanel } from '../panels/NoStepPanel';
import { FirstPropGift } from '../something/uis/FirstPropGift'; import { FirstPropGift } from '../something/uis/FirstPropGift';
import { bonus_lottie } from '../lotties/bonus_lottie';
import { bonus } from '../lotties/bonus'; import { bonus } from '../lotties/bonus';
import { GDispatcher } from '../Main'; import { GDispatcher } from '../Main';
import { G_EVENT } from '../common/G_EVENT'; import { G_EVENT } from '../common/G_EVENT';
...@@ -128,7 +126,7 @@ const festivalIndex: number = 40 ...@@ -128,7 +126,7 @@ const festivalIndex: number = 40
export class PlayScene extends Scene { export class PlayScene extends Scene {
get groupNames() { get groupNames() {
return ["playScene", "fiveVerHorDis", 'festival', 'bonus'] return ["playScene", "fiveVerHorDis", 'festival', 'MagicAni']
} }
//关卡数据 //关卡数据
...@@ -200,7 +198,7 @@ export class PlayScene extends Scene { ...@@ -200,7 +198,7 @@ export class PlayScene extends Scene {
*/ */
connectState: number = 2; connectState: number = 2;
//皮肤上的 //注意都需要重写 //皮肤上的 //注意都需要重写
public settingBtn: SettingBtn; public musicBtn: MusicBtn;
/** /**
* 分数为目标时的文案 * 分数为目标时的文案
*/ */
...@@ -279,8 +277,8 @@ export class PlayScene extends Scene { ...@@ -279,8 +277,8 @@ export class PlayScene extends Scene {
this.targetScoreTxt = this.addChild(new FYGE.BitmapText(commonTextArr)); this.targetScoreTxt = this.addChild(new FYGE.BitmapText(commonTextArr));
this.targetScoreTxt.position.set(375, 193); this.targetScoreTxt.position.set(375, 193);
//设置 //设置
this.settingBtn = this.addChild(new SettingBtn()) this.musicBtn = this.addChild(new MusicBtn())
this.settingBtn.position.set(618, 16) this.musicBtn.position.set(618, 16)
} }
data: { chapter: number, isGiftPrizeLevel: boolean } data: { chapter: number, isGiftPrizeLevel: boolean }
...@@ -311,7 +309,6 @@ export class PlayScene extends Scene { ...@@ -311,7 +309,6 @@ export class PlayScene extends Scene {
//重置基础元素类型及特效 //重置基础元素类型及特效
this.initBaseElement(); this.initBaseElement();
//设置栏置顶 //设置栏置顶
// this.addChild(this.settingBtn)
//先判断是否添加节日元素,如果加节日元素,就按initFestivalEle里的来 //先判断是否添加节日元素,如果加节日元素,就按initFestivalEle里的来
if (!this.initFestivalEle()) { if (!this.initFestivalEle()) {
//检查一次三消 //检查一次三消
...@@ -362,7 +359,7 @@ export class PlayScene extends Scene { ...@@ -362,7 +359,7 @@ export class PlayScene extends Scene {
*/ */
async initSvgas() { async initSvgas() {
//这里加载资源吧 //这里加载资源吧
await RES.loadGroup("bonusTime") await RES.loadGroup("bonus");
const bonusTime = new Lottie(bonus); const bonusTime = new Lottie(bonus);
bonusTime.position.set( bonusTime.position.set(
(750 - bonusTime.videoWidth) / 2, (750 - bonusTime.videoWidth) / 2,
...@@ -886,18 +883,6 @@ export class PlayScene extends Scene { ...@@ -886,18 +883,6 @@ export class PlayScene extends Scene {
b.y = bp[1]; b.y = bp[1];
} }
// onTap_settingBtn() {
// this.settingGroup.visible = !this.settingGroup.visible;
// }
// onTap_musicBtn() {
// // toggleBg();
// toggleGameBg();
// if (getBgOn()) {
// this.musicBtn.source = "mainMusicBtnOn.png"
// } else {
// this.musicBtn.source = "mainMusicBtnOff.png"
// }
// }
onTap_boomBtn() { onTap_boomBtn() {
this.propBtnCon.boomCount ? this.propBtnCon.boomCount ?
this.useProp(PropType.BOOMS) : this.useProp(PropType.BOOMS) :
...@@ -2947,55 +2932,31 @@ export class PlayScene extends Scene { ...@@ -2947,55 +2932,31 @@ export class PlayScene extends Scene {
// } // }
let isOn: boolean = true; let isOn: boolean = true;
class SettingBtn extends FYGE.Container { class MusicBtn extends FYGE.Sprite {
constructor() { constructor() {
super() const t = RES.getRes("musicOn.png");
//背景 super(t)
const bg = this.addChild(new FYGE.Sprite(RES.getRes("settingBg.png"))); this.addEventListener(FYGE.MouseEvent.CLICK, () => {
bg.position.set(6, 50) isOn = !isOn;
bg.visible = false; this.texture = RES.getRes(isOn ? "musicOn.png" : "musicOff.png");
//音乐 //播放或暂停音乐接口
const musicBtn = this.addChild(new class extends FYGE.Sprite { sendTbNet(TbNetName.openMusic, {isOn: isOn})
// private isOn: boolean; }, this);
constructor() { //默认开启
const t = RES.getRes("musicOn.png"); // this.isOn = true;
super(t) if (isOn) sendTbNet(TbNetName.openMusic, {isOn: true})
this.addEventListener(FYGE.MouseEvent.CLICK, () => { //添加onSHow事件
isOn = !isOn; GDispatcher.addEventListener(G_EVENT.ON_SHOW, this.onShow, this)
this.texture = RES.getRes(isOn ? "musicOn.png" : "musicOff.png"); }
//播放或暂停音乐接口
sendTbNet(TbNetName.openMusic, {isOn: isOn}) onShow() {
}, this); if (isOn) sendTbNet(TbNetName.openMusic, {isOn: true})
//默认开启
// this.isOn = true;
if (isOn) sendTbNet(TbNetName.openMusic, {isOn: true})
//添加onSHow事件
GDispatcher.addEventListener(G_EVENT.ON_SHOW, this.onShow, this)
}
onShow() {
if (isOn) sendTbNet(TbNetName.openMusic, {isOn: true})
}
destroy() {
GDispatcher.removeEventListener(G_EVENT.ON_SHOW, this.onShow, this)
super.destroy()
}
});
musicBtn.position.set(11, 97);
musicBtn.visible = false;
//主按钮
const btn = this.addChild(new FYGE.Button(RES.getRes("settingBtn.png")))
.addEventListener(FYGE.MouseEvent.CLICK, () => {
console.log(9999)
musicBtn.visible = !musicBtn.visible
bg.visible = !bg.visible
}, this);
} }
destroy() { destroy() {
//关闭音乐 GDispatcher.removeEventListener(G_EVENT.ON_SHOW, this.onShow, this)
sendTbNet(TbNetName.openMusic, {isOn: false}) sendTbNet(TbNetName.openMusic, {isOn: false})
super.destroy() super.destroy()
} }
} }
import { Ani } from "../class/Ani"; import { Ani } from "../class/Ani";
import { RecoverName } from "../enum/RecoverName"; import { RecoverName } from "../enum/RecoverName";
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import Texture = FYGE.Texture;
import FrameAni = FYGE.FrameAni;
export class MagicLionAni extends Ani { export class MagicLionAni extends Ani {
downImage: FYGE.Container; downImage: FYGE.Container;
upImage: FYGE.Sprite; upImage: FYGE.Sprite;
magicAniActive:FrameAni;
constructor() { constructor() {
super() super()
this.aniName = RecoverName.MAGICLION_ANI//"MagicLionAni"; this.aniName = RecoverName.MAGICLION_ANI//"MagicLionAni";
this.downImage = new FYGE.Container(); this.downImage = new FYGE.Container();
// this.downImage.scaleX = this.downImage.scaleY = 0.7;
this.addChild(this.downImage) this.addChild(this.downImage)
var texture: FYGE.Texture = RES.getRes("magicLionBg.png") const texture: FYGE.Texture = RES.getRes("magicLionBg.png");
let one = new FYGE.Sprite(texture); let one = new FYGE.Sprite(texture);
one.anchorTexture.set(0.5,0.5) one.anchorTexture.set(0.5,0.5)
// one.anchorOffsetX = texture.textureWidth / 2;
// one.anchorOffsetY = texture.textureHeight / 2;
this.downImage.addChild(one); this.downImage.addChild(one);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => { this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
one.rotation -= 5; one.rotation -= 5;
...@@ -25,42 +27,44 @@ export class MagicLionAni extends Ani { ...@@ -25,42 +27,44 @@ export class MagicLionAni extends Ani {
let other = new FYGE.Sprite(texture); let other = new FYGE.Sprite(texture);
other.anchorTexture.set(0.5,0.5); other.anchorTexture.set(0.5,0.5);
// other.anchorOffsetX = texture.textureWidth / 2;
// other.anchorOffsetY = texture.textureHeight / 2;
this.downImage.addChild(other); this.downImage.addChild(other);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => { this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
other.rotation -= 5; other.rotation += 5;
}, this); }, this);
const magicAniActiveTexture: Texture[] = [];
for (let i = 0; i < 44; i++) {
magicAniActiveTexture.push(RES.getRes(`MagicAniActive_${i}.png`));
}
this.magicAniActive = this.addChild(new FrameAni(magicAniActiveTexture));
//上图 //上图
var texture: FYGE.Texture = RES.getRes("magicLion.png") this.upImage = new FYGE.Sprite(RES.getRes("magicLion.png"));
this.upImage = new FYGE.Sprite(texture);
this.upImage.anchorTexture.set(0.5,0.5); this.upImage.anchorTexture.set(0.5,0.5);
// this.upImage.anchorOffsetX = texture.textureWidth / 2;
// this.upImage.anchorOffsetY = texture.textureHeight / 2;
// this.upImage.scaleX = this.upImage.scaleY = 0.7
this.addChild(this.upImage); this.addChild(this.upImage);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
this.upImage.rotation += 2;
}, this)
} }
play() { play() {
this.downImage.scaleX = this.downImage.scaleY = 0.7//1;
this.magicAniActive.play(1);
this.downImage.scaleX = this.downImage.scaleY = 0.7;
this.downImage.alpha = 1; this.downImage.alpha = 1;
this.upImage.scaleX = this.upImage.scaleY = 1; this.upImage.scaleX = this.upImage.scaleY = 1;
this.upImage.alpha = 1; this.upImage.alpha = 1;
FYGE.Tween.get(this.downImage) FYGE.Tween.get(this.downImage)
.to({ scaleX: 2, scaleY: 2 }, 300) .to({ scaleX: 2, scaleY: 2 }, 400)
.to({ scaleX: 1.2, scaleY: 1.2 }, 200) .to({ scaleX: 1.2, scaleY: 1.2 }, 300)
.wait(150)//和所有元素旋转时间一致,反正到时调整 .wait(450)//和所有元素旋转时间一致,反正到时调整
.to({ alpha: 0, scaleX: 0.2, scaleY: 0.2 }, 100) .to({ alpha: 0, scaleX: 0.2, scaleY: 0.2 }, 100)
.call(() => { .call(() => {
this.recover(); this.recover();
}) })
FYGE.Tween.get(this.upImage) FYGE.Tween.get(this.upImage)
.to({ scaleX: 1, scaleY: 1 }, 300) .to({ scaleX: 1.7, scaleY: 1.7 }, 350)
.to({ scaleX: 0, scaleY: 0, alpha: 0 }, 200) .wait(300)
.to({ scaleX: 0, scaleY: 0, alpha: 0 }, 300)
} }
} }
\ No newline at end of file
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import Texture = FYGE.Texture;
import FrameAni = FYGE.FrameAni;
//只是为了魔力鸟背后的 //只是为了魔力鸟背后的
export class MagicLionBgAni extends FYGE.Container { export class MagicLionBgAni extends FYGE.Container {
showImage: FYGE.Sprite; showImage: FYGE.Sprite;
magicAniNormal: FrameAni;
constructor() { constructor() {
super() super()
...@@ -10,41 +15,43 @@ export class MagicLionBgAni extends FYGE.Container { ...@@ -10,41 +15,43 @@ export class MagicLionBgAni extends FYGE.Container {
this.mouseEnable = false; this.mouseEnable = false;
this.mouseChildren = false; this.mouseChildren = false;
var texture: FYGE.Texture = RES.getRes("magicLionBg.png") var texture: FYGE.Texture = RES.getRes("magicLionBg.png")
this.showImage = new FYGE.Sprite(texture); this.showImage = new FYGE.Sprite(texture);
this.showImage.anchorTexture.set(0.5, 0.5); this.showImage.anchorTexture.set(0.5, 0.5);
// this.showImage.anchorOffsetX = texture.textureWidth / 2;
// this.showImage.anchorOffsetY = texture.textureHeight / 2;
this.showImage.scaleX = this.showImage.scaleY = 0.7 this.showImage.scaleX = this.showImage.scaleY = 0.7
this.addChild(this.showImage); this.addChild(this.showImage);
this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this); this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this);
let other = new FYGE.Sprite(texture); let other = new FYGE.Sprite(texture);
other.anchorTexture.set(0.5, 0.5); other.anchorTexture.set(0.5, 0.5);
// other.anchorOffsetX = texture.textureWidth / 2;
// other.anchorOffsetY = texture.textureHeight / 2;
other.scaleX = other.scaleY = 0.7 other.scaleX = other.scaleY = 0.7
this.addChild(other); this.addChild(other);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => { this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
other.rotation -= 5; other.rotation += 5;
}, this); }, this);
const magicAniNormalTexture: Texture[] = [];
for (let i = 0; i < 44; i++) {
magicAniNormalTexture.push(RES.getRes(`MagicAniNormal_${i}.png`));
}
this.magicAniNormal = this.addChild(new FrameAni(magicAniNormalTexture));
this.magicAniNormal.play(-1);
var upTexture: FYGE.Texture = RES.getRes("magicLion.png") var upTexture: FYGE.Texture = RES.getRes("magicLion.png")
let up = new FYGE.Sprite(upTexture); let up = new FYGE.Sprite(upTexture);
up.anchorTexture.set(0.5, 0.5); up.anchorTexture.set(0.5, 0.5);
// up.anchorOffsetX = upTexture.textureWidth / 2;
// up.anchorOffsetY = upTexture.textureHeight / 2;
this.addChild(up); this.addChild(up);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => { this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
// up.rotation += 2; // up.rotation += 2;
}, this); }, this);
} }
private onEnterFrame() { private onEnterFrame() {
this.showImage.rotation += 5; this.showImage.rotation -= 5;
} }
/** /**
* 重置 * 重置
*/ */
......
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