Ah.. stuff
parent
0bbda0fd42
commit
dcf74de266
4
game.py
4
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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue