再优化报错机制,简化代码

This commit is contained in:
MrZ626
2021-03-19 13:14:18 +08:00
parent 0e0d88d755
commit 20cab9001b
2 changed files with 40 additions and 59 deletions

View File

@@ -19,7 +19,7 @@ function scene.draw()
gc.clear(BGcolor)
gc.setColor(1,1,1)
gc.draw(errorShot,100,345,nil,512/errorShot:getWidth(),288/errorShot:getHeight())
setFont(100)gc.print(":(",100,00,0,1.2)
setFont(100)gc.print(":(",100,0,0,1.2)
setFont(40)gc.printf(errorText,100,160,SCR.w0-100)
setFont(20)
gc.print(stateInfo,100,640)