A bit of a quick test for the GUI system, but not sure how to make this do more.

This commit is contained in:
Zed A. Shaw 2024-12-02 17:02:59 -05:00
parent 48df9248b2
commit c7607533ce
6 changed files with 48 additions and 7 deletions

View file

@ -252,8 +252,7 @@ void GUI::render_scene() {
$renderer.display();
}
int GUI::main() {
// $sounds.play("ambient");
int GUI::main(bool run_once) {
create_renderer();
run_systems();
@ -266,7 +265,7 @@ int GUI::main() {
}
std::this_thread::sleep_for(10ms);
} while($renderer.is_open());
} while(!run_once && $renderer.is_open());
return 0;
}