主界面ai演示ghost受设置影响
This commit is contained in:
@@ -941,12 +941,14 @@ local function Pdraw_demo(P)
|
|||||||
|
|
||||||
if P.cur and P.waiting==-1 then
|
if P.cur and P.waiting==-1 then
|
||||||
--Draw ghost
|
--Draw ghost
|
||||||
gc.setColor(1,1,1,.3)
|
if ENV.ghost then
|
||||||
for i=1,P.r do for j=1,P.c do
|
gc.setColor(1,1,1,ENV.ghost)
|
||||||
if P.cur.bk[i][j]then
|
for i=1,P.r do for j=1,P.c do
|
||||||
drawPixel(i+P.imgY-1,j+P.curX-1,curColor)
|
if P.cur.bk[i][j]then
|
||||||
end
|
drawPixel(i+P.imgY-1,j+P.curX-1,curColor)
|
||||||
end end
|
end
|
||||||
|
end end
|
||||||
|
end
|
||||||
|
|
||||||
--Draw block
|
--Draw block
|
||||||
gc.setColor(1,1,1)
|
gc.setColor(1,1,1)
|
||||||
|
|||||||
Reference in New Issue
Block a user