Ajout de la rotation de la balle
This commit is contained in:
parent
939fa0dedf
commit
a7f0043312
|
@ -63,6 +63,7 @@ void Ball::draw(sf::RenderWindow& window) {
|
||||||
// erreur
|
// erreur
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shape.rotate(getVelocity().x * .1f);
|
||||||
shape.setTexture(&texture);
|
shape.setTexture(&texture);
|
||||||
shape.setPosition(getPosition());
|
shape.setPosition(getPosition());
|
||||||
window.draw(shape);
|
window.draw(shape);
|
||||||
|
|
Loading…
Reference in New Issue