From b75a02c8f5c616eff6f21197c3e13056eefcb873 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 4 Jan 2022 23:52:04 +0100 Subject: add fury, bang sound, colors and more --- src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d30878a..48a24f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,6 +58,7 @@ int main(void) { gs = TITLE; auto next = game->getNext(); delete game; + CloseAudioDevice(); if (next != "0") { game = new Game("../meta/maps/stage_1_start.bfm"); } @@ -67,13 +68,14 @@ int main(void) { } BeginDrawing(); - ClearBackground(RAYWHITE); + ClearBackground(COOLPURPLE); switch (gs) { case (TITLE): { - DrawText("THRESHOLD", (SCREENWIDTH / 2) - 150, SCREENHEIGHT / 2, 40, RED); - DrawText("PRESS ENTER", (SCREENWIDTH / 2) - 150, (SCREENHEIGHT / 2) + 50, 40, MAROON); + DrawCircle(SCREENWIDTH / 2, SCREENHEIGHT / 2, 200, BLACK); + DrawText("THRESHOLD", (SCREENWIDTH / 2) - 140, SCREENHEIGHT / 2, 40, RED); + DrawText("PRESS ENTER", (SCREENWIDTH / 2) - 140, (SCREENHEIGHT / 2) + 50, 40, MAROON); break ; } case (GAMEPLAY): @@ -89,7 +91,7 @@ int main(void) { } case (NEXT): { - ClearBackground(RAYWHITE); + ClearBackground(COOLPURPLE); break ; } case (ENDING): -- cgit v1.2.3