diff --git a/src/entities/Player.py b/src/entities/Player.py index 9a3a2d7..f654149 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -26,6 +26,11 @@ class Player(Entity): elif rotation.value == Rotations.WEST.value: self.rect.x -= self.rect.w + def getFacingCoord(self): + if self.rotation == Rotations.NORTH: + return (0, -1) + elif self.rotation == Rotations.SOUTH: + # Returns given statistic def getStatistic(self, stat): if stat.value == StatisticNames.HP: diff --git a/src/game/Map.py b/src/game/Map.py index 3cbf07f..f0fa06c 100644 --- a/src/game/Map.py +++ b/src/game/Map.py @@ -50,7 +50,7 @@ class Map: entity["effect"]["thirst"], entity["effect"]["stamina"]))) else: - actualEntities.append(Entity(entity["name"], + actualEntities.append(Entity(entity["name"] + ".jpg", self.tileSize, (entity["position"]["x"] * self.tileSize, entity["position"]["y"] * self.tileSize))) except KeyError: