Changed the width to accommodate 4-digit level numbers.

pull/4/head
Joe Zeng 2021-02-03 23:05:08 -05:00 committed by GitHub
parent 443901ec89
commit a820798e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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()