Pas de suivi des fichiers compilés
This commit is contained in:
parent
11ecc85ea2
commit
284fb422a1
BIN
build/ball.o
BIN
build/ball.o
Binary file not shown.
BIN
build/block.o
BIN
build/block.o
Binary file not shown.
BIN
build/engine.o
BIN
build/engine.o
Binary file not shown.
BIN
build/main.o
BIN
build/main.o
Binary file not shown.
BIN
build/object.o
BIN
build/object.o
Binary file not shown.
Binary file not shown.
14
main.cpp
14
main.cpp
|
@ -1,12 +1,24 @@
|
||||||
#include "ball.hpp"
|
#include "ball.hpp"
|
||||||
|
#include "block.hpp"
|
||||||
#include "engine.hpp"
|
#include "engine.hpp"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
Engine engine;
|
Engine engine;
|
||||||
|
|
||||||
Ball ball(0, 0);
|
Ball ball(0, 0);
|
||||||
|
std::vector<Block> blocks;
|
||||||
|
|
||||||
engine.addObject(&ball);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue