aboutsummaryrefslogtreecommitdiffstats
path: root/src/game.c
diff options
context:
space:
mode:
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();
+}