Session 4: Sound effects system with Web Audio API
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user