WIP
This commit is contained in:
Binary file not shown.
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"],
|
||||||
|
|||||||
Reference in New Issue
Block a user