整理代码
This commit is contained in:
@@ -2,7 +2,7 @@ local gc=love.graphics
|
|||||||
local int=math.floor
|
local int=math.floor
|
||||||
local function score(P)
|
local function score(P)
|
||||||
local MD=P.modeData
|
local MD=P.modeData
|
||||||
|
|
||||||
local c=#P.clearedRow
|
local c=#P.clearedRow
|
||||||
if c==0 and MD.point%100==99 then return end
|
if c==0 and MD.point%100==99 then return end
|
||||||
local s=c<3 and c+1 or c==3 and 5 or 7
|
local s=c<3 and c+1 or c==3 and 5 or 7
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ local function updateLine(P,dt)
|
|||||||
if y>0 then
|
if y>0 then
|
||||||
P.fieldBeneath=max(y-P.gameEnv.pushSpeed,0)
|
P.fieldBeneath=max(y-P.gameEnv.pushSpeed,0)
|
||||||
end
|
end
|
||||||
|
|
||||||
local f=P.fieldUp
|
local f=P.fieldUp
|
||||||
if not P.alive then
|
if not P.alive then
|
||||||
y=0
|
y=0
|
||||||
|
|||||||
@@ -1762,6 +1762,7 @@ do--play
|
|||||||
|
|
||||||
function Tmr.play(dt)
|
function Tmr.play(dt)
|
||||||
local _
|
local _
|
||||||
|
local P1=players[1]
|
||||||
game.frame=game.frame+1
|
game.frame=game.frame+1
|
||||||
stat.time=stat.time+dt
|
stat.time=stat.time+dt
|
||||||
|
|
||||||
@@ -1775,8 +1776,6 @@ do--play
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local P1=players[1]
|
|
||||||
|
|
||||||
--Replay
|
--Replay
|
||||||
if game.replaying then
|
if game.replaying then
|
||||||
_=game.replaying
|
_=game.replaying
|
||||||
@@ -1795,6 +1794,7 @@ do--play
|
|||||||
end
|
end
|
||||||
game.replaying=_
|
game.replaying=_
|
||||||
end
|
end
|
||||||
|
|
||||||
--Counting,include pre-das,directy RETURN,or restart counting
|
--Counting,include pre-das,directy RETURN,or restart counting
|
||||||
if game.frame<180 then
|
if game.frame<180 then
|
||||||
if game.frame==179 then
|
if game.frame==179 then
|
||||||
|
|||||||
Reference in New Issue
Block a user