From 5a49e3474f8d24f163e4535c0fe12fa6da14bf43 Mon Sep 17 00:00:00 2001 From: David Raison Date: Sat, 30 Aug 2014 23:34:52 +0200 Subject: [PATCH] ah, dunno --- avocado.py | 5 +++-- game.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/avocado.py b/avocado.py index ad9f36c..f4a4d5d 100644 --- a/avocado.py +++ b/avocado.py @@ -31,8 +31,9 @@ class Avocado: # Set the avocado's initial position and velocity self.init_pos() - self.vx = 10 - self.vy = 10 + self.vx = 2 + self.vy = 4 + self.is_falling = True self.has_been_pinned = False diff --git a/game.py b/game.py index bd548c4..9d0f227 100755 --- a/game.py +++ b/game.py @@ -69,6 +69,7 @@ class TheGame: self.click = pygame.mixer.Sound("audio/click.wav") return self.click + def gameOver(self,screen,gameOverImage): screen.blit(pygame.transform.scale(gameOverImage, (800, 600)), (0, 0)) pygame.display.flip() @@ -79,7 +80,7 @@ class TheGame: clock = pygame.time.Clock() size = (800, 600) bg = pygame.image.load("img/background.png") - desired_fps = 15 + desired_fps = 60 multiplier = 3 score = 0 time = timeleft = 30