diff options
Diffstat (limited to 'src/mainMenu.c')
-rw-r--r-- | src/mainMenu.c | 14 |
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; +} |