aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-03 21:34:28 +0000
committernathan <nathansmith@disroot.org>2025-07-03 21:34:28 +0000
commitd67fc3baa8180703f2280738d13335cb9665b348 (patch)
treec336f48d86b7dc6296562a068b4828177b5b47a6 /src/game.c
downloadFindThings-d67fc3baa8180703f2280738d13335cb9665b348.tar.gz
FindThings-d67fc3baa8180703f2280738d13335cb9665b348.tar.bz2
FindThings-d67fc3baa8180703f2280738d13335cb9665b348.zip
first commit
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();
+}