电脑不再默认全屏,增加f11开关全屏功能,整理代码

This commit is contained in:
MrZ626
2021-01-24 13:45:13 +08:00
parent 515c6f93a8
commit aad36f44c1
5 changed files with 14 additions and 8 deletions

View File

@@ -9,6 +9,15 @@ local ins,rem=table.insert,table.remove
--System
function switchFullscreen()
SETTING.fullscreen=not SETTING.fullscreen
love.window.setFullscreen(SETTING.fullscreen)
love.resize(love.graphics.getWidth(),love.graphics.getHeight())
end
--Encoding Functions
--Sep symbol: 33 (!)
--Safe char: 34~126