about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCharadon <dev@iotib.net>2022-09-11 16:35:03 -0400
committerCharadon <dev@iotib.net>2022-09-11 16:35:03 -0400
commitf769bb9adcb665d08b0e9e65e8db82fc00c2347e (patch)
tree428f479713c6567f7e9415bfaa9a446be23ee672
parente4f6fe48d33680ffbda0c8b1aa6ff9702f336571 (diff)
downloadPong-C-f769bb9adcb665d08b0e9e65e8db82fc00c2347e.tar.gz
Polished up credits
-rw-r--r--LICENSE7
-rw-r--r--docs/index.html6
-rw-r--r--src/main.c2
-rw-r--r--src/title.c5
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
 <https://www.gnu.org/licenses/why-not-lgpl.html>.
+================================================================================
+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 @@
 				<li><a href="controls/keyboard.html">Keyboard</a></li>
 			</ul>
 		</li>
+		<li>
+			Other:
+			<ul>
+				<li><a href="credits.html">Credits</a></li>
+			</ul>
+		</li>
 	</ol>
 </html>
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 */