From f740cd644109ac30d7d9ebb16d318db9533fabd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Sun, 13 Mar 2016 13:27:00 +0100 Subject: [PATCH] =?UTF-8?q?Un=20test=20un=20peu=20plus=20int=C3=A9ressant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fcf0c58..f90efbc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,8 +6,8 @@ int main() { Engine engine; - Ball ball1(3 * Block::GRID, 1 * Block::GRID); - Ball ball2(5 * Block::GRID, 1 * Block::GRID); + Ball ball1(5 * Block::GRID, 1 * Block::GRID); + Ball ball2(7 * Block::GRID, 1 * Block::GRID); Block block1(2 * Block::GRID, 7 * Block::GRID); Block block2(3 * Block::GRID, 7 * Block::GRID); @@ -19,10 +19,9 @@ int main() { Block block8(9 * Block::GRID, 7 * Block::GRID); Block block9(10 * Block::GRID, 7 * Block::GRID); - ball1.setCharge(2); + ball1.setCharge(-2); ball2.setCharge(-2); - block3.setCharge(10); - block9.setCharge(-10); + block5.setCharge(16); engine.addObject(ball1); engine.addObject(ball2);