#include "builder.hpp" #include "gui.hpp" #include #include "sound.hpp" #include "textures.hpp" #include "shaders.hpp" #include int main(int argc, char *argv[]) { int opt = 0; int timer_seconds = 60 * 60; while((opt = getopt(argc, argv, "-t:")) != -1) { switch(opt) { case 't': timer_seconds = atoi(optarg) * 60; fmt::println("Setting count down timer to {} seconds.", timer_seconds); break; } } sound::init(); shaders::init(); textures::init(); GameEngine game{100}; auto backend = SFMLBackend(game); GUI gui(backend, timer_seconds); auto builder = Builder(gui, game); backend.startup(); while(backend.is_open()) { builder.event(BuildEvent::GO); gui.main_loop(); backend.window.display(); } builder.event(BuildEvent::QUIT); backend.shutdown(); return 0; }