alles finito

This commit is contained in:
kreischeran103444 committed 2026-11-05 13:33:23 +01:00
1 parent a3d0432752
commit 0ae48588fb
5 files changed
+219

No files matched your search

+4
View File
@@ -24,6 +24,7 @@ class Game:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
self.handle_event(event)
if running:
running = self.update_game()
self.draw_game()
@@ -31,6 +32,9 @@ class Game:
self.clock.tick(self.fps)
pygame.quit()
def handle_event(self, event) -> None:
pass
def update_game(self) -> bool:
raise NotImplementedError