MàJ du main

This commit is contained in:
Mattéo Delabre 2016-03-11 15:17:08 +01:00
parent a5e36368e0
commit fde30aa85f
1 changed files with 7 additions and 4 deletions

View File

@ -7,10 +7,13 @@ int main() {
Engine engine;
Ball ball(0, 0);
Block block1(0, 3);
Block block2(1, 3);
Block block3(2, 3);
Block block4(3, 3);
Block block1(0 * Block::GRID, 3 * Block::GRID);
Block block2(1 * Block::GRID, 3 * Block::GRID);
Block block3(2 * Block::GRID, 3 * Block::GRID);
Block block4(3 * Block::GRID, 3 * Block::GRID);
ball.setCharge(100);
block4.setCharge(-100);
engine.addObject(&ball);
engine.addObject(&block1);