Commit 241e286d authored by zjz1994's avatar zjz1994

黑洞转移前,将本次操作的导致的元素状态变化先变了

parent 7e80f0bf
This diff is collapsed.
......@@ -1293,7 +1293,7 @@ export class Tool {
for(var j=0;j<iworm.length;j++){
var iwormidx = iworm[j];
if(iwormidx==idx){
console.log("是在黑洞上")
// console.log("是在黑洞上");
_have = true;
return true;
}
......
......@@ -17,10 +17,14 @@ export class IceAni extends Ani {
play() {
//重置图片
var pro = new Promise((resolve,reject)=>{
this.showImage.currentFrame = 0;
this.showImage.source = this.showImage.sourceAll[0];
this.showImage.play(() => {
this.recover();
resolve();
})
})
return pro;
}
}
\ No newline at end of file
......@@ -17,10 +17,14 @@ export class RockAni extends Ani {
play() {
//重置图片
let pro = new Promise((resolve,reject)=>{
this.showImage.currentFrame = 0;
this.showImage.source = this.showImage.sourceAll[0];
this.showImage.play(() => {
this.recover();
resolve();
})
})
return pro;
}
}
\ No newline at end of file
......@@ -12,13 +12,13 @@ export const Chapters25: ChapterData[] = [
starScores: [ 15000, 20000, 25000 ],
map: {
lattices: [
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 6, 1, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 7, 1, 7,
1, 1, 1, 1, 1, 1, 7, 1, 7,
1, 1, 1, 1, 6, 1, 7, 1, 7,
1, 1, 1, 1, 1, 1, 1, 7, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0
],
......@@ -52,14 +52,14 @@ export const Chapters25: ChapterData[] = [
// [ 72, 53 ]
// ],
elements: [
1, 14, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 16, 1, 1, 1, 1, 1, 1, 16,
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,
1, 1, 1, 14, 1, 1, 9, 1, 14,
1, 1, 16, 1, 1, 1, 1, 1, 1,
1, 1, 1, 14, 1, 1, 9, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1
],
baseElements: [
......
......@@ -371,10 +371,14 @@ export class AiControl {
pieceToEggAni = new PieceToEggAni()
}
thisObj.addChild(pieceToEggAni);
let pro = new Promise((resolve,reject)=>{
pieceToEggAni.play(Tool.getPositionByIndex(activeEggIndex), () => {
activeEgg.reset();
activeEgg.visible = true;
resolve();
})
})
thisObj.wormHolePromise.push(pro);
if (++count == countAll) {
//做个延时,有节奏感
......
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