From a820798e13e6f2633d2fc195256852393f39daaa Mon Sep 17 00:00:00 2001 From: Joe Zeng Date: Wed, 3 Feb 2021 23:05:08 -0500 Subject: [PATCH] Changed the width to accommodate 4-digit level numbers. --- tetris/modes/interval_training.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/interval_training.lua b/tetris/modes/interval_training.lua index 810250c..215c7ad 100644 --- a/tetris/modes/interval_training.lua +++ b/tetris/modes/interval_training.lua @@ -123,7 +123,7 @@ function IntervalTrainingGame:drawScoringInfo() self:drawSectionTimesWithSplits(current_section) love.graphics.setFont(font_3x5_3) - love.graphics.printf(self.level, 240, 340, 40, "right") + love.graphics.printf(self.level, 240, 340, 50, "right") -- draw time left, flash red if necessary local time_left = self.section_time_limit - math.max(self:getSectionTime(), 0) @@ -133,7 +133,7 @@ function IntervalTrainingGame:drawScoringInfo() love.graphics.printf(formatTime(time_left), 240, 270, 160, "left") love.graphics.setColor(1, 1, 1, 1) - love.graphics.printf(self:getSectionEndLevel(), 240, 370, 40, "right") + love.graphics.printf(self:getSectionEndLevel(), 240, 370, 50, "right") end function IntervalTrainingGame:getSectionEndLevel()