PRINT改为独立模块log.lua,增加显示动画,增加使用样例

This commit is contained in:
MrZ626
2020-09-02 18:38:16 +08:00
parent f2520fdbc2
commit 7bb2fa2fbd
5 changed files with 65 additions and 30 deletions

View File

@@ -52,7 +52,10 @@ function BGM.play(s)
BGM.playing=BGM.list[s]
BGM.suspend,BGM.nowPlay=s
return
elseif not s or not BGM.list[s]then
elseif not s then
return
elseif not BGM.list[s]then
LOG.print("Cannot find BGM: "..s,color.lRed)
return
end
if BGM.nowPlay~=s then