Update game2
parent
2b09f7d005
commit
b3b5c6e7dc
2
game2
2
game2
|
@ -201,7 +201,7 @@ class FallingObject:
|
||||||
surface.blit(self.image, (self.x, self.y))
|
surface.blit(self.image, (self.x, self.y))
|
||||||
|
|
||||||
# Main game loop
|
# Main game loop
|
||||||
while not game_over:
|
while not game_over and not winning:
|
||||||
for event in pygame.event.get():
|
for event in pygame.event.get():
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
|
|
Loading…
Reference in New Issue