Commit 226d937e authored by yu's avatar yu

1

parent fef972aa
This diff is collapsed.
......@@ -226,8 +226,9 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
if (op.length > 12) x = 7680;
else if (op.length > 8) x = 5760;
else if (op.length > oplen) x = 3840;
cc.tween(item).repeatForever(cc.tween().by(10, { x: -x })
.call(() => { item.x = -960 * scale; }))
let bottom = cc.find("bottom", this.node);
cc.tween(bottom).repeatForever(cc.tween().by(20, { x: -x })
.call(() => { bottom.x = -960 * scale; }))
.start();
}
}
......
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