注释后加空格

联网稍微推进
This commit is contained in:
MrZ_26
2022-10-03 02:43:51 +08:00
parent 06f4bb4e1a
commit f8d17b23b6
121 changed files with 1628 additions and 1622 deletions

View File

@@ -24,7 +24,7 @@ return{
{3,2,6,6,1,4,0,0,0,7},
{3,3,3,4,4,4,0,0,0,7},
},
},--3*4 shape
},-- 3*4 shape
{
{
{1,1,0,0,0,0,0,3,3,3},
@@ -50,7 +50,7 @@ return{
{3,6,6,5,5,2,2,0,0,0},
{3,3,3,5,2,2,0,0,0,0},
},
},--7 piece opener(right>)(without i)
},-- 7 piece opener(right>)(without i)
{
{
{4,4,4,3,3,3,0,0,0,0},
@@ -64,7 +64,7 @@ return{
{3,2,6,6,1,4,0,0,0,0},
{3,3,3,4,4,4,0,0,0,0},
},
},--6 piece opener
},-- 6 piece opener
{
{
{0,0,0,0,0,1,3,5,6,7},
@@ -84,7 +84,7 @@ return{
{1,3,0,0,0,0,0,5,6,7},
{1,3,0,0,0,0,0,5,6,7},
},
},--4*5
},-- 4*5
{
{
{0,0,0,0,0,0,1,3,5,7},
@@ -104,5 +104,5 @@ return{
{5,7,0,0,0,0,0,0,3,1},
{1,3,0,0,0,0,0,0,7,5},
},
},--4*6
},-- 4*6
}

File diff suppressed because one or more lines are too long

View File

@@ -26,7 +26,7 @@ return{
GC.clear(.2,.2,.2)
GC.setColor(.5,.5,.5)
--Frame & Username
-- Frame & Username
GC.setColor(.8,.8,.8)
GC.setLineWidth(2)
GC.rectangle('line',12,20,100,80,5)
@@ -38,13 +38,13 @@ return{
GC.pop()
end
--Figures
-- Figures
local t=TIME()
GC.setColor(1,1,1,.5+.2*sin(t))
GC.draw(IMG.hbm,-276,-86,0,1.5)
GC.draw(IMG.electric,476,152,0,2.6)
--Texts
-- Texts
GC.setColor(.8,.8,.8)
mText(TEXTOBJ.techrash,63,420)
setFont(75)

View File

@@ -3,7 +3,7 @@ return{
load=function()
applyCustomGame()
--Switch clear sprint mode on
-- Switch clear sprint mode on
if #FIELD[1]>0 then
GAME.modeEnv.hook_drop=require'parts.eventsets.checkClearBoard'.hook_drop
else

View File

@@ -10,7 +10,7 @@ return{
local height=TABLE.new(0,10)
local max=#P.field
if max>0 then
--Get heights
-- Get heights
for x=1,10 do
local h=max
while P.field[h][x]==0 and h>1 do
@@ -30,15 +30,15 @@ return{
for i=1,10 do
d=d+height[i]
end
if d<40 or P.stat.row>2*42 then--Low field or almost win, give SZO
if d<40 or P.stat.row>2*42 then-- Low field or almost win, give SZO
for _=1,4 do
ins(wei,1)
ins(wei,2)
ins(wei,6)
end
else
--Give I when no hole
local tempDeltaHei=-999--Height difference
-- Give I when no hole
local tempDeltaHei=-999-- Height difference
for x=2,11 do
local deltaHei=height[x]-height[x-1]
if tempDeltaHei<-2 and deltaHei>2 then
@@ -50,9 +50,9 @@ return{
end
end
--Give O when no d=0/give T when no d=1
local flatCount=0--d=0 count
local stairCount=0--d=1 count
-- Give O when no d=0/give T when no d=1
local flatCount=0-- d=0 count
local stairCount=0-- d=1 count
for x=2,10 do
local _=height[x]-height[x-1]
if _==0 then