Game now keeps track of deaths, rounds, streaks and other fun stuff. You can also die finally.
This commit is contained in:
parent
a13704fe33
commit
9a012813ae
5 changed files with 100 additions and 68 deletions
|
@ -107,11 +107,20 @@ void Builder::run(const char *git_path, const char *build_cmd) {
|
|||
fileWatcher->watch();
|
||||
|
||||
if(listener->changes) {
|
||||
gui.output("############# START ############");
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
gui.output(format("CHANGES! Running build {}", build_cmd));
|
||||
run_build(game, build_cmd);
|
||||
|
||||
if(game.is_dead()) {
|
||||
gui.output("!!!! YOU DIED! !!!! Learn to code luser.");
|
||||
game.reset();
|
||||
}
|
||||
|
||||
listener->reset_state();
|
||||
gui.output("^^^^^^^^^^^ END ^^^^^^^^^^^");
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue