diff --git a/game.py b/game.py index 29726ec..595505f 100755 --- a/game.py +++ b/game.py @@ -136,12 +136,12 @@ class TheGame: self.drawBackground() # Next level? - if score >= targetScore: - self.score = 0 + if (score * level) >= (targetScore * level): level += 1 levelChange = 35 timeleft = time avocados = [] + print('DEBUG :: Score: ' + str(score)) print('DEBUG :: Level ' + str(level)) self.playLevel(level) diff --git a/interface/hud.py b/interface/hud.py index fc09c48..03cc94f 100644 --- a/interface/hud.py +++ b/interface/hud.py @@ -11,7 +11,7 @@ class Hud: self.screen = screen self.screen_width, self.screen_height = screen.get_size() self.font = pygame.font.Font(None, 30) - self.hud = pygame.Surface((self.screen_width, 30)) + self.hud = pygame.Surface((self.screen_width, 25)) def draw_hud(self, score, timeleft, fps): self.hud.fill(BLACK)