Session 17: Sound Toggle (mute/unmute with persistence) Added

This commit is contained in:
2026-08-25 02:17:50 +00:00
parent cc1fa6bc4d
commit b9068e2029
5 changed files with 133 additions and 18 deletions
+2 -2
View File
@@ -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');