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