Clear screen before redrawing
This commit is contained in:
parent
d264bb45cf
commit
8437482139
|
@ -19,10 +19,10 @@ class Game:
|
||||||
player.y = 1
|
player.y = 1
|
||||||
player.x = 6
|
player.x = 6
|
||||||
d = MapDisplay(m, player)
|
d = MapDisplay(m, player)
|
||||||
screen.refresh()
|
|
||||||
while True:
|
while True:
|
||||||
d.display(player.getPosY(), player.getPosX())
|
screen.clear()
|
||||||
screen.refresh()
|
screen.refresh()
|
||||||
|
d.display(player.getPosY(), player.getPosX())
|
||||||
key = screen.getkey()
|
key = screen.getkey()
|
||||||
self.handle_key_pressed(key)
|
self.handle_key_pressed(key)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue