From cb33d97cb770e42669c2363b287e928a77a38919 Mon Sep 17 00:00:00 2001 From: eichhornchen Date: Tue, 10 Nov 2020 10:57:27 +0100 Subject: [PATCH] Fixed game <-> display interaction (the game prints correctly \o/ ) --- dungeonbattle/display/statsdisplay.py | 2 +- dungeonbattle/game.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeonbattle/display/statsdisplay.py b/dungeonbattle/display/statsdisplay.py index 26d0315..a107749 100644 --- a/dungeonbattle/display/statsdisplay.py +++ b/dungeonbattle/display/statsdisplay.py @@ -8,7 +8,7 @@ class StatsDisplay(): player: Player def __init__(self, height: int, width: int, - topleftx: int, toplefty: int): + toplefty: int, topleftx: int): self.width = width self.height = height self.topleftx = topleftx diff --git a/dungeonbattle/game.py b/dungeonbattle/game.py index 3af8e63..8529431 100644 --- a/dungeonbattle/game.py +++ b/dungeonbattle/game.py @@ -109,7 +109,7 @@ class Game: self.handle_key_pressed_main_menu(key) elif self.state == GameMode.SETTINGS: 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: """