Commit 241e286d authored by zjz1994's avatar zjz1994

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

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