X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgame.h;h=0770dd81162b9d4568324f4e1c04af7400855d3d;hb=2d1b76202b9b49bd3f174a5f4c43426223de84c9;hp=d2640af0bf4daf470d6d0ed510cc687599cf842e;hpb=f15f066c1b1ea6815c4bad16cf9b098f96df1533;p=nothing.git diff --git a/src/game.h b/src/game.h index d2640af0..0770dd81 100644 --- a/src/game.h +++ b/src/game.h @@ -7,16 +7,6 @@ typedef struct Game Game; -typedef enum { - CURSOR_STYLE_POINTER = 0, - CURSOR_STYLE_RESIZE_VERT, - CURSOR_STYLE_RESIZE_HORIS, - CURSOR_STYLE_RESIZE_DIAG1, - CURSOR_STYLE_RESIZE_DIAG2, - - CURSOR_STYLE_N -} Cursor_Style; - Game *create_game(const char *platforms_file_path, const char *sound_sample_files[], size_t sound_sample_files_count, @@ -34,7 +24,19 @@ int game_input(Game *game, int game_over_check(const Game *game); +typedef enum Game_state { + GAME_STATE_LEVEL = 0, + GAME_STATE_LEVEL_PICKER, + GAME_STATE_LEVEL_EDITOR, + GAME_STATE_CREDITS, + GAME_STATE_SETTINGS, + GAME_STATE_QUIT +} Game_state; + +void game_switch_state(Game *game, Game_state state); int game_load_level(Game *game, const char *filepath); -void game_set_cursor(Game *game, Cursor_Style style); + +// defined in main.c. is there a better place for this to be declared? +float get_display_scale(void); #endif // GAME_H_