diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 11c69b7..5f733f5 100644 --- a/src/main.c +++ b/src/main.c @@ -32,6 +32,8 @@ int audio() { Sound TitleScreen = LoadSound("resources/title.wav"); Sound Victory = LoadSound("resources/victory.wav"); Sound Defeat = LoadSound("resources/defeat.wav"); + Sound PlayerScore = LoadSound("resources/score_player.wav"); + Sound EnemyScore = LoadSound("resources/score_enemy.wav"); const struct timespec Delay = { 0, 20000000 }; @@ -52,6 +54,12 @@ int audio() { case 3: //Title Screen PlaySoundMulti(TitleScreen); break; + case 4: //Player Score + PlaySoundMulti(PlayerScore); + break; + case 5: //Enemy Score + PlaySoundMulti(EnemyScore); + break; case 99: //Stop All Sounds StopSoundMulti(); break; @@ -117,12 +125,16 @@ int main() { play_audio(STOP_ALL_SOUNDS); versus_main(); break; + case 1: //Marathon + play_audio(STOP_ALL_SOUNDS); + marathon_main(); + break; default: break; } } - GameGoing = false; + GameGoing = false; // Make sure the game is going to end. thrd_join(AudioThread, NULL); CloseWindow(); return(0); |