From 52ae4c26b3df7693d2d6597a0f03037139ea5077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Thu, 10 Mar 2016 22:48:13 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20de=20l'affichage=20des=20blocs=20(?= =?UTF-8?q?forme=20carr=C3=A9e=20au=20lieu=20de=20cercle)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- block.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block.hpp b/block.hpp index 35a2049..9fb48be 100644 --- a/block.hpp +++ b/block.hpp @@ -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