From e8193af1c9475ca52e9b9c1a8060f1ca52db47b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Thu, 10 Mar 2016 22:16:07 +0100 Subject: [PATCH] Ajout de la fonction Block::draw --- block.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block.cpp b/block.cpp index 9a94310..789653d 100644 --- a/block.cpp +++ b/block.cpp @@ -1,7 +1,8 @@ #include "block.hpp" void Block::draw(sf::RenderWindow& window) { - // TODO: implémenter cette fonction + shape.setPosition(position * 32.f); + window.draw(shape); } void Block::update(State state) {