class SoundManager {
    constructor() {
        this.sounds = new Map();
    }
    loadSound(name, src) {
        const audio = new Audio(src);
        this.sounds.set(name, audio);
    }
    playSound(name) {
        const sound = this.sounds.get(name);
        if (sound) sound.play();
    }
}