Clear screen before redrawing
This commit is contained in:
parent
d264bb45cf
commit
8437482139
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue