Commit adfb0cde authored by zjz1994's avatar zjz1994

调整深冰块显示

parent 72ec9d5e
......@@ -177,10 +177,24 @@ export default class BaseBlock extends egret.DisplayObjectContainer {
this.addAni(this._blockBgBlue);
break;
case 3://翻转了
await this.playToFrontAni();
this.updateElementState();
this._block.visible = false;
this._block.scaleX = 1;
if(!first){
await this.playToFrontAni();
this.updateElementState();
this._block.visible = false;
this._block.scaleX = 1;
}else{
if(this.ice){
this.ice.visible = true;
this.ice.scaleX = 1;
}
if(this._element){
this._element.visible = true;
this._element.scaleX = 1;
}
this._blockBgFront.visible = true;
this._inited = true;
}
this._blockBgRed.visible = true;
this.addAni(this._blockBgRed);
this.dispatchEvent(new egret.Event('onAniOver'));
......
......@@ -22,6 +22,7 @@ export default (type: LatticeType) => {
}else{
block._state = _state;
block.nextState(true);
}
return block;
case LatticeType.BLOCK_AND_ICE:
......@@ -31,8 +32,14 @@ export default (type: LatticeType) => {
}else{
iceblock._state = _state;
iceblock.ice.alpha = 0.6;
iceblock.ice.visible = false;
iceblock.iceCountNum = 1;
iceblock.nextState(true);
}
if(iceblock._state==0||iceblock._state==1||iceblock._state==2){
iceblock.ice.visible = false;
}else{
iceblock.ice.visible = true;
}
return iceblock;
case LatticeType.BLOCK_AND_DARK_ICE:
......@@ -42,8 +49,16 @@ export default (type: LatticeType) => {
}else{
darkiceblock._state = _state;
darkiceblock.ice.alpha = 1;
darkiceblock.ice.visible = false;
darkiceblock.iceCountNum = 2;
darkiceblock.nextState(true);
}
if(darkiceblock._state==0||darkiceblock._state==1||darkiceblock._state==2){
darkiceblock.ice.visible = false;
}else{
darkiceblock.ice.visible = true;
}
return darkiceblock;
default:
......
......@@ -87,4 +87,27 @@ export const Chapters26: ChapterData[] = [
]
}
},
{ baseElementTypes: [ 0, 1, 2, 3 ], bubbleProbability: 0, stepCount: 28, passTarget: { type: 1, elements: [ { type: 9, count: 63 }, { type: 0, count: 102 } ] }, starScores: [], map: {
lattices: [
3, 0, 0, 0, 0, 0, 0, 0, 3,
3, 6, 0, 0, 0, 0, 0, 61, 3,
3, 3, 3, 0, 0, 0, 3, 3, 3,
3, 3, 3, 3, 0, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3,
0, 3, 3, 3, 3, 3, 3, 3, 0 ],
connectedLats: [], conveyor: [], conveyorConnectedLats: [], WORMHOLE: [],
elements: [
1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 1, 1, 1, 1, 1, 2, 2,
2, 2, 1, 1, 1, 1, 1, 2, 2,
2, 2, 1, 1, 1, 1, 1, 2, 2,
2, 2, 1, 1, 1, 1, 1, 2, 2,
2, 2, 4, 1, 1, 1, 4, 2, 2,
2, 2, 4, 1, 4, 1, 4, 2, 2,
1, 2, 5, 4, 5, 4, 5, 2, 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: 8, type: null }, { index: 10, type: null }, { index: 16, type: null }, { index: 20, type: null }, { index: 24, type: null }, { index: 30, type: null }, { index: 32, type: null }, { index: 40, type: null } ] } },
]
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