ah, dunno

master
David Raison 2014-08-30 23:34:52 +02:00
parent 97b59f5218
commit 5a49e3474f
2 changed files with 5 additions and 3 deletions

View File

@ -31,8 +31,9 @@ class Avocado:
# Set the avocado's initial position and velocity # Set the avocado's initial position and velocity
self.init_pos() self.init_pos()
self.vx = 10 self.vx = 2
self.vy = 10 self.vy = 4
self.is_falling = True self.is_falling = True
self.has_been_pinned = False self.has_been_pinned = False

View File

@ -69,6 +69,7 @@ class TheGame:
self.click = pygame.mixer.Sound("audio/click.wav") self.click = pygame.mixer.Sound("audio/click.wav")
return self.click return self.click
def gameOver(self,screen,gameOverImage): def gameOver(self,screen,gameOverImage):
screen.blit(pygame.transform.scale(gameOverImage, (800, 600)), (0, 0)) screen.blit(pygame.transform.scale(gameOverImage, (800, 600)), (0, 0))
pygame.display.flip() pygame.display.flip()
@ -79,7 +80,7 @@ class TheGame:
clock = pygame.time.Clock() clock = pygame.time.Clock()
size = (800, 600) size = (800, 600)
bg = pygame.image.load("img/background.png") bg = pygame.image.load("img/background.png")
desired_fps = 15 desired_fps = 60
multiplier = 3 multiplier = 3
score = 0 score = 0
time = timeleft = 30 time = timeleft = 30