Session 17: Sound Toggle (mute/unmute with persistence) Added
This commit is contained in:
+2
-2
@@ -274,8 +274,8 @@ const Achievements = {
|
||||
Game.state.achievements.push(id);
|
||||
UI.showNotification(`Achievement: ${achievement.name}!`, 'achievement');
|
||||
|
||||
// Audio feedback
|
||||
Audio.playAchievement();
|
||||
// Audio feedback (gated by the sound preference)
|
||||
Game.playSound('achievement');
|
||||
|
||||
// Particle effect for achievement unlock
|
||||
const countEl = document.querySelector('#achievements-tab h3');
|
||||
|
||||
Reference in New Issue
Block a user