diff options
author | Charadon <dev@iotib.net> | 2022-06-02 13:35:28 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-02 13:35:28 -0400 |
commit | 8d19dc629bb1638990f7f9268880d7a139678a8e (patch) | |
tree | 124b527e5e48fc8f441a1273565a60501bf47e19 /src/title.c | |
parent | e372341eb2d92ee7df6fcaf43f4dc2a27967e390 (diff) | |
download | Pong-C-8d19dc629bb1638990f7f9268880d7a139678a8e.tar.gz |
Added music and almost done marathon mode.
Diffstat (limited to 'src/title.c')
-rw-r--r-- | src/title.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/title.c b/src/title.c index 56e382c..c73fb10 100644 --- a/src/title.c +++ b/src/title.c @@ -1,4 +1,5 @@ #include "pong.h" +#include "raylib.h" void help_text() { @@ -39,10 +40,13 @@ int title_screen() { if (CheckCollisionRecs(Mouse, Versus)) { Selected = &Versus; if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { - return 0; + return(0); } } else if (CheckCollisionRecs(Mouse, Marathon)) { Selected = &Marathon; + if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { + return(1); + } } else if (CheckCollisionRecs(Mouse, Settings)) { Selected = &Settings; } else if (CheckCollisionRecs(Mouse, Help)) { |