NES transition fixes
parent
51e24c09b8
commit
5e0e36fc5c
|
@ -144,14 +144,12 @@ end
|
||||||
|
|
||||||
local cleared_line_scores = { 40, 100, 300, 1200 }
|
local cleared_line_scores = { 40, 100, 300, 1200 }
|
||||||
|
|
||||||
function MarathonC89Game:getLevelForLines()
|
function MarathonC89Game:getTransitionLines()
|
||||||
if self.start_level < 10 then
|
return math.min(self.start_level * 10 + 10, math.max(100, self.start_level * 10 - 50))
|
||||||
return math.max(self.start_level, math.floor(self.lines / 10))
|
|
||||||
elseif self.start_level < 16 then
|
|
||||||
return math.max(self.start_level, self.start_level + math.floor((self.lines - 100) / 10))
|
|
||||||
else
|
|
||||||
return math.max(self.start_level, math.floor((self.lines - 60) / 10))
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function MarathonC89Game:getLevelForLines()
|
||||||
|
return self.start_level + math.max(0, math.floor(self.lines - self:getTransitionLines()) + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines)
|
function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines)
|
||||||
|
|
Loading…
Reference in New Issue