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":"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
This diff is collapsed.
......@@ -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('铃铛隐藏在任意关卡中,快去找他们吧~');
}
});
});
});
})
......
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