Commit e221eb03 authored by zjz1994's avatar zjz1994

黑洞烟花卡住游戏bug暂存

parent 75521c9a
...@@ -3440,13 +3440,15 @@ export default class MainScene extends Scene { ...@@ -3440,13 +3440,15 @@ export default class MainScene extends Scene {
* 果冻蔓延和气泡变色需要重新检查死图 * 果冻蔓延和气泡变色需要重新检查死图
*/ */
async aiMotionCheckDieMap() { async aiMotionCheckDieMap() {
console.log("重置点击");
//黑洞转移 //黑洞转移
if(this._checkMtag.wormhole){ if(this._checkMtag.wormhole){
this._checkMtag.wormhole = false; this._checkMtag.wormhole = false;
let wormholes = this.chapterData.map.WORMHOLE; let wormholes = this.chapterData.map.WORMHOLE;
if(wormholes&&wormholes.length>0){ if(wormholes&&wormholes.length>0){
console.log("虫洞位移")
await Promise.all(this.wormHolePromise).then(()=>{ await Promise.all(this.wormHolePromise).then(()=>{
// console.log("本次烟花播放完毕"); console.log("虫洞可以开始移动");
}); });
await doWormHoleAI(this); await doWormHoleAI(this);
// console.log("黑洞转移完毕"); // console.log("黑洞转移完毕");
...@@ -3513,6 +3515,7 @@ export default class MainScene extends Scene { ...@@ -3513,6 +3515,7 @@ export default class MainScene extends Scene {
this.gameGuide.show() this.gameGuide.show()
} }
; ;
console.log("重置点击222");
//允许移动 //允许移动
this.enableMouseEvt(true); this.enableMouseEvt(true);
//检查是否有红包炸弹弹框;有就弹出;然后置空 //检查是否有红包炸弹弹框;有就弹出;然后置空
...@@ -4723,6 +4726,7 @@ export default class MainScene extends Scene { ...@@ -4723,6 +4726,7 @@ export default class MainScene extends Scene {
let isInworm = Tool.judgeInWormHole(index,this.chapterData.map.WORMHOLE); let isInworm = Tool.judgeInWormHole(index,this.chapterData.map.WORMHOLE);
if(isInworm){ if(isInworm){
console.error("添加烟花pro");
this.wormHolePromise.push(pro); this.wormHolePromise.push(pro);
} }
} }
......
...@@ -185,4 +185,40 @@ export const Chapters26: ChapterData[] = [ ...@@ -185,4 +185,40 @@ export const Chapters26: ChapterData[] = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0 0, 0, 0, 0, 0, 0, 0, 0, 0
], recycles: [], generateLats: [ { index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 7, type: null }, { index: 8, type: null }, { index: 36, type: null }, { index: 44, type: null } ] } }, ], recycles: [], generateLats: [ { index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 7, type: null }, { index: 8, type: null }, { index: 36, type: null }, { index: 44, type: null } ] } },
]
//672
{ baseElementTypes: [ 1, 2, 0, 4 ], bubbleProbability: 0,
stepCount: 27, passTarget: { type: 1, elements: [ { type: 22, count: 25 }, { type: 24, count: 25 }, { type: 26, count: 25 } ] }, starScores: [ 15000, 20000, 25000 ], map: {
lattices: [
4, 4, 1, 41, 41, 41, 1, 4, 4,
4, 1, 1, 1, 1, 1, 1, 1, 4,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
4, 1, 1, 1, 1, 1, 1, 1, 4,
4, 4, 1, 1, 1, 1, 1, 4, 4 ], connectedLats: [ [ 31, 49 ] ], conveyor: [], conveyorConnectedLats: [], WORMHOLE: [ [ 37, 38 ], [ 42, 43 ] ],
elements: [
1, 1, 1, 1, 1, 1, 1, 1, 1,
5, 1, 1, 1, 1, 1, 1, 1, 5,
5, 1, 1, 1, 1, 1, 1, 1, 5,
5, 1, 1, 1, 1, 1, 1, 1, 5,
5, 1, 13, 13, 13, 13, 13, 1, 5,
5, 1, 1, 1, 1, 1, 1, 1, 5,
5, 1, 1, 1, 1, 1, 1, 1, 5,
5, 2, 2, 2, 2, 2, 2, 2, 5,
1, 1, 2, 2, 2, 2, 2, 1, 1 ],
baseElements: [
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0
], recycles: [], generateLats: [ { index: 0, type: null }, { index: 1, type: null }, { index: 2, type: null }, { index: 3, type: null }, { index: 4, type: null }, { index: 5, type: null }, { index: 6, type: null }, { index: 7, type: null }, { index: 8, type: null } ] } },
]
...@@ -78,7 +78,7 @@ chapters.forEach((chapter,index) => { ...@@ -78,7 +78,7 @@ chapters.forEach((chapter,index) => {
export function getChapterData(index: number): ChapterData { export function getChapterData(index: number): ChapterData {
//没有数据就返回第一关数据 //没有数据就返回第一关数据
// return chapters[626]; // return chapters[626];
return chapters[index] || chapters[1]; return chapters[index] || chapters[655];
} }
var a = { var a = {
......
...@@ -126,6 +126,7 @@ export class Element extends eui.Component { ...@@ -126,6 +126,7 @@ export class Element extends eui.Component {
if (this._fireworks.currentFrame == end) { //向上吹 if (this._fireworks.currentFrame == end) { //向上吹
this._fireworks.gotoAndStop(start); this._fireworks.gotoAndStop(start);
this._fireworks.removeEventListener(egret.Event.ENTER_FRAME, cb, this); this._fireworks.removeEventListener(egret.Event.ENTER_FRAME, cb, this);
console.error("释放烟花pro");
resolve(); resolve();
} }
}; };
......
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