From d5c9f5f8013448ea09ee00d662338965721c6c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 26 Apr 2020 14:09:35 +0200 Subject: [PATCH] Fix player rotation --- src/entities/Player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/Player.py b/src/entities/Player.py index 12906e7..662617c 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -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):