mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-26 08:59:02 -06:00
Marathon 2020 colour function removed
This commit is contained in:
parent
4afe9f2bd4
commit
696da3fa3f
@ -524,7 +524,7 @@ function GameMode:drawSectionTimes(current_section)
|
|||||||
love.graphics.printf(formatTime(self.frames - self.section_start_time), section_x, 40 + 20 * current_section, 90, "left")
|
love.graphics.printf(formatTime(self.frames - self.section_start_time), section_x, 40 + 20 * current_section, 90, "left")
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameMode:drawSectionTimesWithSecondary(current_section, section_colour_function)
|
function GameMode:drawSectionTimesWithSecondary(current_section)
|
||||||
local section_x = 530
|
local section_x = 530
|
||||||
local section_secondary_x = 440
|
local section_secondary_x = 440
|
||||||
|
|
||||||
@ -535,9 +535,6 @@ function GameMode:drawSectionTimesWithSecondary(current_section, section_colour_
|
|||||||
end
|
end
|
||||||
|
|
||||||
for section, time in pairs(self.secondary_section_times) do
|
for section, time in pairs(self.secondary_section_times) do
|
||||||
if self.section_colour_function then
|
|
||||||
love.graphics.setColor(self:section_colour_function(section))
|
|
||||||
end
|
|
||||||
if section > 0 then
|
if section > 0 then
|
||||||
love.graphics.printf(formatTime(time), section_secondary_x, 40 + 20 * section, 90, "left")
|
love.graphics.printf(formatTime(time), section_secondary_x, 40 + 20 * section, 90, "left")
|
||||||
end
|
end
|
||||||
|
@ -423,14 +423,6 @@ function Marathon2020Game:drawGrid()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Marathon2020Game:sectionColourFunction(section)
|
|
||||||
if self.section_status[section] == "cool" then
|
|
||||||
return { 0, 1, 0, 1 }
|
|
||||||
else
|
|
||||||
return { 1, 1, 1, 1 }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function Marathon2020Game:drawScoringInfo()
|
function Marathon2020Game:drawScoringInfo()
|
||||||
Marathon2020Game.super.drawScoringInfo(self)
|
Marathon2020Game.super.drawScoringInfo(self)
|
||||||
|
|
||||||
@ -442,7 +434,7 @@ function Marathon2020Game:drawScoringInfo()
|
|||||||
love.graphics.printf("GRADE PTS.", text_x, 200, 90, "left")
|
love.graphics.printf("GRADE PTS.", text_x, 200, 90, "left")
|
||||||
love.graphics.printf("LEVEL", text_x, 320, 40, "left")
|
love.graphics.printf("LEVEL", text_x, 320, 40, "left")
|
||||||
|
|
||||||
self:drawSectionTimesWithSecondary(current_section, self.sectionColourFunction)
|
self:drawSectionTimesWithSecondary(current_section)
|
||||||
|
|
||||||
if (self.cool_timer > 0) then
|
if (self.cool_timer > 0) then
|
||||||
love.graphics.printf("COOL!!", 64, 400, 160, "center")
|
love.graphics.printf("COOL!!", 64, 400, 160, "center")
|
||||||
|
Loading…
Reference in New Issue
Block a user