优化重开的操作提示和显示

This commit is contained in:
MrZ626
2020-09-09 11:49:59 +08:00
parent b387cdc72d
commit a8130ebbe9
5 changed files with 17 additions and 12 deletions

View File

@@ -58,7 +58,6 @@ if setting.lang==1 or setting.lang==2 then
"少女祈祷中",
"扫雷好玩!",
"请不要向对方块不感兴趣的路人推荐此游戏。",
"你可以长按R键重新开始游戏(也不是很长)",
"你可以从统计页面打开游戏存档目录",
"魔方好玩!",
"喵!",
@@ -152,7 +151,6 @@ elseif setting.lang==3 then
"l-=-1",
"Is B2B2B2B possible?",
"Initial Rotation etc. can save your life",
"Hold R key to restart game",
"Hello world!",
"Headphones for better experience",
"Have you noticed what does \"rotating\" do to block?",

View File

@@ -2734,6 +2734,8 @@ function player.act.restart(P)
if game.frame<240 or game.result then
TASK.removeTask_code(TICK.autoPause)
resetPartGameData()
else
LOG.print(text.holdR,"short")
end
end
function player.act.insLeft(P,auto)

View File

@@ -1932,10 +1932,6 @@ do--play
--Warning
gc.push("transform")
gc.origin()
if restartCount>0 then
gc.setColor(0,0,0,restartCount*.05)
gc.rectangle("fill",0,0,scr.w,scr.h)
end
if game.warnLVL>0 then
gc.setColor(0,0,0,0)
SHADER.warning:send("level",game.warnLVL)
@@ -1943,6 +1939,10 @@ do--play
gc.rectangle("fill",0,0,scr.w,scr.h)
gc.setShader()
end
if restartCount>0 then
gc.setColor(0,0,0,restartCount*.05)
gc.rectangle("fill",0,0,scr.w,scr.h)
end
gc.pop()
end
end