From e448697e6b2521c322daf91abbfaf19383ed7b3b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 16 Oct 2020 14:23:11 +0200 Subject: [PATCH] Replace the dot cursor after the player moved, not before --- dungeonbattle/player_move_essai2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeonbattle/player_move_essai2.py b/dungeonbattle/player_move_essai2.py index bf56764..6d4d73a 100644 --- a/dungeonbattle/player_move_essai2.py +++ b/dungeonbattle/player_move_essai2.py @@ -24,8 +24,8 @@ def main(stdscr): stdscr.refresh() for i in range(10) : - stdscr.addstr(cur[0],cur[1],'.') key = stdscr.getkey() + stdscr.addstr(cur[0],cur[1],'.') if key == 'z' : if cur[0]>0 and M[cur[0]-1][cur[1]] != '#' : cur[0] = cur[0]-1