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.
28 lines
492 B
28 lines
492 B
#include "builder.hpp"
|
|
#include "gui.hpp"
|
|
#include <fmt/core.h>
|
|
#include "sound.hpp"
|
|
#include "textures.hpp"
|
|
|
|
int main()
|
|
{
|
|
sound::init();
|
|
textures::init();
|
|
|
|
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();
|
|
backend.window.display();
|
|
}
|
|
|
|
builder.event(BuildEvent::QUIT);
|
|
backend.shutdown();
|
|
return 0;
|
|
}
|
|
|