From 7d5c07c598b221f030a0dd31252797726065ac67 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 5 Apr 2020 23:53:15 +0200 Subject: [PATCH] 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: