WIP
This commit is contained in:
Binary file not shown.
@@ -105,13 +105,13 @@ class Player {
|
||||
if (this.ply > 0) {
|
||||
if (position.mate) {
|
||||
sfx.snap.play();
|
||||
sfx.move.play();
|
||||
// sfx.move.play();
|
||||
} else if (/[ce]/.test(position.move?.flags as string)) {
|
||||
sfx.take.play();
|
||||
sfx.move.play();
|
||||
// sfx.move.play();
|
||||
} else if (/[kqp]/.test(position.move?.flags as string)) {
|
||||
sfx.swap.play();
|
||||
sfx.move.play();
|
||||
// sfx.move.play();
|
||||
} else {
|
||||
sfx.move.play();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Howl } from "howler";
|
||||
const sfx = {
|
||||
move: new Howl({
|
||||
src: ["/sfx/move.wav"],
|
||||
volume: 0.4,
|
||||
volume: 0.3,
|
||||
}),
|
||||
take: new Howl({
|
||||
src: ["/sfx/take.wav"],
|
||||
|
||||
Reference in New Issue
Block a user