diff --git a/src/entities/Player.py b/src/entities/Player.py index f654149..e69c3f2 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -28,8 +28,13 @@ class Player(Entity): def getFacingCoord(self): if self.rotation == Rotations.NORTH: - return (0, -1) + return self.rect.x, self.rect.y - (self.rect.h) elif self.rotation == Rotations.SOUTH: + return self.rect.x, self.rect.y + (self.rect.h) + elif self.rotation == Rotations.EAST: + return self.rect.x + (self.rect.h), self.rect.y + elif self.rotation == Rotations.WEST: + return self.rect.x - (self.rect.h), self.rect.y # Returns given statistic def getStatistic(self, stat):