From 76142c1dff5ada599ed7a117a215249277e8e047 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 5 Nov 2020 16:21:58 -0500 Subject: [PATCH] More Green Orange line --- tetris/modes/marathon_a3.lua | 3 +++ tetris/modes/survival_a2.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index 1f050f7..b15eef1 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -440,7 +440,10 @@ function MarathonA3Game:drawScoringInfo() love.graphics.setFont(font_3x5_3) love.graphics.printf(self.score, 240, 220, 90, "left") + if self.roll_frames > 3238 then love.graphics.setColor(1, 0.5, 0, 1) + elseif self.clear then love.graphics.setColor(0, 1, 0, 1) end love.graphics.printf(self:getLetterGrade(), 240, 140, 90, "left") + love.graphics.setColor(1, 1, 1, 1) love.graphics.printf(self.level, 240, 340, 40, "right") love.graphics.printf(self:getSectionEndLevel(), 240, 370, 40, "right") if sg >= 5 then diff --git a/tetris/modes/survival_a2.lua b/tetris/modes/survival_a2.lua index 8f6fec2..78caf0a 100644 --- a/tetris/modes/survival_a2.lua +++ b/tetris/modes/survival_a2.lua @@ -157,6 +157,8 @@ function SurvivalA2Game:drawScoringInfo() love.graphics.setFont(font_3x5_3) love.graphics.printf(self.score, text_x, 220, 90, "left") + if self.roll_frames > 2968 then love.graphics.setColor(1, 0.5, 0, 1) + elseif self.clear then love.graphics.setColor(0, 1, 0, 1) end if self:getLetterGrade() ~= "" then love.graphics.printf(self:getLetterGrade(), text_x, 140, 90, "left") end love.graphics.printf(self.level, text_x, 340, 40, "right") love.graphics.printf(self:getSectionEndLevel(), text_x, 370, 40, "right")