Ajout de blocs pour tester
This commit is contained in:
parent
213e423307
commit
84ba1aa821
17
main.cpp
17
main.cpp
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue