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; Engine engine;
Ball ball(0, 0); 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); engine.addObject(&ball);
engine.addObject(&block1);
for (int i = 0; i < 10; i++) { engine.addObject(&block2);
Block block(i, 5); engine.addObject(&block3);
std::cout << "Pos: " << block.getPosition().x << " x " << block.getPosition().y << std::endl; engine.addObject(&block4);
blocks.push_back(block);
engine.addObject(&block);
}
engine.start(); engine.start();
return 0; return 0;