mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-05-13 20:21:25 -05:00
Replay system v2
This commit is contained in:
@@ -182,6 +182,19 @@ function Grid:clearSpecificRow(row)
|
||||
end
|
||||
end
|
||||
|
||||
function Grid:clearBlock(x, y)
|
||||
self.grid[x+1][y+1] = empty
|
||||
end
|
||||
|
||||
function Grid:clearBottomRows(num)
|
||||
local old_isRowFull = self.isRowFull
|
||||
self.isRowFull = function(self, row)
|
||||
return row >= self.height + 1 - num
|
||||
end
|
||||
self:clearClearedRows()
|
||||
self.isRowFull = old_isRowFull
|
||||
end
|
||||
|
||||
function Grid:applyPiece(piece)
|
||||
if piece.big then
|
||||
self:applyBigPiece(piece)
|
||||
|
||||
Reference in New Issue
Block a user