[update]加速游戏进度
This commit is contained in:
BIN
assets/.DS_Store
vendored
BIN
assets/.DS_Store
vendored
Binary file not shown.
@@ -14,6 +14,8 @@ const enum M_DIR {
|
|||||||
COUNTER_CLOCKWISE = 1, /** 逆时针 */
|
COUNTER_CLOCKWISE = 1, /** 逆时针 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MOVE_TIME = 0.04 // 每格移动时间
|
||||||
|
|
||||||
const AUTO_TIMES : any[] = [
|
const AUTO_TIMES : any[] = [
|
||||||
"∞",
|
"∞",
|
||||||
"500",
|
"500",
|
||||||
@@ -430,7 +432,7 @@ export class PageMain extends BaseView {
|
|||||||
// 移动标签
|
// 移动标签
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
// 执行动画
|
// 执行动画
|
||||||
this.animateSign(path, steps * 0.12, lastIndex);
|
this.animateSign(path, steps * MOVE_TIME, lastIndex);
|
||||||
Tools.ActChild(b, "light", false)
|
Tools.ActChild(b, "light", false)
|
||||||
}, 3);
|
}, 3);
|
||||||
}
|
}
|
||||||
@@ -492,14 +494,14 @@ export class PageMain extends BaseView {
|
|||||||
let opc = light.getComponent(UIOpacity)
|
let opc = light.getComponent(UIOpacity)
|
||||||
opc.opacity = 0
|
opc.opacity = 0
|
||||||
tween(opc)
|
tween(opc)
|
||||||
.to(0.12, { opacity: 255 }) // 渐隐
|
.to(MOVE_TIME, { opacity: 255 }) // 渐隐
|
||||||
.to(0.12 / 2, { opacity: 0 }) // 渐显 tween(opc)
|
.to(MOVE_TIME / 2, { opacity: 0 }) // 渐显 tween(opc)
|
||||||
.call(() => {
|
.call(() => {
|
||||||
light.active = false
|
light.active = false
|
||||||
opc.opacity = 255
|
opc.opacity = 255
|
||||||
})
|
})
|
||||||
.start();
|
.start();
|
||||||
}, 0.06 / 2);
|
}, MOVE_TIME / 4);
|
||||||
|
|
||||||
tween(this.sign)
|
tween(this.sign)
|
||||||
.to(segmentTime, { position: targetPos }, { easing: "linear" })
|
.to(segmentTime, { position: targetPos }, { easing: "linear" })
|
||||||
@@ -519,7 +521,7 @@ export class PageMain extends BaseView {
|
|||||||
}
|
}
|
||||||
this.scheduleOnce(() => {
|
this.scheduleOnce(() => {
|
||||||
moveNext(index + 1);
|
moveNext(index + 1);
|
||||||
}, 0.06);
|
}, MOVE_TIME/2);
|
||||||
})
|
})
|
||||||
.start();
|
.start();
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
assets/res-native/.DS_Store
vendored
BIN
assets/res-native/.DS_Store
vendored
Binary file not shown.
Reference in New Issue
Block a user