10-wide graphic restored

This commit is contained in:
Ishaan Bhardwaj 2021-01-11 15:17:32 -05:00
parent 512c2149f0
commit 2de13a97f0

View File

@ -50,10 +50,14 @@ function GameScene:render()
) )
-- game frame -- game frame
-- love.graphics.draw(misc_graphics["frame"], 48, 64) if self.game.grid.width == 10 then
love.graphics.draw(misc_graphics["frame"], 48, 64)
end
love.graphics.setColor(0, 0, 0, 200) love.graphics.setColor(0, 0, 0, 200)
love.graphics.rectangle("fill", 64, 80, 16 * self.game.grid.width, 320) love.graphics.rectangle("fill", 64, 80, 16 * self.game.grid.width, 320)
if self.game.grid.width ~= 10 then
love.graphics.setColor(174/255, 83/255, 76/255, 1) love.graphics.setColor(174/255, 83/255, 76/255, 1)
love.graphics.setLineWidth(8) love.graphics.setLineWidth(8)
love.graphics.line( love.graphics.line(
@ -72,6 +76,7 @@ function GameScene:render()
60,404, 60,404,
60,76 60,76
) )
end
self.game:drawGrid() self.game:drawGrid()
self.game:drawPiece() self.game:drawPiece()