From 26c96e3274c618ad0c626cc8120296ac8bf45fa3 Mon Sep 17 00:00:00 2001 From: Mark B Date: Sun, 15 May 2022 13:04:19 -0400 Subject: [PATCH] changed SOURCE CODE to MORE GAMES & fixed the dumb html5 scrolling bug --- html5/shell.html | 321 ++++++----------------------------------------- src/Main.c | 8 +- 2 files changed, 45 insertions(+), 284 deletions(-) diff --git a/html5/shell.html b/html5/shell.html index fe022b1..3cdaa33 100644 --- a/html5/shell.html +++ b/html5/shell.html @@ -4,190 +4,36 @@ - Avoid: the game + raylib web game - - + + - + - + - + - + - - - - -
- -
- - - - - - - - {{{ SCRIPT }}} - + }; + + {{{ SCRIPT }}} + diff --git a/src/Main.c b/src/Main.c index 1df22e0..d53971e 100644 --- a/src/Main.c +++ b/src/Main.c @@ -127,7 +127,7 @@ void updateGame(void) if ((selected == 0) && (IsKeyPressed(KEY_ENTER))) currentScreen = GAMEPLAY; if ((selected == -1) && (IsKeyPressed(KEY_ENTER))) currentScreen = CREDITS; - if ((selected == -2) && (IsKeyPressed(KEY_ENTER))) OpenURL("https://gitdab.com/Canneddonuts/Avoid.git"); + if ((selected == -2) && (IsKeyPressed(KEY_ENTER))) OpenURL("https://canneddonuts.itch.io/"); break; case GAMEPLAY: @@ -234,8 +234,8 @@ void drawGame(void) if (selected == -1) DrawText("CREDITS", 340, 240, 20, WHITE); else DrawText("CREDITS", 340, 240, 20, BLUE); - if (selected == -2) DrawText("SOURCE CODE", 315, 260, 20, WHITE); - else DrawText("SOURCE CODE", 315, 260, 20, BLUE); + if (selected == -2) DrawText("MORE GAMES", 320, 260, 20, WHITE); + else DrawText("MORE GAMES", 320, 260, 20, BLUE); break; case GAMEPLAY: @@ -258,7 +258,7 @@ void drawGame(void) case CREDITS: DrawRectangle(0, 0, screenWidth, screenHeight, GREEN); - DrawText("Avoid", 330, 20, 50, PINK); + DrawText("Avoid", 330, 20, 50, MAGENTA); DrawText("Programming by Return0ne", 10, 210, 20, BLUE); DrawText("Morale support by Tobi/Tobrella and Jelly_man", 10, 240, 20, BLUE); DrawText("Powered by raylib 4.0", 10, 270, 20, BLUE);