toolfunc文件拆分

This commit is contained in:
MrZ626
2021-02-13 04:05:28 +08:00
parent bdb8b91e1f
commit 9f285d21ef
15 changed files with 686 additions and 692 deletions

10
Zframework/mDraw.lua Normal file
View File

@@ -0,0 +1,10 @@
local gc=love.graphics
function mStr(s,x,y)
gc.printf(s,x-626,y,1252,"center")
end
function mText(s,x,y)
gc.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)
end