Use main.cpp and disable healing for now.
This commit is contained in:
parent
c47e688b0b
commit
f5f8cdba37
3 changed files with 3 additions and 2 deletions
22
main.cpp
Normal file
22
main.cpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include "builder.hpp"
|
||||
#include "gui.hpp"
|
||||
#include <fmt/core.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue