From a7f00433121656b8da05771bc4389ef8752a7ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Fri, 18 Mar 2016 18:27:24 +0100 Subject: [PATCH] Ajout de la rotation de la balle --- src/ball.cpp | 1 + 1 file changed, 1 insertion(+) 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);