mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 03:09:03 -06:00
added cool+regret colors to splits
This commit is contained in:
parent
92d67968f5
commit
47863175a3
@ -41,6 +41,7 @@ function PhantomMania2Game:new()
|
|||||||
|
|
||||||
self.coolregret_message = ""
|
self.coolregret_message = ""
|
||||||
self.coolregret_timer = 0
|
self.coolregret_timer = 0
|
||||||
|
self.coolregrets = { [0] = 0 }
|
||||||
end
|
end
|
||||||
|
|
||||||
function PhantomMania2Game:getARE()
|
function PhantomMania2Game:getARE()
|
||||||
@ -219,11 +220,14 @@ function PhantomMania2Game:updateSectionTimes(old_level, new_level)
|
|||||||
self.section_start_time = self.frames
|
self.section_start_time = self.frames
|
||||||
if section_time <= cool_cutoffs[section] then
|
if section_time <= cool_cutoffs[section] then
|
||||||
self.grade = self.grade + 2
|
self.grade = self.grade + 2
|
||||||
|
table.insert(self.coolregrets, 2)
|
||||||
self.coolregret_message = "COOL!!"
|
self.coolregret_message = "COOL!!"
|
||||||
self.coolregret_timer = 300
|
self.coolregret_timer = 300
|
||||||
elseif section_time <= regret_cutoffs[section] then
|
elseif section_time <= regret_cutoffs[section] then
|
||||||
self.grade = self.grade + 1
|
self.grade = self.grade + 1
|
||||||
|
table.insert(self.coolregrets, 1)
|
||||||
else
|
else
|
||||||
|
table.insert(self.coolregrets, 0)
|
||||||
self.coolregret_message = "REGRET!!"
|
self.coolregret_message = "REGRET!!"
|
||||||
self.coolregret_timer = 300
|
self.coolregret_timer = 300
|
||||||
end
|
end
|
||||||
@ -292,6 +296,16 @@ function PhantomMania2Game:setHoldOpacity()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function PhantomMania2Game:sectionColourFunction(section)
|
||||||
|
if self.coolregrets[section] == 2 then
|
||||||
|
return { 0, 1, 0, 1 }
|
||||||
|
elseif self.coolregrets[section] == 0 then
|
||||||
|
return { 1, 0, 0, 1 }
|
||||||
|
else
|
||||||
|
return { 1, 1, 1, 1 }
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function PhantomMania2Game:drawScoringInfo()
|
function PhantomMania2Game:drawScoringInfo()
|
||||||
PhantomMania2Game.super.drawScoringInfo(self)
|
PhantomMania2Game.super.drawScoringInfo(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user