aboutsummaryrefslogtreecommitdiff
path: root/src/mainMenu.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 00:57:19 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-07 00:57:19 -0600
commit028cf5d33d99274deea9567159a4eb07c13ef85c (patch)
treeb2d9f0ae8fb640fdbe1a41114c7c8314f9223103 /src/mainMenu.c
parent416a5cbab21c480ae9e85b07fd9424452cbcb611 (diff)
This fucker is flying
Diffstat (limited to 'src/mainMenu.c')
-rw-r--r--src/mainMenu.c14
1 files changed, 14 insertions, 0 deletions
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;
+}