|
|
|
@ -4,11 +4,19 @@ |
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]) |
|
|
|
|
{ |
|
|
|
|
GUI gui; |
|
|
|
|
GameEngine game{100}; |
|
|
|
|
GUI gui; |
|
|
|
|
GameEngine game{100}; |
|
|
|
|
auto backend = SFMLBackend(game); |
|
|
|
|
auto builder = Builder(gui, game); |
|
|
|
|
|
|
|
|
|
auto builder = Builder(gui, game); |
|
|
|
|
gui.main_loop(game, builder); |
|
|
|
|
backend.startup(); |
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
|
while(backend.is_open()) { |
|
|
|
|
builder.event(BuildEvent::GO); |
|
|
|
|
gui.main_loop(backend); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
builder.event(BuildEvent::QUIT); |
|
|
|
|
backend.shutdown(); |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|