整理代码
This commit is contained in:
1
conf.lua
1
conf.lua
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user