Browse Source

修改按钮样式

master
song 4 years ago
parent
commit
287e1047ab
  1. BIN
      public/RECOVER_source-code.fla
  2. 4
      src/classes/time.js
  3. 1
      src/custom.js
  4. 3
      src/test.js

BIN
public/RECOVER_source-code.fla

Binary file not shown.

4
src/classes/time.js

@ -65,7 +65,9 @@ Time.prototype.start = function (startTime = Date.now()) {
this.startTime = startTime;
this.duration = leftDuration ? leftDuration : this.duration;
this.update();
main.play(99);
if (move) {
main.play(99);
}
};
// 暂停游戏 暂停倒计时

1
src/custom.js

@ -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;

3
src/test.js

@ -40,6 +40,9 @@ function sevenClick() {
// 倒计时结束 开始游戏
function countOver() {
timeInstance.start();
setTimeout(function () {
move = false;
}, 500);
}
// 添加hash值

Loading…
Cancel
Save