Monsters are hedgehogs 🦔
This commit is contained in:
@@ -15,6 +15,9 @@ class TexturePack:
|
||||
self.__dict__.update(**kwargs)
|
||||
TexturePack._packs[name] = self
|
||||
|
||||
def __getitem__(self, item):
|
||||
return self.__dict__[item]
|
||||
|
||||
@classmethod
|
||||
def get_pack(cls, name: str) -> "TexturePack":
|
||||
return cls._packs[name.lower()]
|
||||
@@ -26,6 +29,7 @@ TexturePack.ASCII_PACK = TexturePack(
|
||||
WALL='#',
|
||||
FLOOR='.',
|
||||
PLAYER='@',
|
||||
HEDGEHOG='*',
|
||||
)
|
||||
|
||||
TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
@@ -34,4 +38,5 @@ TexturePack.SQUIRREL_PACK = TexturePack(
|
||||
WALL='█',
|
||||
FLOOR='.',
|
||||
PLAYER='🐿️',
|
||||
HEDGEHOG='🦔',
|
||||
)
|
||||
|
Reference in New Issue
Block a user