代码整理
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local gc=love.graphics
|
local gc=love.graphics
|
||||||
local rnd=math.random
|
local rnd=math.random
|
||||||
local mStr=mStr
|
|
||||||
local rem=table.remove
|
local rem=table.remove
|
||||||
|
local mStr=mStr
|
||||||
|
|
||||||
local texts={}
|
local texts={}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ local int=math.floor
|
|||||||
local sub,find,format=string.sub,string.find,string.format
|
local sub,find,format=string.sub,string.find,string.format
|
||||||
|
|
||||||
do--LOADLIB
|
do--LOADLIB
|
||||||
local libName={
|
local libs={
|
||||||
CC={
|
CC={
|
||||||
Windows="CCloader",
|
Windows="CCloader",
|
||||||
Linux="CCloader",
|
Linux="CCloader",
|
||||||
@@ -18,7 +18,7 @@ do--LOADLIB
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
function LOADLIB(name)
|
function LOADLIB(name)
|
||||||
local libName=libName[name]
|
local libName=libs[name]
|
||||||
if SYSTEM=="Windows"or SYSTEM=="Linux"then
|
if SYSTEM=="Windows"or SYSTEM=="Linux"then
|
||||||
local success,message=require(libName[SYSTEM])
|
local success,message=require(libName[SYSTEM])
|
||||||
if success then
|
if success then
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ local format=string.format
|
|||||||
local color=color
|
local color=color
|
||||||
local setFont=setFont
|
local setFont=setFont
|
||||||
local Timer=love.timer.getTime
|
local Timer=love.timer.getTime
|
||||||
|
local mStr=mStr
|
||||||
|
|
||||||
local WIDGET={}
|
local WIDGET={}
|
||||||
local widgetMetatable={
|
local widgetMetatable={
|
||||||
|
|||||||
Reference in New Issue
Block a user