From 028cf5d33d99274deea9567159a4eb07c13ef85c Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 7 Jul 2023 00:57:19 -0600 Subject: This fucker is flying --- src/mainMenu.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/mainMenu.c (limited to 'src/mainMenu.c') diff --git a/src/mainMenu.c b/src/mainMenu.c new file mode 100644 index 0000000..10f293a --- /dev/null +++ b/src/mainMenu.c @@ -0,0 +1,14 @@ +#include "mainMenu.h" +#include "game.h" + +void updateMainMenu(Game * game) { + ClearBackground(RAYWHITE); + + bool start = GuiButton( + (Rectangle){10, 10, 100, 50}, + "Start" + ); + + if (start) + game->screenId = SCREEN_GAME; +} -- cgit v1.2.3