From ba0aeec98d5bb5fbbb3329f663c18b8de06335dd Mon Sep 17 00:00:00 2001 From: Kirby703 <14858059+Kirby703@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:51:13 -0400 Subject: [PATCH] render a finish line --- tetris/modes/race_40.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tetris/modes/race_40.lua b/tetris/modes/race_40.lua index 5fadb67..e701333 100644 --- a/tetris/modes/race_40.lua +++ b/tetris/modes/race_40.lua @@ -106,6 +106,10 @@ function Race40Game:drawGrid(ruleset) if self.piece ~= nil then self:drawGhostPiece(ruleset) end + if self.lines >= self.line_goal - 20 and self.lines < self.line_goal then + local line_height = (self.lines - self.line_goal + 20) * 16 + 80 + love.graphics.setColor(1, 0, 0, 1) + love.graphics.line(64, line_height, 224, line_height) end function Race40Game:getHighscoreData()