Tiles can have multiple width according to the used texture pack for a better support of unicode
This commit is contained in:
@@ -2,6 +2,7 @@ class TexturePack:
|
||||
_packs = dict()
|
||||
|
||||
name: str
|
||||
tile_width: int
|
||||
EMPTY: str
|
||||
WALL: str
|
||||
FLOOR: str
|
||||
@@ -25,6 +26,7 @@ class TexturePack:
|
||||
|
||||
TexturePack.ASCII_PACK = TexturePack(
|
||||
name="ascii",
|
||||
tile_width=1,
|
||||
EMPTY=' ',
|
||||
WALL='#',
|
||||
FLOOR='.',
|
||||
@@ -34,9 +36,10 @@ TexturePack.ASCII_PACK = TexturePack(
|
||||
|
||||
TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
name="squirrel",
|
||||
EMPTY=' ',
|
||||
WALL='█',
|
||||
FLOOR='.',
|
||||
PLAYER='🐿️',
|
||||
HEDGEHOG='🦔',
|
||||
tile_width=2,
|
||||
EMPTY=' ',
|
||||
WALL='██',
|
||||
FLOOR='..',
|
||||
PLAYER='🐿️ ',
|
||||
HEDGEHOG='🦔 ',
|
||||
)
|
||||
|
Reference in New Issue
Block a user