summaryrefslogtreecommitdiff
path: root/include/game.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 23:08:00 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 23:08:00 +0200
commitf20dfd8240c5cab969b25a3c1e986b28c97f6898 (patch)
tree421171edf089cd50b70f44366cb02ad7fa251be3 /include/game.h
parentf194481a520a39a1964348011df8deb108f789b7 (diff)
main menu work
Diffstat (limited to 'include/game.h')
-rw-r--r--include/game.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/game.h b/include/game.h
index 60c170c..83c9b3d 100644
--- a/include/game.h
+++ b/include/game.h
@@ -18,6 +18,15 @@ typedef enum t_game_state {
GAMESTATE_PLAYING,
} game_state;
+typedef enum t_scene_state
+{
+ SCENE_MAIN_MENU,
+ SCENE_GAME,
+ SCENE_CREDITS,
+ SCENE_SETTINGS,
+ SCENE_LOBBY,
+} scene_state;
+
typedef struct t_game {
game_state state;
network_state network_state;
@@ -25,6 +34,7 @@ typedef struct t_game {
network_client *client;
} game;
+scene_state global_scene_state = SCENE_MAIN_MENU;
game global_state = {GAMESTATE_IDLE,DISCONNECTED,0,0};
void init_game();