ah, dunno
parent
97b59f5218
commit
5a49e3474f
|
@ -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
|
||||
|
||||
|
|
3
game.py
3
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
|
||||
|
|
Loading…
Reference in New Issue