Reshaped the game layout using new lines and boxes

This commit is contained in:
Nicolas Margulies
2020-11-20 18:07:09 +01:00
parent 9ca6561bc3
commit ca57fae19d
4 changed files with 26 additions and 34 deletions

View File

@ -19,5 +19,5 @@ class LogsDisplay(Display):
for i in range(min(self.height, len(messages))):
self.pad.addstr(self.height - i - 1, self.x,
messages[i][:self.width])
self.pad.refresh(0, 0, self.y, self.x, self.y + self.height,
self.x + self.width)
self.pad.refresh(0, 0, self.y, self.x, self.y + self.height - 1,
self.x + self.width - 1)