diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
| commit | 6f7374c2fa58c8692b51018864b802e6b876d305 (patch) | |
| tree | a7e8ead757e9f4de1920395336dcac1c8a989576 /src/include/game.h | |
A new start
Diffstat (limited to 'src/include/game.h')
| -rw-r--r-- | src/include/game.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/game.h b/src/include/game.h new file mode 100644 index 0000000..2c09ada --- /dev/null +++ b/src/include/game.h @@ -0,0 +1,31 @@ +/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_GAME
+#define INCLUDE_GAME
+
+typedef enum t_game_state
+{
+ GAME_STATE_LOADING = 1,
+ GAME_STATE_MENU = 2,
+ GAME_STATE_SELECT_SAVE = 3,
+ GAME_STATE_WORLD_MAP = 4,
+ GAME_STATE_LOADING_WORLD = 5,
+ GAME_STATE_ERROR = 6,
+ GAME_STATE_PLACE_DETAIL = 7,
+ GAME_STATE_SETTINGS = 8,
+} game_state;
+
+typedef struct t_game
+{
+ game_state current_state;
+} game;
+
+void game_set_active_scene(game_state state);
+void game_update(platform_window* window);
+void game_render(platform_window* window);
+
+#endif
\ No newline at end of file |
