From c2d4a7939fe7f06384f9364e7877c618d9466484 Mon Sep 17 00:00:00 2001 From: nathansmith117 Date: Wed, 14 Feb 2024 15:20:30 -0700 Subject: first commit --- src/game.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/game.c (limited to 'src/game.c') 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(); +} -- cgit v1.2.3