添加危险警告音效,整理代码

This commit is contained in:
MrZ626
2021-01-27 12:32:25 +08:00
parent 91ee6b9f56
commit 4af660666b
15 changed files with 37 additions and 24 deletions

View File

@@ -248,6 +248,9 @@ function scene.update(dt)
elseif GAME.warnLVL>0 then
GAME.warnLVL=max(GAME.warnLVL-.026,0)
end
if GAME.warnLVL>1.126 and GAME.frame%30==0 then
SFX.fplay("warning",SETTING.sfx_warn)
end
end
local function drawAtkPointer(x,y)