summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asset_defs.h6
-rw-r--r--include/game.h10
-rw-r--r--include/menu.h4
3 files changed, 20 insertions, 0 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h
index 9deaf77..b187cda 100644
--- a/include/asset_defs.h
+++ b/include/asset_defs.h
@@ -5,6 +5,12 @@
/////// Loaded at game start.
image* img_splash_art1;
+image* img_splash_art2;
+image* img_menu_screen;
+
+Mix_Music* music_menu;
+
+Mix_Chunk* wav_menu_hover;
font* fnt_52;
font* fnt_48;
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();
diff --git a/include/menu.h b/include/menu.h
index a00e020..294f87b 100644
--- a/include/menu.h
+++ b/include/menu.h
@@ -1,9 +1,13 @@
#ifndef INCLUDE_MENU
#define INCLUDE_MENU
+#include <projectbase/project_base.h>
+
typedef struct t_menu_state
{
} menu_state;
+void update_menu(platform_window* window);
+
#endif \ No newline at end of file