From 84ba1aa8219ce1fbad3c81de2e6934680a11d65d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Thu, 10 Mar 2016 22:15:56 +0100 Subject: [PATCH] Ajout de blocs pour tester --- main.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/main.cpp b/main.cpp index 7e16daf..5984451 100644 --- a/main.cpp +++ b/main.cpp @@ -7,17 +7,16 @@ int main() { Engine engine; Ball ball(0, 0); - std::vector 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;