Replicate the vanish zone behavior in C89/NES

This commit is contained in:
Ishaan Bhardwaj 2021-03-03 17:05:32 -05:00
parent c648d1f75b
commit fe21f819cc

View File

@ -172,6 +172,9 @@ function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines)
self.level = self:getLevelForLines()
self.line_clears = self.line_clears + 1
if cleared_lines == 4 then self.tetrises = self.tetrises + 1 end
for i = 1, 4 do
self.grid:clearSpecificRow(i)
end
else
self.drop_bonus = 0
self.combo = 1