Add possibility to define the background color of entities (black in ASCII, white in Unicode)

This commit is contained in:
Yohann D'ANELLO
2020-11-10 22:34:12 +01:00
parent a8223aab2e
commit d26b66f337
3 changed files with 19 additions and 1 deletions

View File

@ -88,6 +88,13 @@ class Map:
hedgehog.move(y, x)
self.add_entity(hedgehog)
def tick(self) -> None:
"""
Trigger all entity events.
"""
for entity in self.entities:
entity.act(self)
class Tile(Enum):
EMPTY = auto()