Ajout de la fonction Block::draw
This commit is contained in:
parent
84ba1aa821
commit
e8193af1c9
|
@ -1,7 +1,8 @@
|
||||||
#include "block.hpp"
|
#include "block.hpp"
|
||||||
|
|
||||||
void Block::draw(sf::RenderWindow& window) {
|
void Block::draw(sf::RenderWindow& window) {
|
||||||
// TODO: implémenter cette fonction
|
shape.setPosition(position * 32.f);
|
||||||
|
window.draw(shape);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Block::update(State state) {
|
void Block::update(State state) {
|
||||||
|
|
Loading…
Reference in New Issue