18 lines
537 B
Python
Raw Normal View History

2020-11-06 15:34:24 +01:00
import curses
from .mapdisplay import MapDisplay
2020-11-06 17:43:30 +01:00
from .texturepack import TexturePack
2020-11-06 15:34:24 +01:00
class Display:
def __init__(self, game, screen):
self.screen = screen
self.game = game
2020-11-06 17:43:30 +01:00
self.mapDisplay = MapDisplay(game.m,
TexturePack.get_pack(
game.settings.TEXTURE_PACK),
curses.LINES,
curses.COLS * 4 // 5)
2020-11-06 15:34:24 +01:00
def refresh(self):
2020-11-06 16:10:46 +01:00
self.mapDisplay.refresh()