aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmith117 <thenathansmithsmith@gmail.com>2024-02-14 22:20:30 +0000
committernathansmith117 <thenathansmithsmith@gmail.com>2024-02-14 22:20:30 +0000
commitc2d4a7939fe7f06384f9364e7877c618d9466484 (patch)
tree8676f9821c4b766cde64191a5a91f0a6f7812203 /src/game.c
downloadPenguinYippies-c2d4a7939fe7f06384f9364e7877c618d9466484.tar.gz
PenguinYippies-c2d4a7939fe7f06384f9364e7877c618d9466484.tar.bz2
PenguinYippies-c2d4a7939fe7f06384f9364e7877c618d9466484.zip
first commit
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
new file mode 100644
index 0000000..a093269
--- /dev/null
+++ b/src/game.c
@@ -0,0 +1,21 @@
+#include "game.h"
+
+void initGame(Game* game)
+{
+ InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "Penguin Yippies!");
+}
+
+void updateGame(Game* game)
+{
+ BeginDrawing();
+ ClearBackground(RAYWHITE);
+
+ DrawFPS(0, 0);
+
+ EndDrawing();
+}
+
+void closeGame(Game* game)
+{
+ CloseWindow();
+}