整理全局函数名以及库的require方法

This commit is contained in:
MrZ626
2021-03-05 01:15:09 +08:00
parent 069b547e58
commit b1ca2c8dda
99 changed files with 135 additions and 132 deletions

View File

@@ -1,10 +1,11 @@
local gc=love.graphics
local printf=love.graphics.printf
local draw=love.graphics.draw
function mStr(s,x,y)
gc.printf(s,x-626,y,1252,"center")
printf(s,x-626,y,1252,"center")
end
function mText(s,x,y)
gc.draw(s,x-s:getWidth()*.5,y)
draw(s,x-s:getWidth()*.5,y)
end
function mDraw(s,x,y,a,k)
gc.draw(s,x,y,a,k,nil,s:getWidth()*.5,s:getHeight()*.5)
draw(s,x,y,a,k,nil,s:getWidth()*.5,s:getHeight()*.5)
end