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
+3 -3
View File
@@ -54,8 +54,8 @@ const PRESTIGE = {
prestigeUpgrades: Game.state.prestigeUpgrades || []
};
// Audio feedback
Audio.playPrestige();
// Audio feedback (gated by the sound preference)
Game.playSound('prestige');
// Particle effect for prestige
const btn = document.getElementById('prestige-btn');
@@ -88,7 +88,7 @@ const PRESTIGE = {
Game.state.prestigeUpgrades.push(upgradeId);
UI.showNotification(`Unlocked: ${upgrade.name}!`, 'achievement');
Audio.playPurchase();
Game.playSound('purchase');
UI.update();
return true;
}