]> git.lizzy.rs Git - nothing.git/blobdiff - src/game.h
Merge pull request #1206 from tsoding/migration
[nothing.git] / src / game.h
index b6c2f19aacedfa2b4bc4c390a77059662b9479a0..0770dd81162b9d4568324f4e1c04af7400855d3d 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef GAME_H_
 #define GAME_H_
 
-#include <SDL2/SDL.h>
+#include <SDL.h>
 
 #include "game/sound_samples.h"
 
@@ -24,4 +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_