Moar randomness
parent
1ceb6b7d5c
commit
9bcf82045a
|
@ -11,7 +11,7 @@ class Avocado:
|
|||
# We randomly decide whether we should instanciate or not
|
||||
# I'd rather just not return an instance,
|
||||
# but I don't know how to do that :(
|
||||
if random.randint(0,1) == 0:
|
||||
if random.randint(0,40) != 1:
|
||||
self.is_falling = False
|
||||
self.has_been_pinned = False
|
||||
return None
|
||||
|
|
2
game.py
2
game.py
|
@ -95,7 +95,6 @@ class TheGame:
|
|||
|
||||
# I don't know, should we move this text out of the way?
|
||||
game_over = font.render('GAME OVER', 0, RED)
|
||||
|
||||
gameOverImage = pygame.image.load("img/gameOver.png")
|
||||
|
||||
# initialize the game canvas
|
||||
|
@ -177,7 +176,6 @@ class TheGame:
|
|||
for a in self.pinned:
|
||||
a.blitme()
|
||||
|
||||
|
||||
# Catch events
|
||||
for event in pygame.event.get():
|
||||
# Collision detection
|
||||
|
|
Loading…
Reference in New Issue