代码/注释整理
This commit is contained in:
@@ -20,6 +20,7 @@ function sceneInit.load()
|
|||||||
sceneTemp={
|
sceneTemp={
|
||||||
phase=1,--Loading stage
|
phase=1,--Loading stage
|
||||||
cur=1,--Counter
|
cur=1,--Counter
|
||||||
|
tar=#VOC.name,--Loading bar length(current)
|
||||||
tip=setting.appLock or require("parts/getTip"),
|
tip=setting.appLock or require("parts/getTip"),
|
||||||
list={
|
list={
|
||||||
#VOC.name,
|
#VOC.name,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
local freeRow={}
|
local freeRow={}
|
||||||
local L={}--Storage
|
local L={}--Storage
|
||||||
local _=0--Lenth
|
local _=0--Length
|
||||||
function freeRow.reset(num)
|
function freeRow.reset(num)
|
||||||
if num<_ then
|
if num<_ then
|
||||||
for i=_,num+1,-1 do
|
for i=_,num+1,-1 do
|
||||||
|
|||||||
@@ -1427,8 +1427,8 @@ function player.freshBlock(P,keepGhost,control,system)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function player.lock(P)
|
function player.lock(P)
|
||||||
local dest = P.AI_dest
|
local dest=P.AI_dest
|
||||||
local has_dest = (dest ~= nil)
|
local has_dest=dest~=nil
|
||||||
for i=1,P.r do
|
for i=1,P.r do
|
||||||
local y=P.curY+i-1
|
local y=P.curY+i-1
|
||||||
if not P.field[y]then P.field[y],P.visTime[y]=freeRow.get(0),freeRow.get(0)end
|
if not P.field[y]then P.field[y],P.visTime[y]=freeRow.get(0),freeRow.get(0)end
|
||||||
@@ -1436,17 +1436,17 @@ function player.lock(P)
|
|||||||
if P.cur.bk[i][j]then
|
if P.cur.bk[i][j]then
|
||||||
P.field[y][P.curX+j-1]=P.cur.color
|
P.field[y][P.curX+j-1]=P.cur.color
|
||||||
P.visTime[y][P.curX+j-1]=P.showTime
|
P.visTime[y][P.curX+j-1]=P.showTime
|
||||||
local x = P.curX+j-1
|
local x=P.curX+j-1
|
||||||
if dest then
|
if dest then
|
||||||
local original_length = #dest
|
local original_length=#dest
|
||||||
for k=1,original_length do
|
for k=1,original_length do
|
||||||
if x == dest[k][1] and y == dest[k][2] then
|
if x==dest[k][1]and y==dest[k][2]then
|
||||||
rem(dest, k)
|
rem(dest, k)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if #dest ~= original_length - 1 then
|
if #dest~=original_length-1 then
|
||||||
dest = nil
|
dest=nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user