add keys
This commit is contained in:
parent
f4b483f5bf
commit
0a2edb4aa6
1 changed files with 1 additions and 0 deletions
1
game.py
1
game.py
|
|
@ -29,6 +29,7 @@ class Game:
|
||||||
self.events = pygame.event.get()
|
self.events = pygame.event.get()
|
||||||
self.should_quit()
|
self.should_quit()
|
||||||
self.reset_screen()
|
self.reset_screen()
|
||||||
|
self.keys = pygame.key.get_pressed()
|
||||||
self.game()
|
self.game()
|
||||||
for surf in self.surfs:
|
for surf in self.surfs:
|
||||||
pygame.blit(surf)
|
pygame.blit(surf)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue