This commit is contained in:
Maciej Caderek
2022-03-29 04:47:41 +02:00
parent 999fed11ad
commit 6bf50bad10
6 changed files with 18 additions and 7 deletions

View File

@@ -88,6 +88,10 @@ class Player {
await this.board.frame(this.getPosition(), this.game.header);
this.board.render();
if (state.boardConfig.sounds) {
sfx.rewind.play();
}
}
async next() {

View File

@@ -17,6 +17,10 @@ const sfx = {
src: ["/sfx/snap.wav"],
volume: 0.6,
}),
rewind: new Howl({
src: ["/sfx/rewind.wav"],
volume: 0.2,
}),
};
export default sfx;