Fixed game <-> display interaction (the game prints correctly \o/ )
This commit is contained in:
parent
002de68a0a
commit
cb33d97cb7
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue