X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fgame.h;h=0770dd81162b9d4568324f4e1c04af7400855d3d;hb=2b7754a7efed39e5ae4f06d51fa4a84dbd40f4db;hp=b1141320efb9a411c26a38328382fd5bcd962956;hpb=b6c33ce00b0601115e7601b1be5aa13170656732;p=nothing.git diff --git a/src/game.h b/src/game.h index b1141320..0770dd81 100644 --- a/src/game.h +++ b/src/game.h @@ -24,6 +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); +// defined in main.c. is there a better place for this to be declared? +float get_display_scale(void); + #endif // GAME_H_