feat: add audio muting button, mute by default in debug builds

This commit is contained in:
2025-07-23 21:00:52 -05:00
parent 076275158e
commit eaa4ab37f9
3 changed files with 37 additions and 13 deletions

View File

@@ -107,6 +107,7 @@ pub fn main() {
let texture_creator = canvas.texture_creator();
let mut game = Game::new(&mut canvas, &texture_creator, &ttf_context, &audio_subsystem);
game.audio.set_mute(cfg!(debug_assertions));
let mut event_pump = sdl_context.event_pump().expect("Could not get SDL EventPump");