From 7084396bd47f9b16fc0e9b38535e750f4a180b06 Mon Sep 17 00:00:00 2001 From: "Ahmet Sungur (Student)" <ahmet2.sungur@live.uwe.ac.uk@csctcloud.prxhn32zsyjupl12zde3wlfkch.cwx.internal.cloudapp.net> Date: Wed, 2 Apr 2025 12:48:31 +0100 Subject: [PATCH] changed some settings --- src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.c b/src/main.c index 9d1d2c1..98d64f9 100644 --- a/src/main.c +++ b/src/main.c @@ -48,8 +48,8 @@ int main(void) { case MENU: if (IsKeyPressed(KEY_ENTER)) { gameState = PLAYING; - flashColor = GREEN; - flashFrames = 5; // Short green flash when starting + flashColor = PURPLE; + flashFrames = 1; // Short green flash when starting } break; @@ -63,14 +63,14 @@ int main(void) { snake.length++; SpawnFood(&food); flashColor = YELLOW; - flashFrames = 5; + flashFrames = 1; } // Game over check if (CheckCollision(&snake)) { gameState = GAME_OVER; flashColor = RED; - flashFrames = 10; + flashFrames = 2; } break; @@ -114,7 +114,7 @@ int main(void) { case GAME_OVER: DrawText("GAME OVER!", SCREEN_WIDTH/2 - 100, SCREEN_HEIGHT/2 - 40, 40, RED); DrawText(TextFormat("Scoreee: %d", score), SCREEN_WIDTH/2 - 60, SCREEN_HEIGHT/2 + 20, 30, DARKGRAY); - DrawText("Press ENTER to Restaeeert", SCREEN_WIDTH/2 - 140, SCREEN_HEIGHT/2 + 70, 20, GRAY); + DrawText("Press ENTER to yeniden", SCREEN_WIDTH/2 - 140, SCREEN_HEIGHT/2 + 70, 20, GRAY); break; } -- GitLab