Added minification of board images in stylesheets

This commit is contained in:
Maciej Caderek
2022-05-03 02:28:57 +02:00
parent 924da0ed8f
commit eaf161d007
74 changed files with 4864 additions and 133 deletions

View File

@@ -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")) {

View File

@@ -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"],