WIP
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user