Swapped the intervals for upward and downward movement
This commit is contained in:
parent
fbe3bbd55e
commit
ea818914bc
4
main.cpp
4
main.cpp
@ -108,12 +108,12 @@ void updateTimer(int time)
|
|||||||
|
|
||||||
if(sf::Keyboard::isKeyPressed(sf::Keyboard::LShift))
|
if(sf::Keyboard::isKeyPressed(sf::Keyboard::LShift))
|
||||||
{
|
{
|
||||||
playerY += .8;
|
playerY -= .8;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(sf::Keyboard::isKeyPressed(sf::Keyboard::Space))
|
else if(sf::Keyboard::isKeyPressed(sf::Keyboard::Space))
|
||||||
{
|
{
|
||||||
playerY -= .8;
|
playerY += .8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rotation
|
// Rotation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user