From 7d5c07c598b221f030a0dd31252797726065ac67 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 23:53:15 +0200 Subject: [PATCH 1/2] Fixed filename --- src/entities/Player.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/entities/Player.py b/src/entities/Player.py index a7aba49..b84262e 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -24,6 +24,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: From 2af94a27e92137803722b6c006be5bcb0919a45e Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 23:58:03 +0200 Subject: [PATCH 2/2] Fixed filename --- src/game/Map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: