整理代码,部分全局变量声明移入Zframework中

This commit is contained in:
MrZ626
2021-04-28 13:51:56 +08:00
parent 28576c2c9a
commit fcae6c61e4
6 changed files with 10 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
NONE={}function NULL()end
EDITING=""
LOADED=false
ERRDATA={}
SCR= require"Zframework.screen" SCR= require"Zframework.screen"
COLOR= require"Zframework.color" COLOR= require"Zframework.color"
SCN= require"Zframework.scene" SCN= require"Zframework.scene"

View File

@@ -15,7 +15,6 @@
--Declaration --Declaration
goto REM love=require"love"::REM::--Just tell IDE to load love-api, no actual usage goto REM love=require"love"::REM::--Just tell IDE to load love-api, no actual usage
local fs=love.filesystem local fs=love.filesystem
NONE={}function NULL()end
DBP=print--Use this in temporary code, easy to find and remove DBP=print--Use this in temporary code, easy to find and remove
TIME=love.timer.getTime TIME=love.timer.getTime
YIELD=coroutine.yield YIELD=coroutine.yield
@@ -24,10 +23,7 @@ MOBILE=SYSTEM=="Android"or SYSTEM=="iOS"
SAVEDIR=fs.getSaveDirectory() SAVEDIR=fs.getSaveDirectory()
--Global Vars & Settings --Global Vars & Settings
LOADED=false
DAILYLAUNCH=false DAILYLAUNCH=false
EDITING=""
ERRDATA={}
--System setting --System setting
math.randomseed(os.time()*626) math.randomseed(os.time()*626)