mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 21:39:03 -06:00
last commit to core modes before release
This commit is contained in:
parent
c8544975d6
commit
468025fc80
@ -15,6 +15,7 @@ IntervalTrainingGame.tagline = "Can you clear the time hurdles when the game goe
|
||||
|
||||
|
||||
function IntervalTrainingGame:new()
|
||||
self.level = 0
|
||||
IntervalTrainingGame.super:new()
|
||||
self.roll_frames = 0
|
||||
self.combo = 1
|
||||
@ -77,7 +78,7 @@ function IntervalTrainingGame:advanceOneFrame()
|
||||
end
|
||||
|
||||
function IntervalTrainingGame:onPieceEnter()
|
||||
if (self.level % 100 ~= 99 or self.level == 998) and not self.clear and self.frames ~= 0 then
|
||||
if (self.level % 100 ~= 99 and self.level ~= 998) and not self.clear and self.frames ~= 0 then
|
||||
self.level = self.level + 1
|
||||
end
|
||||
end
|
||||
|
@ -16,7 +16,6 @@ StrategyGame.tagline = "You have lots of time to think! Can you use it to place
|
||||
|
||||
function StrategyGame:new()
|
||||
StrategyGame.super:new()
|
||||
self.level = 0
|
||||
self.clear = false
|
||||
self.completed = false
|
||||
self.roll_frames = 0
|
||||
@ -84,7 +83,7 @@ function StrategyGame:advanceOneFrame()
|
||||
end
|
||||
|
||||
function StrategyGame:onPieceEnter()
|
||||
if (self.level % 100 ~= 99) and not self.clear and self.frames ~= 0 then
|
||||
if (self.level % 100 ~= 99 and self.level ~= 998) and not self.clear and self.frames ~= 0 then
|
||||
self.level = self.level + 1
|
||||
end
|
||||
end
|
||||
@ -136,11 +135,11 @@ function StrategyGame:drawScoringInfo()
|
||||
|
||||
love.graphics.setFont(font_3x5_3)
|
||||
love.graphics.printf(self.score, text_x, 220, 90, "left")
|
||||
love.graphics.printf(self.level, text_x, 340, 50, "right")
|
||||
love.graphics.printf(self.level, text_x, 340, 40, "right")
|
||||
if self.clear then
|
||||
love.graphics.printf(self.level, text_x, 370, 50, "right")
|
||||
love.graphics.printf(self.level, text_x, 370, 40, "right")
|
||||
else
|
||||
love.graphics.printf(math.floor(self.level / 100 + 1) * 100, text_x, 370, 50, "right")
|
||||
love.graphics.printf(self.level < 900 and math.floor(self.level / 100 + 1) * 100 or 999, text_x, 370, 40, "right")
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user