Added minification of board images in stylesheets
This commit is contained in:
@@ -111,12 +111,10 @@ class Player {
|
||||
}
|
||||
|
||||
playAnarchySFX(position: Position) {
|
||||
if (position.mate) {
|
||||
sfx.death.play();
|
||||
}
|
||||
|
||||
if (position.move?.flags && position.move.flags.includes("e")) {
|
||||
sfx.enPassant.play();
|
||||
} else if (position.mate) {
|
||||
sfx.death.play();
|
||||
}
|
||||
|
||||
if (position.move?.flags && position.move.flags.includes("p")) {
|
||||
|
||||
@@ -23,7 +23,7 @@ const sfx = {
|
||||
}),
|
||||
enPassant: new Howl({
|
||||
src: ["/sfx/anarchy/en-passant.mp3"],
|
||||
volume: 0.2,
|
||||
volume: 0.5,
|
||||
}),
|
||||
horsyMove: new Howl({
|
||||
src: ["/sfx/anarchy/horsy-move.mp3"],
|
||||
|
||||
Reference in New Issue
Block a user