Opencode gesagt er soll die Docstrings und Type hints noch ergänzen
This commit is contained in:
1 parent
a8901dae2f
commit
cb85e8b86c
4 files changed
+13
-14
No files matched your search
@@ -75,9 +75,7 @@ class Game:
|
||||
Returns:
|
||||
``False`` bei ``pygame.QUIT``, sonst ``True``.
|
||||
"""
|
||||
if event.type == pygame.QUIT:
|
||||
return False
|
||||
return True
|
||||
return event.type != pygame.QUIT
|
||||
|
||||
def update_game(self) -> bool:
|
||||
"""Aktualisiert den Spielzustand um einen Frame.
|
||||
@@ -95,4 +93,4 @@ class Game:
|
||||
"""Startet das Spiel: Initialisierung, Hauptschleife, Beenden."""
|
||||
self.init_game()
|
||||
self.game_loop()
|
||||
self.exit_game()
|
||||
self.exit_game()
|
||||
Reference in new issue
Block a user