Player movement now costs stamina
This commit is contained in:
parent
f4e2799009
commit
a0bbee30d1
@ -14,6 +14,7 @@ class Player(Entity):
|
|||||||
|
|
||||||
# Move in a desired direction
|
# Move in a desired direction
|
||||||
def move(self, rotation):
|
def move(self, rotation):
|
||||||
|
self.statistics.stamina -= 1
|
||||||
if rotation.value == Rotations.NORTH.value:
|
if rotation.value == Rotations.NORTH.value:
|
||||||
self.rect.y -= self.rect.w
|
self.rect.y -= self.rect.w
|
||||||
elif rotation.value == Rotations.EAST.value:
|
elif rotation.value == Rotations.EAST.value:
|
||||||
|
Loading…
Reference in New Issue
Block a user