Skip to content

Commit

Permalink
Stop gameover music when leaving gameover screen
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 5, 2024
1 parent 7d85725 commit 5328141
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ViewModels/GameOverViewModel.zig
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,11 @@ pub const GameOverViewModel = Shared.View.ViewModel.Create(
startTime = Shared.Time.getTimestamp();
}
},
.{},
.{
.DeInit = deinit,
},
);

fn deinit() void {
Shared.Sound.Stop(.Gameover);
}

0 comments on commit 5328141

Please sign in to comment.