mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-13 00:12:21 -06:00
feat: add audio muting button, mute by default in debug builds
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user