Very janky barely working coroutine version of the game, the UI is more responsive, but not as much as it should be. Still, take a look and study the coro.hpp and other files in this commit for some coroutine stuff.
This commit is contained in:
parent
8f7235ade1
commit
cacf72604f
6 changed files with 38 additions and 15 deletions
2
gui.cpp
2
gui.cpp
|
@ -55,7 +55,7 @@ int GUI::main_loop(GameEngine &game, std::function<bool()> runner) {
|
|||
|
||||
gui.startup();
|
||||
|
||||
while (gui.is_open()) {
|
||||
while(gui.is_open()) {
|
||||
bool result = runner();
|
||||
gui.handle_events();
|
||||
gui.update_entities();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue