diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-02 23:05:44 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-02 23:05:44 +0200 |
| commit | 710cc4001f65ac2fee39e25d79f43a01b9e12512 (patch) | |
| tree | 2e78e337b0c7d0f79bd68205badc1630326118ed /src/main.cpp | |
| parent | fec126f0d2d48310109f85c3647b10ce393db5e8 (diff) | |
| parent | 1d09a0fd3ae35ccf51a3b5f929f77a8c8850712c (diff) | |
First stable fusionning
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0d3b950..49c7a20 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,25 +1,30 @@ -#include <SFML/Graphics.hpp> +//----- STD include ----- +#include <iostream> #include <string> +#include <time.h> +#include <tuple> +//---------------------- +//----- Personnal include ----- +#include "./Controllers/ConsoleController/ConsoleController.hpp" +//----------------------------- + + + + + +//----- Start ----- int main() { - sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); - sf::CircleShape shape(100.f); - shape.setFillColor(sf::Color::Green); - - while (window.isOpen()) - { - sf::Event event; - while (window.pollEvent(event)) - { - if (event.type == sf::Event::Closed) - window.close(); - } - - window.clear(); - window.draw(shape); - window.display(); - } - - return 0; + //Init random + srand(time(NULL)); + + //Init controller + ConsoleController controller; + + //Run the game + controller.run(); + + + return 0; } |
