Fenster schließt jetzt richtig
This commit is contained in:
1 parent
81e8341078
commit
0fc2076efc
1 file changed
+1
-1
@@ -24,7 +24,7 @@ class Game:
|
|||||||
for event in pygame.event.get():
|
for event in pygame.event.get():
|
||||||
if event.type == pygame.QUIT:
|
if event.type == pygame.QUIT:
|
||||||
running = False
|
running = False
|
||||||
running = self.update_game()
|
running = self.update_game() and running
|
||||||
self.draw_game()
|
self.draw_game()
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
self.clock.tick(self.fps)
|
self.clock.tick(self.fps)
|
||||||
|
|||||||
Reference in new issue
Block a user