From f769bb9adcb665d08b0e9e65e8db82fc00c2347e Mon Sep 17 00:00:00 2001 From: Charadon Date: Sun, 11 Sep 2022 16:35:03 -0400 Subject: Polished up credits --- LICENSE | 7 +++++++ docs/index.html | 6 ++++++ src/main.c | 2 +- src/title.c | 5 +++-- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index 169df36..3d0b347 100644 --- a/LICENSE +++ b/LICENSE @@ -672,3 +672,10 @@ may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . +================================================================================ +Other Licenses: +Game Icon (resources/icon.svg) by 2xYz, licensed under Creative Commons. +Original: https://fosstodon.org/@allinone0/108981315839693129 + Archive: https://archive.ph/XSuqe +License: https://fosstodon.org/@allinone0/108981413047928142 + Archive: https://archive.ph/fLYSK diff --git a/docs/index.html b/docs/index.html index e98af3c..b6b3473 100644 --- a/docs/index.html +++ b/docs/index.html @@ -20,5 +20,11 @@
  • Keyboard
  • +
  • + Other: + +
  • diff --git a/src/main.c b/src/main.c index 31e2ab0..4091596 100644 --- a/src/main.c +++ b/src/main.c @@ -147,7 +147,7 @@ bool play_audio(int SoundEffect) { int main(int argc, char *argv[]) { /* Credits acknowledgements */ - fprintf(stdout, "Game Icon (resources/icon.svg) by 2xYz is licensed under Creative Commons. Check docs/credits.html for more info.\n"); + fprintf(stdout, "Game Icon (resources/icon.svg) by 2xYz is licensed under Creative Commons. Check docs/credits.html for more info.\n\n"); /* Raylib Init */ SDL_Init(SDL_INIT_AUDIO); InitWindow(1280, 720, "Pong"); diff --git a/src/title.c b/src/title.c index d729f0a..d16ff84 100644 --- a/src/title.c +++ b/src/title.c @@ -304,7 +304,6 @@ static void settings(Camera2D *MainCamera, Mix_Music *TitleScreenMusic) { DrawText("<", 0,0,128,WHITE); i = 0; for(i = 0; i < 10; i++) { - printf("%d\n", i); if (CheckCollisionRecs(MouseCursor, SoundBar[i]) && IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { play_audio(SOUND_BOUNCE); GlobalSettings.SoundVolume = i*10; @@ -448,8 +447,10 @@ int title_screen() { if (IsKeyPressed(KEY_ESCAPE)) { EnableCursor(); MouseCursorIn = false; - } else if (IsCursorOnScreen() && IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) { + } else if (IsCursorOnScreen() && IsMouseButtonPressed(MOUSE_BUTTON_LEFT) && MouseCursorIn != true) { DisableCursor(); + BeginDrawing(); + EndDrawing(); MouseCursorIn = true; } /* Mouse */ -- cgit 1.4.1-2-gfad0