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-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-09 19:01:50 +00:00
|
|
|
Ball ball(0, 0);
|
2016-03-10 20:58:30 +00:00
|
|
|
std::vector<Block> blocks;
|
2016-03-04 15:29:31 +00:00
|
|
|
|
2016-03-09 18:35:50 +00:00
|
|
|
engine.addObject(&ball);
|
2016-03-04 15:29:31 +00:00
|
|
|
|
2016-03-10 20:58:30 +00:00
|
|
|
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.start();
|
2016-03-04 15:29:31 +00:00
|
|
|
return 0;
|
|
|
|
}
|