squirrel-battle/dungeonbattle/display/display.py

18 lines
537 B
Python
Raw Normal View History

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