From 6f7374c2fa58c8692b51018864b802e6b876d305 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Nov 2024 21:52:24 +0100 Subject: A new start --- src/include/game.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/include/game.h (limited to 'src/include/game.h') 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 -- cgit v1.2.3-70-g09d2