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.
23 lines
379 B
23 lines
379 B
1 year ago
|
#include "builder.hpp"
|
||
1 year ago
|
#include "gui.hpp"
|
||
1 year ago
|
#include <fmt/core.h>
|
||
|
|
||
5 months ago
|
int main()
|
||
1 year ago
|
{
|
||
1 year ago
|
GameEngine game{100};
|
||
|
auto backend = SFMLBackend(game);
|
||
12 months ago
|
GUI gui(backend);
|
||
1 year ago
|
auto builder = Builder(gui, game);
|
||
1 year ago
|
|
||
1 year ago
|
backend.startup();
|
||
1 year ago
|
|
||
1 year ago
|
while(backend.is_open()) {
|
||
|
builder.event(BuildEvent::GO);
|
||
12 months ago
|
gui.main_loop();
|
||
1 year ago
|
}
|
||
|
|
||
|
builder.event(BuildEvent::QUIT);
|
||
|
backend.shutdown();
|
||
|
return 1;
|
||
1 year ago
|
}
|