新增doGC工具函数,三个模式图标改为代码绘制

This commit is contained in:
MrZ626
2021-03-09 23:25:40 +08:00
parent 11d7caa6f6
commit d9dd56f6e2
7 changed files with 79 additions and 29 deletions

View File

@@ -68,6 +68,32 @@ local loadingThread=coroutine.create(function()
upFloor()
local modeIcons={}
modeIcons.marathon=DOGC{32,32,
{"move",3,1},
{"rect","fill",10,4,-2,23},
{"poly","fill",10,4,24,10,10,16.5},
{"rect","fill",4,24,10,3},
}
modeIcons.tsd=DOGC{64,64,
{"rect","fill",7,7,16,16},
{"rect","fill",7,41,16,16},
{"rect","fill",41,41,16,16},
{"move",.5,.5},
{"poly","line",7,24,56,24,56,39,39,39,39,56,24,56,24,39,7,39},
}
modeIcons.infinite=DOGC{64,64,
{"wid",4},
{"circ","line",32,32,28},
{"line",32,32,32,14},
{"line",32,32,41,41},
{"move",.5,.5},
{"rect","fill",30,7,4,4},
{"rect","fill",7,30,4,4},
{"rect","fill",52,30,4,4},
{"rect","fill",30,52,4,4},
}
upFloor()
for i=1,#MODES do
local m=MODES[i]--Mode template
local M=require("parts/modes/"..m.name)--Mode file
@@ -202,7 +228,7 @@ function scene.update(dt)
local p=progress
::again::
if loadingThread then
coroutine.resume(loadingThread)
assert(coroutine.resume(loadingThread))
else
return
end