Fixed filename

This commit is contained in:
Marcin Kostrzewski 2020-04-05 23:53:15 +02:00
parent 46e2b601f4
commit 7d5c07c598

View File

@ -24,6 +24,11 @@ class Player(Entity):
elif rotation.value == Rotations.WEST.value: elif rotation.value == Rotations.WEST.value:
self.rect.x -= self.rect.w 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 # Returns given statistic
def getStatistic(self, stat): def getStatistic(self, stat):
if stat.value == StatisticNames.HP: if stat.value == StatisticNames.HP: