Pas de suivi des fichiers compilés

This commit is contained in:
Mattéo Delabre 2016-03-10 21:58:30 +01:00
parent 11ecc85ea2
commit 284fb422a1
9 changed files with 13 additions and 1 deletions

0
.gitignore vendored Normal file
View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
build/ptf

Binary file not shown.

View File

@ -1,12 +1,24 @@
#include "ball.hpp"
#include "block.hpp"
#include "engine.hpp"
#include <iostream>
int main() {
Engine engine;
Ball ball(0, 0);
std::vector<Block> blocks;
engine.addObject(&ball);
engine.start();
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();
return 0;
}