Fenster schließt jetzt richtig

This commit is contained in:
Lena committed 2026-10-28 14:24:35 +01:00
1 parent 81e8341078
commit 0fc2076efc
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ class Game:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
running = self.update_game()
running = self.update_game() and running
self.draw_game()
pygame.display.flip()
self.clock.tick(self.fps)