new bagline system (#963)

closes #940
This commit is contained in:
Imple Lee
2023-09-11 18:03:09 +08:00
committed by GitHub
parent 7141f46948
commit 452fa65748
4 changed files with 25 additions and 11 deletions

View File

@@ -569,8 +569,10 @@ local function _drawNext(P,repMode)
end
if ENV.bagLine then
gc_setColor(.8,.8,.8,.8)
for i=-P.pieceCount%ENV.bagLine,N-1,ENV.bagLine do-- i=phase
gc_rectangle('fill',1,72*i+3,98,2)
for i=1,ENV.nextCount+1 do
if queue[i] and queue[i].bagLine>0 then
gc_rectangle('fill',1,72*(i-1)+3,98,2)
end
end
end
gc_translate(-488,-20)