afterLineClear func added and splits time draw fix

This commit is contained in:
Ishaan Bhardwaj
2021-02-15 12:26:52 -05:00
parent cdd846c3e6
commit 9ac60cbb5e
2 changed files with 14 additions and 4 deletions

View File

@@ -394,7 +394,8 @@ end
function Grid:draw()
for y = 5, self.height do
for x = 1, self.width do
if self.grid[y][x] ~= empty then
if blocks[self.grid[y][x].skin] and
blocks[self.grid[y][x].skin][self.grid[y][x].colour] then
if self.grid_age[y][x] < 2 then
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(blocks[self.grid[y][x].skin]["F"], 48+x*16, y*16)