Fix player rotation
This commit is contained in:
parent
a5569f0b8f
commit
d5c9f5f801
@ -27,9 +27,9 @@ class Player(Entity):
|
|||||||
# Update player's rotation
|
# Update player's rotation
|
||||||
def updateRotation(self, movement):
|
def updateRotation(self, movement):
|
||||||
if movement == Movement.ROTATE_L:
|
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))
|
self.rotate(Rotations((self.rotation.value - 1) % 4))
|
||||||
|
elif movement == Movement.ROTATE_R:
|
||||||
|
self.rotate(Rotations((self.rotation.value + 1) % 4))
|
||||||
|
|
||||||
# Move; movement - Enum
|
# Move; movement - Enum
|
||||||
def move(self, movement):
|
def move(self, movement):
|
||||||
|
Loading…
Reference in New Issue
Block a user