You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
401 B
22 lines
401 B
#include "builder.hpp"
|
|
#include "gui.hpp"
|
|
#include <fmt/core.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
GameEngine game{100};
|
|
auto backend = SFMLBackend(game);
|
|
GUI gui(backend);
|
|
auto builder = Builder(gui, game);
|
|
|
|
backend.startup();
|
|
|
|
while(backend.is_open()) {
|
|
builder.event(BuildEvent::GO);
|
|
gui.main_loop();
|
|
}
|
|
|
|
builder.event(BuildEvent::QUIT);
|
|
backend.shutdown();
|
|
return 1;
|
|
}
|
|
|