Ajout de blocs pour tester

This commit is contained in:
Mattéo Delabre 2016-03-10 22:15:56 +01:00
parent 213e423307
commit 84ba1aa821
1 changed files with 8 additions and 9 deletions

View File

@ -7,17 +7,16 @@ int main() {
Engine engine;
Ball ball(0, 0);
std::vector<Block> blocks;
Block block1(0, 5);
Block block2(1, 5);
Block block3(2, 5);
Block block4(3, 5);
engine.addObject(&ball);
for (int i = 0; i < 10; i++) {
Block block(i, 5);
std::cout << "Pos: " << block.getPosition().x << " x " << block.getPosition().y << std::endl;
blocks.push_back(block);
engine.addObject(&block);
}
engine.addObject(&block1);
engine.addObject(&block2);
engine.addObject(&block3);
engine.addObject(&block4);
engine.start();
return 0;