Fixed NES transitions, once and for all

pull/3/head
Ishaan Bhardwaj 2020-11-19 12:15:06 -05:00 committed by GitHub
parent 5e0e36fc5c
commit 9df0501cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ function MarathonC89Game:getTransitionLines()
end end
function MarathonC89Game:getLevelForLines() function MarathonC89Game:getLevelForLines()
return self.start_level + math.max(0, math.floor(self.lines - self:getTransitionLines()) + 1) return self.start_level + math.max(0, math.floor((self.lines - self:getTransitionLines()) / 10) + 1)
end end
function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines) function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines)