Changed Tiles to take into account the texturepack
This commit is contained in:
parent
4a54609bad
commit
a6b93cacfb
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
from dungeonbattle.settings import Settings
|
||||||
|
import dungeonbattle.texturepack as tp
|
||||||
|
|
||||||
class Map:
|
class Map:
|
||||||
"""
|
"""
|
||||||
|
@ -53,9 +54,14 @@ class Map:
|
||||||
|
|
||||||
|
|
||||||
class Tile(Enum):
|
class Tile(Enum):
|
||||||
EMPTY = ' '
|
if self.settings.TEXTURE_PACK == 'ASCII'
|
||||||
WALL = '█'
|
self.textures = tp.ascii_textures
|
||||||
FLOOR = '.'
|
if self.settings.TEXTURE_PACK == 'SQUIRREL'
|
||||||
|
self.textures = tp.squirrel_textures
|
||||||
|
|
||||||
|
EMPTY = self.textures["EMPTY"]
|
||||||
|
WALL = self.textures["WALL"]
|
||||||
|
FLOOR = self.textures["FLOOR"]
|
||||||
|
|
||||||
def is_wall(self) -> bool:
|
def is_wall(self) -> bool:
|
||||||
return self == Tile.WALL
|
return self == Tile.WALL
|
||||||
|
|
Loading…
Reference in New Issue