Replay & Sleep

This commit is contained in:
oc 2018-04-18 14:08:31 +08:00
parent fb49b62cd1
commit a31991c16a
4 changed files with 12 additions and 6 deletions

View File

@ -712,7 +712,7 @@ return code;
*/ */
win_s win_s
: '游戏胜利,原因' ':' EvalString? Newline : '游戏胜利,结局' ':' EvalString? Newline
; ;
/* win_s /* win_s
@ -724,7 +724,7 @@ return code;
*/ */
lose_s lose_s
: '游戏失败,原因' ':' EvalString? Newline : '游戏失败,结局' ':' EvalString? Newline
; ;
/* lose_s /* lose_s

View File

@ -472,7 +472,8 @@ events.prototype.doAction = function() {
this.doAction(); this.doAction();
break; break;
case "playSound": case "playSound":
core.playSound(data.name); if (!core.status.replay.replaying)
core.playSound(data.name);
this.doAction(); this.doAction();
break; break;
case "playBgm": case "playBgm":
@ -600,9 +601,13 @@ events.prototype.doAction = function() {
this.doAction(); this.doAction();
break; break;
case "sleep": // 等待多少毫秒 case "sleep": // 等待多少毫秒
setTimeout(function () { if (core.status.replay.replaying)
core.events.doAction(); core.events.doAction();
}, data.time); else {
setTimeout(function () {
core.events.doAction();
}, data.time);
}
break; break;
case "revisit": // 立刻重新执行该事件 case "revisit": // 立刻重新执行该事件
var block=core.getBlock(x,y); // 重新获得事件 var block=core.getBlock(x,y); // 重新获得事件

View File

@ -73,7 +73,7 @@ functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
core.stopReplay(); core.stopReplay();
core.waitHeroToStop(function() { core.waitHeroToStop(function() {
core.drawText([ core.drawText([
"\t[结局1]你死了。\n如题。" "\t["+(reason||"结局1")+"]你死了。\n如题。"
], function () { ], function () {
core.events.gameOver(null, replaying); core.events.gameOver(null, replaying);
}); });

View File

@ -8,6 +8,7 @@ APP端也能下载录像
地图临界显伤 √ 地图临界显伤 √
单个存档清理 √ 单个存档清理 √
大数据魔塔的支持(临界计算等) √ 大数据魔塔的支持(临界计算等) √
进一步对JS文件进行压缩
修复有时候无法输入ID的问题 √ 修复有时候无法输入ID的问题 √
其他细节优化 其他细节优化