Now have all four screens showing up when needed, but now need to a way to restart the game.

This commit is contained in:
Zed A. Shaw 2026-04-02 00:38:41 -04:00
parent d03020cfef
commit 903fad871f
11 changed files with 110 additions and 26 deletions

View file

@ -16,7 +16,10 @@
namespace gui {
enum class State {
START=__LINE__,
START_SCREEN=__LINE__,
START_SCENE=__LINE__,
DEATH_SCENE=__LINE__,
WIN_SCENE=__LINE__,
NEXT_LEVEL_SCENE=__LINE__,
MOVING=__LINE__,
ATTACKING=__LINE__,
ROTATING=__LINE__,
@ -50,7 +53,10 @@ namespace gui {
void event(game::Event ev, std::any data={});
void START(game::Event ev);
void START_SCREEN(game::Event ev);
void START_SCENE(game::Event ev);
void WIN_SCENE(game::Event ev);
void DEATH_SCENE(game::Event ev);
void NEXT_LEVEL_SCENE(game::Event ev);
void IDLE(game::Event ev, std::any data);
void MOVING(game::Event ev);
void ATTACKING(game::Event ev, std::any data);
@ -72,5 +78,7 @@ namespace gui {
void next_level();
void debug_render();
void take_screenshot();
void show_scene(const std::string& name);
void close_scene();
};
}