Session 4: Sound effects system with Web Audio API

This commit is contained in:
2026-08-20 05:35:16 +00:00
parent 0b72673961
commit f18ef5c396
5 changed files with 159 additions and 3 deletions
+4 -1
View File
@@ -164,7 +164,10 @@ const Achievements = {
if (achievement.condition(Game.state)) {
Game.state.achievements.push(id);
UI.showNotification(`Achievement: ${achievement.name}!`, 'achievement');
// Audio feedback
Audio.playAchievement();
// Particle effect for achievement unlock
const countEl = document.querySelector('#achievements-tab h3');
if (countEl) {