Added logs to the layout, clear logs on new game (tests still aren't fixed)

This commit is contained in:
Nicolas Margulies
2020-11-19 12:55:06 +01:00
parent 6e71146aa2
commit 589f825765
4 changed files with 13 additions and 5 deletions

View File

@ -42,6 +42,7 @@ class Game:
# TODO generate a new map procedurally
self.map = Map.load(ResourceManager.get_asset_path("example_map_2.txt"))
self.map.logs = self.logs
self.logs.clear()
self.player = Player()
self.map.add_entity(self.player)
self.player.move(self.map.start_y, self.map.start_x)