Add possibility to define the background color of entities (black in ASCII, white in Unicode)
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user