diff --git a/tetris/modes/survival_ax.lua b/tetris/modes/survival_ax.lua index 5b5b617..bf556bb 100644 --- a/tetris/modes/survival_ax.lua +++ b/tetris/modes/survival_ax.lua @@ -143,22 +143,22 @@ function SurvivalAXGame:drawScoringInfo() self.das.frames .. " " .. strTrueValues(self.prev_inputs) ) - if self.lines < 150 then love.graphics.printf("TIME LEFT", 240, 250, 80, "left") end - love.graphics.printf("LINES", 240, 320, 40, "left") + if self.lines < 150 then love.graphics.printf("TIME LEFT", text_x, 250, 80, "left") end + love.graphics.printf("LINES", text_x, 320, 40, "left") local current_section = math.floor(self.lines / 10) + 1 self:drawSectionTimesWithSplits(current_section) love.graphics.setFont(font_3x5_3) - love.graphics.printf(self.lines, 240, 340, 40, "right") - love.graphics.printf(self.clear and self.lines or self:getSectionEndLines(), 240, 370, 40, "right") + love.graphics.printf(self.lines, text_x, 340, 40, "right") + love.graphics.printf(self.clear and self.lines or self:getSectionEndLines(), text_x, 370, 40, "right") -- draw time left, flash red if necessary local time_left = self.section_time_limit - math.max(self:getSectionTime(), 0) if not self.game_over and not self.clear and time_left < frameTime(0,10) and time_left % 4 < 2 then love.graphics.setColor(1, 0.3, 0.3, 1) end - if self.lines < 150 then love.graphics.printf(formatTime(time_left), 240, 270, 160, "left") end + if self.lines < 150 then love.graphics.printf(formatTime(time_left), text_x, 270, 160, "left") end love.graphics.setColor(1, 1, 1, 1) end