整理代码

This commit is contained in:
MrZ626
2021-05-25 15:55:10 +08:00
parent 58e5118d45
commit 0f3dd61249
3 changed files with 1 additions and 3 deletions

View File

@@ -22,7 +22,6 @@ function love.conf(t)
W.minwidth,W.minheight=640,360
W.borderless=false
W.resizable=true
W.fullscreentype='desktop'--'exclusive'
W.fullscreen=false
W.vsync=0--Unlimited FPS
W.msaa=false--Num of samples to use with multi-sampled antialiasing

View File

@@ -15,7 +15,7 @@ local SETTING,GAME,SCR=SETTING,GAME,SCR
function switchFullscreen()
SETTING.fullscreen=not SETTING.fullscreen
love.window.setFullscreen(SETTING.fullscreen)
love.resize(love.graphics.getWidth(),love.graphics.getHeight())
love.resize(gc.getWidth(),gc.getHeight())
end

View File

@@ -1,5 +1,4 @@
local gc=love.graphics
local ins=table.insert
local function NSC(x,y)--New & Set Canvas
local _=gc.newCanvas(x,y)