Fix player rotation

This commit is contained in:
Michał Czekański 2020-04-26 14:09:35 +02:00
parent a5569f0b8f
commit d5c9f5f801

View File

@ -27,9 +27,9 @@ class Player(Entity):
# Update player's rotation
def updateRotation(self, movement):
if movement == Movement.ROTATE_L:
self.rotate(Rotations((self.rotation.value + 1) % 4))
elif movement == Movement.ROTATE_R:
self.rotate(Rotations((self.rotation.value - 1) % 4))
elif movement == Movement.ROTATE_R:
self.rotate(Rotations((self.rotation.value + 1) % 4))
# Move; movement - Enum
def move(self, movement):