@ -65,7 +65,9 @@ Time.prototype.start = function (startTime = Date.now()) {
this.startTime = startTime;
this.duration = leftDuration ? leftDuration : this.duration;
this.update();
if (move) {
main.play(99);
}
};
// 暂停游戏 暂停倒计时
@ -21,6 +21,7 @@ let library = null;
let state = 0; // 游戏状态 0->未开始 1->进行中 2->结束 3->暂停
let isDemo = false; // 是不是演示模式
let leftDuration = null; // 暂停时的时间
let move = true; // 是否执行动作
function initStage(lib) {
library = lib;
@ -40,6 +40,9 @@ function sevenClick() {
// 倒计时结束 开始游戏
function countOver() {
timeInstance.start();
setTimeout(function () {
move = false;
}, 500);
// 添加hash值