Commit cecf8f87 authored by 邱旭's avatar 邱旭

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/xiaoxiaole into dev

parents a75a4ffc a728ed0e
......@@ -163,8 +163,6 @@ export default class MainScene extends Scene {
oneStepScore: number;
//果冻有消除的标记;
jellyBrokenMark: boolean;
//有毛球消失的动画时,延迟掉落时间
hairballBrokenMark: boolean;
/**
* 判断连通的状态
* 1表示存在小列连通到大列,从右往左遍历
......@@ -1710,15 +1708,13 @@ export default class MainScene extends Scene {
this.eliminate();
}, 200)
} else {
//没有可消除元素,执行掉落,又加定制,因为毛球的消失动画比较长 650ms,用500
var time = this.hairballBrokenMark ? 500 : 200;
this.hairballBrokenMark = false;
//没有可消除元素,执行掉落,
setTimeout(() => {
this.fall(() => {
//掉落停止回调
this.fallCallback();
});
}, time)
}, 200)
}
}
/**
......@@ -2053,8 +2049,6 @@ export default class MainScene extends Scene {
ele.setState(StateType.HAIRBALLGREY, false)
//算个数
this.goElementTarget(ElementType.HAIRBALLGREY, [ele.x, ele.y]);
//标记有毛球消失
this.hairballBrokenMark = true
}
//有黑色毛球的,一次眩晕,两次消失
else if (ele.hasState(StateType.HAIRBALLGREY)) {
......@@ -2071,8 +2065,6 @@ export default class MainScene extends Scene {
ele.setState(StateType.HAIRBALLBLACK, false)
//算个数
this.goElementTarget(ElementType.HAIRBALLBLACK, [ele.x, ele.y]);
//标记有毛球消失
this.hairballBrokenMark = true
}
}
//如果有特效,存下
......
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