Player movement now costs stamina

This commit is contained in:
Marcin Kostrzewski 2020-04-05 21:59:40 +02:00
parent f4e2799009
commit a0bbee30d1

View File

@ -14,6 +14,7 @@ class Player(Entity):
# Move in a desired direction
def move(self, rotation):
self.statistics.stamina -= 1
if rotation.value == Rotations.NORTH.value:
self.rect.y -= self.rect.w
elif rotation.value == Rotations.EAST.value: