Add updating time in top left corner

This commit is contained in:
Michał Czekański 2020-04-05 23:57:53 +02:00
parent 0add2066e2
commit 4985794b44

View File

@ -21,6 +21,8 @@ class EventManager:
def handleEvents(self): def handleEvents(self):
pygame.event.pump() pygame.event.pump()
self.game.screen.ui.timerTextView.changeText(self.game.ingameTimer.getPrettyTime())
keys = pygame.key.get_pressed() keys = pygame.key.get_pressed()
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == pygame.QUIT: if event.type == pygame.QUIT: