Fixed game <-> display interaction (the game prints correctly \o/ )

This commit is contained in:
eichhornchen 2020-11-10 10:57:27 +01:00
parent 002de68a0a
commit cb33d97cb7
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ class StatsDisplay():
player: Player player: Player
def __init__(self, height: int, width: int, def __init__(self, height: int, width: int,
topleftx: int, toplefty: int): toplefty: int, topleftx: int):
self.width = width self.width = width
self.height = height self.height = height
self.topleftx = topleftx self.topleftx = topleftx

View File

@ -109,7 +109,7 @@ class Game:
self.handle_key_pressed_main_menu(key) self.handle_key_pressed_main_menu(key)
elif self.state == GameMode.SETTINGS: elif self.state == GameMode.SETTINGS:
self.handle_key_pressed_settings(key) self.handle_key_pressed_settings(key)
self.display.refresh() self.display.refresh(self.map, self.player)
def handle_key_pressed_play(self, key: KeyValues) -> None: def handle_key_pressed_play(self, key: KeyValues) -> None:
""" """