From ea818914bc9888b96f8d3ef7843eedafe52e62b0 Mon Sep 17 00:00:00 2001 From: Migdyn Date: Tue, 1 Nov 2022 17:19:31 -0400 Subject: [PATCH] Swapped the intervals for upward and downward movement --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 78136eb..9e9df16 100644 --- a/main.cpp +++ b/main.cpp @@ -108,12 +108,12 @@ void updateTimer(int time) if(sf::Keyboard::isKeyPressed(sf::Keyboard::LShift)) { - playerY += .8; + playerY -= .8; } else if(sf::Keyboard::isKeyPressed(sf::Keyboard::Space)) { - playerY -= .8; + playerY += .8; } // Rotation