alles finito
This commit is contained in:
1 parent
a3d0432752
commit
0ae48588fb
5 files changed
+219
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user