Corrected bugs(some still remain)
This commit is contained in:
@ -2,20 +2,19 @@
|
||||
from typing import Any
|
||||
import curses
|
||||
|
||||
from dungeonbattle.display.display import Display
|
||||
from dungeonbattle.display.texturepack import TexturePack
|
||||
from dungeonbattle.entities.player import Player
|
||||
from dungeonbattle.interfaces import Map
|
||||
|
||||
|
||||
class MapDisplay:
|
||||
self.map: Map
|
||||
self.player: Player
|
||||
player: Player
|
||||
|
||||
def __init__(self, pack: TexturePack, height : int, width : int):
|
||||
def __init__(self, m: Map, pack: TexturePack, height : int, width : int):
|
||||
self.height = height
|
||||
self.width = width
|
||||
self.pack = pack
|
||||
self.map = m
|
||||
self.pad = curses.newpad(m.height, m.width + 1)
|
||||
|
||||
def update_pad(self) -> None:
|
||||
|
Reference in New Issue
Block a user