场地编辑界面显示隐形块
This commit is contained in:
@@ -279,15 +279,22 @@ function scene.draw()
|
||||
gc.setColor(COLOR.Z)
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',-2,-2,304,604,5)
|
||||
gc.setLineWidth(2)
|
||||
local cross=TEXTURE.puzzleMark[-1]
|
||||
local invis=TEXTURE.puzzleMark[-2]
|
||||
local F=FIELD[page]
|
||||
local texture=SKIN.lib[SETTING.skinSet]
|
||||
for y=1,#F do for x=1,10 do
|
||||
local B=F[y][x]
|
||||
if B>0 then
|
||||
gc.draw(texture[B],30*x-30,600-30*y)
|
||||
if B~=18 then
|
||||
-- Normal block
|
||||
gc.draw(texture[B],30*x-30,600-30*y)
|
||||
elseif not demo then
|
||||
-- Invisible block
|
||||
gc.draw(invis,30*x-30,600-30*y)
|
||||
end
|
||||
elseif B==-1 and not demo then
|
||||
-- Cross
|
||||
gc.draw(cross,30*x-30,600-30*y)
|
||||
end
|
||||
end end
|
||||
|
||||
@@ -49,6 +49,16 @@ do
|
||||
{'line',5,25,25,5},
|
||||
}}
|
||||
}
|
||||
TEXTURE.puzzleMark[-2]=GC.DO{30,30,
|
||||
{'setCL',1,1,1,.26},
|
||||
{'draw',GC.DO{30,30,
|
||||
{'setFT',25,'mono'},
|
||||
{'print',"?",7,-2},
|
||||
{'print',"?",8,-2},
|
||||
{'print',"?",7,-3},
|
||||
{'print',"?",8,-3},
|
||||
}}
|
||||
}
|
||||
end
|
||||
|
||||
TEXTURE.pixelNum={}-- A simple pixel font
|
||||
|
||||
Reference in New Issue
Block a user