aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
new file mode 100644
index 0000000..807220c
--- /dev/null
+++ b/src/game.c
@@ -0,0 +1,25 @@
+#include "game.h"
+#include "utils.h"
+
+void initGame(Game* game)
+{
+ // Settings.
+ game->settings = defaultSettings();
+
+ // Window.
+ InitWindow(game->settings.windowWidth, game->settings.windowHeight,
+ "Find Things");
+}
+
+void updateGame(Game* game)
+{
+ BeginDrawing();
+ ClearBackground(RAYWHITE);
+
+ EndDrawing();
+}
+
+void closeGame(Game* game)
+{
+ CloseWindow();
+}