Texture packs are working

This commit is contained in:
Yohann D'ANELLO
2020-11-06 17:43:30 +01:00
parent 4115363b74
commit f9dcc8f1c1
6 changed files with 61 additions and 38 deletions

View File

@ -1,11 +1,17 @@
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, game.settings, curses.LINES, curses.COLS * 4/5)
self.mapDisplay = MapDisplay(game.m,
TexturePack.get_pack(
game.settings.TEXTURE_PACK),
curses.LINES,
curses.COLS * 4 // 5)
def refresh(self):
self.mapDisplay.refresh()