aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-04 23:52:04 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-04 23:52:04 +0100
commitb75a02c8f5c616eff6f21197c3e13056eefcb873 (patch)
treebee47f568de6d48a22d78043e05de198d5bec611 /src/main.cpp
parentshotty makes a sound (diff)
downloadthreshold-b75a02c8f5c616eff6f21197c3e13056eefcb873.tar.gz
threshold-b75a02c8f5c616eff6f21197c3e13056eefcb873.tar.bz2
threshold-b75a02c8f5c616eff6f21197c3e13056eefcb873.tar.xz
threshold-b75a02c8f5c616eff6f21197c3e13056eefcb873.tar.zst
threshold-b75a02c8f5c616eff6f21197c3e13056eefcb873.zip
add fury, bang sound, colors and more
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 6 insertions, 4 deletions
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):