2016-03-04 15:29:31 +00:00
|
|
|
#include "ball.hpp"
|
2016-03-10 20:58:30 +00:00
|
|
|
#include "block.hpp"
|
2016-03-04 15:29:31 +00:00
|
|
|
#include "engine.hpp"
|
2016-03-14 20:20:40 +00:00
|
|
|
#include "constants.hpp"
|
2016-03-10 20:58:30 +00:00
|
|
|
#include <iostream>
|
2016-03-04 15:29:31 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
Engine engine;
|
2016-03-10 20:58:30 +00:00
|
|
|
|
2016-03-15 20:59:30 +00:00
|
|
|
Ball ball(3 * Constants::GRID, 1 * Constants::GRID);
|
|
|
|
Block block1(3 * Constants::GRID, 6 * Constants::GRID);
|
2016-03-14 20:20:40 +00:00
|
|
|
Block block2(3 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block3(4 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block4(5 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block5(6 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block6(7 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block7(8 * Constants::GRID, 7 * Constants::GRID);
|
|
|
|
Block block8(9 * Constants::GRID, 7 * Constants::GRID);
|
2016-03-15 20:59:30 +00:00
|
|
|
Block block9(9 * Constants::GRID, 6 * Constants::GRID);
|
2016-03-04 15:29:31 +00:00
|
|
|
|
2016-03-15 20:59:30 +00:00
|
|
|
ball.setCharge(-2.f);
|
2016-03-14 20:43:27 +00:00
|
|
|
block5.setCharge(16.f);
|
2016-03-11 15:14:34 +00:00
|
|
|
|
2016-03-12 18:45:16 +00:00
|
|
|
engine.addObject(block1);
|
|
|
|
engine.addObject(block2);
|
|
|
|
engine.addObject(block3);
|
|
|
|
engine.addObject(block4);
|
|
|
|
engine.addObject(block5);
|
2016-03-12 22:15:03 +00:00
|
|
|
engine.addObject(block6);
|
|
|
|
engine.addObject(block7);
|
|
|
|
engine.addObject(block8);
|
|
|
|
engine.addObject(block9);
|
2016-03-15 20:59:30 +00:00
|
|
|
engine.addObject(ball);
|
2016-03-10 20:58:30 +00:00
|
|
|
|
|
|
|
engine.start();
|
2016-03-04 15:29:31 +00:00
|
|
|
return 0;
|
|
|
|
}
|