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