Display the current floor in the StatsDisplay

This commit is contained in:
Yohann D'ANELLO
2021-01-06 15:17:02 +01:00
parent d06a405120
commit 4cd4bc9005
3 changed files with 13 additions and 8 deletions

View File

@ -173,6 +173,7 @@ class Game:
self.maps.append(Map.load(ResourceManager.get_asset_path(
"example_map_2.txt")))
new_map = self.map
new_map.floor = self.map_index
old_map.remove_entity(self.player)
new_map.add_entity(self.player)
if move_down: