freeRow模块改名line模块并暂时在“行”的管理上不再那么节约地使用内存

This commit is contained in:
MrZ626
2021-11-09 20:14:08 +08:00
parent 230d67492e
commit b27aa8b60d
14 changed files with 46 additions and 70 deletions

View File

@@ -8,7 +8,7 @@ return{
while true do
YIELD()
if not P.nextQueue[1]then
local height=FREEROW.get(0)
local height=TABLE.new(0,10)
local max=#P.field
if max>0 then
--Get heights
@@ -69,8 +69,6 @@ return{
for _=1,4 do ins(wei,5)end
end
end
FREEROW.discard(height)
P:getNext(wei[P.seqRND:random(#wei)])
end
end