Commit cd75fd0d authored by Tt's avatar Tt

汽车效果

parent d28793cd
......@@ -588,8 +588,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 400
"width": 1400,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......
......@@ -520,13 +520,13 @@ 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 => {
......
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