Commit 2c944761 authored by yu's avatar yu

1

parent a712afb2
......@@ -224,9 +224,9 @@ export default class PuzzleJigsaw extends MyCocosSceneComponent {
this.layout_op.getComponent(cc.Layout).enabled = true;
let x = 0;
// if (op.length > 12) x = 7680;
if (op.length > 12) x = 5760;
else if (op.length > 8) x = 3840;
else if (op.length > oplen) x = 1920;
if (op.length > 12) x = 5760 + 1920 / 2;
else if (op.length > 8) x = 3840 + 1920 / 2;
else if (op.length > oplen) x = 1920 + 1920 / 2;
let bottom = cc.find("bottom", this.node);
cc.tween(bottom).repeatForever(cc.tween().by(20, { x: -x })
.call(() => { bottom.x = -960 * scale; }))
......
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