Merge remote-tracking branch 'origin/passingEvents' into passingEvents
This commit is contained in:
commit
b56269888c
@ -26,6 +26,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:
|
||||||
|
@ -50,7 +50,7 @@ class Map:
|
|||||||
entity["effect"]["thirst"],
|
entity["effect"]["thirst"],
|
||||||
entity["effect"]["stamina"])))
|
entity["effect"]["stamina"])))
|
||||||
else:
|
else:
|
||||||
actualEntities.append(Entity(entity["name"],
|
actualEntities.append(Entity(entity["name"] + ".jpg",
|
||||||
self.tileSize,
|
self.tileSize,
|
||||||
(entity["position"]["x"] * self.tileSize, entity["position"]["y"] * self.tileSize)))
|
(entity["position"]["x"] * self.tileSize, entity["position"]["y"] * self.tileSize)))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user