Use map display
This commit is contained in:
@@ -9,8 +9,7 @@ class MapDisplay:
|
||||
self.pad = curses.newpad(m.height, m.width+1)
|
||||
|
||||
def update_pad(self):
|
||||
for i in range(self.map.height):
|
||||
self.pad.addstr(i, 0, self.map.tiles[i])
|
||||
self.pad.addstr(0, 0, self.map.draw_string())
|
||||
for e in self.map.entities:
|
||||
self.pad.addch(e.y, e.x, e.img)
|
||||
|
||||
|
Reference in New Issue
Block a user