Dritter Stand: compute.py
This commit is contained in:
1 parent
ed3f3fdfd3
commit
eb6225d194
4 files changed
+70
-10
No files matched your search
+2
-3
@@ -75,9 +75,8 @@ 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.
|
||||
|
||||
Reference in new issue
Block a user