mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 09:29:03 -06:00
Added some more developer functions, to aid in building modes.
This commit is contained in:
parent
f9368fa806
commit
d8fad3dc37
@ -171,6 +171,20 @@ function Grid:applyFourWide()
|
||||
end
|
||||
end
|
||||
|
||||
function Grid:applyCeiling(lines)
|
||||
for row = 1, lines do
|
||||
for col = 1, 9 do
|
||||
self.grid[row][col] = block
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Grid:clearSpecificRow(row)
|
||||
for col = 1, 10 do
|
||||
self.grid[row][col] = empty
|
||||
end
|
||||
end
|
||||
|
||||
function Grid:applyPiece(piece)
|
||||
if piece.big then
|
||||
self:applyBigPiece(piece)
|
||||
|
Loading…
Reference in New Issue
Block a user