Correction du style de code

This commit is contained in:
Mattéo Delabre 2016-03-12 14:15:27 +01:00
parent c2a5edf257
commit 2e3d5d7aac
4 changed files with 12 additions and 16 deletions

View File

@ -1,12 +1,11 @@
#include "ball.hpp"
void Ball::draw(sf::RenderWindow& window) {
//chargement de la texture de test
if (!texture.loadFromFile("./Images/texture_test.jpeg"))
{
//erreur
// chargement de la texture de test
if (!texture.loadFromFile("./Images/texture_test.jpeg")) {
// erreur
}
shape.setTexture(&texture);
shape.setPosition(position);

View File

@ -1,12 +1,11 @@
#include "block.hpp"
void Block::draw(sf::RenderWindow& window) {
//chargement de la texture de test
if (!texture.loadFromFile("./Images/texture_test.jpeg"))
{
//erreur
// chargement de la texture de test
if (!texture.loadFromFile("./Images/texture_test.jpeg")) {
// erreur
}
shape.setTexture(&texture);
if (charge > 0) {
@ -19,8 +18,6 @@ void Block::draw(sf::RenderWindow& window) {
shape.setPosition(position);
window.draw(shape);
}
void Block::update(State state) {