Correction de l'affichage des blocs (forme carrée au lieu de cercle)

This commit is contained in:
Mattéo Delabre 2016-03-10 22:48:13 +01:00
parent 2455c2f845
commit 52ae4c26b3
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@
class Block : public Object {
protected:
sf::CircleShape shape;
sf::RectangleShape shape;
public:
Block(float x, float y) : Object(x,y), shape(80,4) {
shape.setFillColor(sf::Color(0,0,0));
Block(float x, float y) : Object(x,y), shape(sf::Vector2f(32, 32)) {
shape.setFillColor(sf::Color(0, 0, 0));
}
// utilise le constructeur de Object