New lock delay curve for Square
parent
a820798e13
commit
44d0605fb7
|
@ -38,8 +38,7 @@ function SquareMode:getGravity()
|
|||
end
|
||||
|
||||
function SquareMode:getLockDelay()
|
||||
if self:getGravity() <= 20 then return 30
|
||||
else return 30 - math.log(self:getGravity() - 20) end
|
||||
return math.ceil(30 * 0.9998 ^ self.lines)
|
||||
end
|
||||
|
||||
function SquareMode:advanceOneFrame()
|
||||
|
@ -97,4 +96,4 @@ function SquareMode:getBackground()
|
|||
return math.floor(self.lines / 100) % 20
|
||||
end
|
||||
|
||||
return SquareMode
|
||||
return SquareMode
|
||||
|
|
Loading…
Reference in New Issue