Skip to content

Commit

Permalink
Game over sound effect
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 3, 2024
1 parent b7dc8ac commit 21c5cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file added src/Sounds/Gameover.ogg
Binary file not shown.
2 changes: 2 additions & 0 deletions src/ViewModels/GameOverViewModel.zig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pub const GameOverViewModel = Shared.View.ViewModel.Create(
score = Score;
highScore = HighScore;

Shared.Sound.Play(.Gameover);

if (score > highScore) {
Shared.Settings.UpdateSettings(.{
.HighScore = score,
Expand Down

0 comments on commit 21c5cba

Please sign in to comment.