代码整理

This commit is contained in:
MrZ626
2020-10-23 18:16:01 +08:00
parent bebb459a52
commit c36a8e92da
3 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
local gc=love.graphics
local rnd=math.random
local mStr=mStr
local rem=table.remove
local mStr=mStr
local texts={}

View File

@@ -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

View File

@@ -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={