Ajout de la rotation de la balle

This commit is contained in:
Mattéo Delabre 2016-03-18 18:27:24 +01:00
parent 939fa0dedf
commit a7f0043312
1 changed files with 1 additions and 0 deletions

View File

@ -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);