Added end match sound
If your pull request tries to address a specific issue from the repository, please reference to it. Don't forget to include a description of the changes proposes. https://discord.me/AncientBeast I have worked on the end match sound from the repository I have changed the code in the positions and in these ways, in game.js ; export default class Game { 'sounds/swing', 'sounds/swing2', 'sounds/swing3',
-
'sounds/heartbeat'
-
'sounds/heartbeat',
-
'sounds/drums' ]; this.inputMethod = 'Mouse';
- End the game and print stats */ endGame() {
-
this.soundsys.stopMusic();
-
this.soundsys.playSound(this.soundLoaded[5], this.soundsys.effectsGainNode);
in musicplayer.js export class MusicPlayer { this.audio.load(); this.audio.play(); } +
-
stopMusic() {
-
this.audio.pause();
-
}
} in soundsys.js export class SoundSys { this.game.musicPlayer.playRandom(); }
-
stopMusic() {
-
this.game.musicPlayer.stopMusic();
-
}
Please check it(as my browser was supporting the changes) Also give recommendations, Thankyou