From 2de13a97f09e4c00c7560626233fe1f9ef2edddc Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Mon, 11 Jan 2021 15:17:32 -0500 Subject: [PATCH] 10-wide graphic restored --- scene/game.lua | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/scene/game.lua b/scene/game.lua index 4fc1343..f1ada0d 100644 --- a/scene/game.lua +++ b/scene/game.lua @@ -50,28 +50,33 @@ function GameScene:render() ) -- 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.rectangle("fill", 64, 80, 16 * self.game.grid.width, 320) - love.graphics.setColor(174/255, 83/255, 76/255, 1) - love.graphics.setLineWidth(8) - love.graphics.line( - 60,76, - 68+16*self.game.grid.width,76, - 68+16*self.game.grid.width,404, - 60,404, - 60,76 - ) - love.graphics.setColor(203/255, 137/255, 111/255, 1) - love.graphics.setLineWidth(4) - love.graphics.line( - 60,76, - 68+16*self.game.grid.width,76, - 68+16*self.game.grid.width,404, - 60,404, - 60,76 - ) + if self.game.grid.width ~= 10 then + love.graphics.setColor(174/255, 83/255, 76/255, 1) + love.graphics.setLineWidth(8) + love.graphics.line( + 60,76, + 68+16*self.game.grid.width,76, + 68+16*self.game.grid.width,404, + 60,404, + 60,76 + ) + love.graphics.setColor(203/255, 137/255, 111/255, 1) + love.graphics.setLineWidth(4) + love.graphics.line( + 60,76, + 68+16*self.game.grid.width,76, + 68+16*self.game.grid.width,404, + 60,404, + 60,76 + ) + end self.game:drawGrid() self.game:drawPiece()