From 0a2edb4aa689259ede06d6fe337438f3bd259e4b Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 2 Jan 2023 18:25:18 -0600 Subject: [PATCH] add keys --- game.py | 1 + 1 file changed, 1 insertion(+) diff --git a/game.py b/game.py index 38d9051..d529a1b 100755 --- a/game.py +++ b/game.py @@ -29,6 +29,7 @@ class Game: self.events = pygame.event.get() self.should_quit() self.reset_screen() + self.keys = pygame.key.get_pressed() self.game() for surf in self.surfs: pygame.blit(surf)