Make the game engine use a start/end round and do healing if you don't make any mistakes.

This commit is contained in:
Zed A. Shaw 2024-08-21 18:44:32 -04:00
parent e35536c7e3
commit c52bc8fafd
4 changed files with 25 additions and 8 deletions

View file

@ -76,6 +76,9 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> runner) {
while (!loop.HasQuitted()) {
int run_error = runner();
if(run_error != 0) output("RUNNER ERROR!!!! CATASTROPHIC!!!");
loop.RunOnce();
screen.Post(Event::Custom);
std::this_thread::sleep_for(std::chrono::milliseconds(10));