squirrel-battle/dungeonbattle/display/display.py

18 lines
537 B
Python

import curses
from .mapdisplay import MapDisplay
from .texturepack import TexturePack
class Display:
def __init__(self, game, screen):
self.screen = screen
self.game = game
self.mapDisplay = MapDisplay(game.m,
TexturePack.get_pack(
game.settings.TEXTURE_PACK),
curses.LINES,
curses.COLS * 4 // 5)
def refresh(self):
self.mapDisplay.refresh()