Update game2

main
Anna Marija Redžepova 2024-03-03 16:55:53 +00:00
parent 2b09f7d005
commit b3b5c6e7dc
1 changed files with 1 additions and 1 deletions

2
game2
View File

@ -201,7 +201,7 @@ class FallingObject:
surface.blit(self.image, (self.x, self.y))
# Main game loop
while not game_over:
while not game_over and not winning:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()