Correction de l'affichage des blocs (forme carrée au lieu de cercle)
This commit is contained in:
parent
2455c2f845
commit
52ae4c26b3
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
class Block : public Object {
|
class Block : public Object {
|
||||||
protected:
|
protected:
|
||||||
sf::CircleShape shape;
|
sf::RectangleShape shape;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Block(float x, float y) : Object(x,y), shape(80,4) {
|
Block(float x, float y) : Object(x,y), shape(sf::Vector2f(32, 32)) {
|
||||||
shape.setFillColor(sf::Color(0, 0, 0));
|
shape.setFillColor(sf::Color(0, 0, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue