From 843748213930c60f4843f0ac37e6586917bf9ff8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 23 Oct 2020 15:40:32 +0200 Subject: [PATCH] Clear screen before redrawing --- dungeonbattle/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dungeonbattle/game.py b/dungeonbattle/game.py index a82c2b0..9efd63f 100644 --- a/dungeonbattle/game.py +++ b/dungeonbattle/game.py @@ -19,10 +19,10 @@ class Game: player.y = 1 player.x = 6 d = MapDisplay(m, player) - screen.refresh() while True: - d.display(player.getPosY(), player.getPosX()) + screen.clear() screen.refresh() + d.display(player.getPosY(), player.getPosX()) key = screen.getkey() self.handle_key_pressed(key)