Commit 78e603ba authored by Tt's avatar Tt

汽车效果

parent f1477097
......@@ -378,13 +378,14 @@ cc.Class({
const car3 = cc.find('Canvas/bg/car_3');
car1.x = pos1.x;
car1.y = pos2.y;
cc.tween(car1).to(1, { x: pos3.x }).start();
cc.tween(car1).by(0.2, { x: -60 }).by(0.2, { x: -100 }).by(0.2, { x: -120 }).by(0.2, { x: -140 }).by(0.2, { x: -180 }).to(1, { x: pos3.x }, cc.easing.quadIn).start();
if (this.status.currentQuestionIdx + 1 < this.data.question_arr.length) {
car2.x = pos2.x;
car2.y = pos2.y;
cc.tween(car2).to(1, { x: pos1.x }).start();
cc.tween(car2).delay(1).to(1, { x: pos1.x }).start();
}
this.optionNodes.forEach(optionNode => {
......@@ -561,6 +562,7 @@ cc.Class({
resetGame() {
this.initData();
this.initView();
this.initListener();
this.hideRestartBtn();
},
......
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