整理代码,部分全局变量声明移入Zframework中
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
4
main.lua
4
main.lua
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user