Ah.. stuff

master
David Raison 2014-08-31 01:24:10 +02:00
parent 0bbda0fd42
commit dcf74de266
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)