This commit is contained in:
Maciej Caderek
2022-03-24 02:52:53 +01:00
parent 160be085f0
commit c90c3abd70
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@@ -105,13 +105,13 @@ class Player {
if (this.ply > 0) { if (this.ply > 0) {
if (position.mate) { if (position.mate) {
sfx.snap.play(); sfx.snap.play();
sfx.move.play(); // sfx.move.play();
} else if (/[ce]/.test(position.move?.flags as string)) { } else if (/[ce]/.test(position.move?.flags as string)) {
sfx.take.play(); sfx.take.play();
sfx.move.play(); // sfx.move.play();
} else if (/[kqp]/.test(position.move?.flags as string)) { } else if (/[kqp]/.test(position.move?.flags as string)) {
sfx.swap.play(); sfx.swap.play();
sfx.move.play(); // sfx.move.play();
} else { } else {
sfx.move.play(); sfx.move.play();
} }

View File

@@ -3,7 +3,7 @@ import { Howl } from "howler";
const sfx = { const sfx = {
move: new Howl({ move: new Howl({
src: ["/sfx/move.wav"], src: ["/sfx/move.wav"],
volume: 0.4, volume: 0.3,
}), }),
take: new Howl({ take: new Howl({
src: ["/sfx/take.wav"], src: ["/sfx/take.wav"],