aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-04 23:08:13 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-04 23:08:13 +0100
commit78f847a25d37819515468fb39e214d354f889c70 (patch)
tree2aa5d204f2460b38e6362a4e4b0c58b0fd5aa96d /src/main.cpp
parenttwo levels. moved shooting logic elsewhere (diff)
downloadthreshold-78f847a25d37819515468fb39e214d354f889c70.tar.gz
threshold-78f847a25d37819515468fb39e214d354f889c70.tar.bz2
threshold-78f847a25d37819515468fb39e214d354f889c70.tar.xz
threshold-78f847a25d37819515468fb39e214d354f889c70.tar.zst
threshold-78f847a25d37819515468fb39e214d354f889c70.zip
shotty makes a sound
Diffstat (limited to '')
-rw-r--r--src/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3136318..d30878a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -44,6 +44,7 @@ int main(void) {
next += game->getNext();
delete game;
+ CloseAudioDevice();
if (next != "0") {
game = new Game(next);
}
@@ -79,15 +80,16 @@ int main(void) {
{
if (auto code = game->getKeys()) {
if (code == 1)
- gs = ENDING;
+ {gs = ENDING;}
else if (code == 2)
- gs = NEXT;
+ {gs = NEXT;}
}
game->draw();
break ;
}
case (NEXT):
{
+ ClearBackground(RAYWHITE);
break ;
}
case (ENDING):