diff --git a/src/ball.cpp b/src/ball.cpp index 1bd2b15..a2a17a3 100644 --- a/src/ball.cpp +++ b/src/ball.cpp @@ -63,6 +63,7 @@ void Ball::draw(sf::RenderWindow& window) { // erreur } + shape.rotate(getVelocity().x * .1f); shape.setTexture(&texture); shape.setPosition(getPosition()); window.draw(shape);