diff --git a/public/pieces/anarchy/anarchy.zip b/public/pieces/anarchy/anarchy.zip index f53ec1b..4148032 100644 Binary files a/public/pieces/anarchy/anarchy.zip and b/public/pieces/anarchy/anarchy.zip differ diff --git a/public/pieces/anarchy/bb.svg b/public/pieces/anarchy/bb.svg index 8f07d12..befba46 100644 --- a/public/pieces/anarchy/bb.svg +++ b/public/pieces/anarchy/bb.svg @@ -3,12 +3,12 @@ - + - + - - + + diff --git a/public/pieces/anarchy/kb.svg b/public/pieces/anarchy/kb.svg index 72bbbd1..0e27fca 100644 --- a/public/pieces/anarchy/kb.svg +++ b/public/pieces/anarchy/kb.svg @@ -2,22 +2,22 @@ - + - - - + + + - - - - - - - - - + + + + + + + + + diff --git a/public/pieces/anarchy/kw.svg b/public/pieces/anarchy/kw.svg index 9e7e3a6..734cfe4 100644 --- a/public/pieces/anarchy/kw.svg +++ b/public/pieces/anarchy/kw.svg @@ -2,14 +2,14 @@ - + - + diff --git a/public/pieces/anarchy/nb.svg b/public/pieces/anarchy/nb.svg index e7de332..ba2d328 100644 --- a/public/pieces/anarchy/nb.svg +++ b/public/pieces/anarchy/nb.svg @@ -1,8 +1,17 @@ - - - - - - + + + + + + + + + + + + + + + diff --git a/public/pieces/anarchy/nw.svg b/public/pieces/anarchy/nw.svg index 94834fe..84df726 100644 --- a/public/pieces/anarchy/nw.svg +++ b/public/pieces/anarchy/nw.svg @@ -1,7 +1,8 @@ - - - + + + + diff --git a/public/pieces/anarchy/pb.svg b/public/pieces/anarchy/pb.svg index e47d722..d57ab2a 100644 --- a/public/pieces/anarchy/pb.svg +++ b/public/pieces/anarchy/pb.svg @@ -1,11 +1,11 @@ - - - - - - - + + + + + + + diff --git a/public/pieces/anarchy/png/bb.png b/public/pieces/anarchy/png/bb.png index 679133e..29a9a10 100644 Binary files a/public/pieces/anarchy/png/bb.png and b/public/pieces/anarchy/png/bb.png differ diff --git a/public/pieces/anarchy/png/kb.png b/public/pieces/anarchy/png/kb.png index 30fd9d7..e805f16 100644 Binary files a/public/pieces/anarchy/png/kb.png and b/public/pieces/anarchy/png/kb.png differ diff --git a/public/pieces/anarchy/png/nb.png b/public/pieces/anarchy/png/nb.png index 7fa78e5..7128c69 100644 Binary files a/public/pieces/anarchy/png/nb.png and b/public/pieces/anarchy/png/nb.png differ diff --git a/public/pieces/anarchy/png/nw.png b/public/pieces/anarchy/png/nw.png index f310ced..4cede33 100644 Binary files a/public/pieces/anarchy/png/nw.png and b/public/pieces/anarchy/png/nw.png differ diff --git a/public/pieces/anarchy/png/pb.png b/public/pieces/anarchy/png/pb.png index 44873e4..ce8db59 100644 Binary files a/public/pieces/anarchy/png/pb.png and b/public/pieces/anarchy/png/pb.png differ diff --git a/public/pieces/anarchy/png/qb.png b/public/pieces/anarchy/png/qb.png index 65c47d9..2cdbc6e 100644 Binary files a/public/pieces/anarchy/png/qb.png and b/public/pieces/anarchy/png/qb.png differ diff --git a/public/pieces/anarchy/png/qw.png b/public/pieces/anarchy/png/qw.png index 0ffefd4..abed668 100644 Binary files a/public/pieces/anarchy/png/qw.png and b/public/pieces/anarchy/png/qw.png differ diff --git a/public/pieces/anarchy/png/rb.png b/public/pieces/anarchy/png/rb.png index 383f8c3..f8994e1 100644 Binary files a/public/pieces/anarchy/png/rb.png and b/public/pieces/anarchy/png/rb.png differ diff --git a/public/pieces/anarchy/qb.svg b/public/pieces/anarchy/qb.svg index 94ed804..c2bfa01 100644 --- a/public/pieces/anarchy/qb.svg +++ b/public/pieces/anarchy/qb.svg @@ -1,13 +1,18 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/public/pieces/anarchy/qw.svg b/public/pieces/anarchy/qw.svg index 1d0255b..b043bce 100644 --- a/public/pieces/anarchy/qw.svg +++ b/public/pieces/anarchy/qw.svg @@ -1,14 +1,19 @@ - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/public/pieces/anarchy/rb.svg b/public/pieces/anarchy/rb.svg index 87cb62a..ecbf15e 100644 --- a/public/pieces/anarchy/rb.svg +++ b/public/pieces/anarchy/rb.svg @@ -1,5 +1,5 @@ - - + + diff --git a/public/pieces/anarchy/rw.svg b/public/pieces/anarchy/rw.svg index bd1c060..0d885cf 100644 --- a/public/pieces/anarchy/rw.svg +++ b/public/pieces/anarchy/rw.svg @@ -2,5 +2,5 @@ - + diff --git a/public/sfx/mp3/brick-castle.mp3 b/public/sfx/anarchy/brick-castle.mp3 similarity index 100% rename from public/sfx/mp3/brick-castle.mp3 rename to public/sfx/anarchy/brick-castle.mp3 diff --git a/public/sfx/mp3/brick-move.mp3 b/public/sfx/anarchy/brick-move.mp3 similarity index 100% rename from public/sfx/mp3/brick-move.mp3 rename to public/sfx/anarchy/brick-move.mp3 diff --git a/public/sfx/mp3/brick-take.mp3 b/public/sfx/anarchy/brick-take.mp3 similarity index 100% rename from public/sfx/mp3/brick-take.mp3 rename to public/sfx/anarchy/brick-take.mp3 diff --git a/public/sfx/anarchy/checkmate.mp3 b/public/sfx/anarchy/checkmate.mp3 new file mode 100644 index 0000000..3e3f83c Binary files /dev/null and b/public/sfx/anarchy/checkmate.mp3 differ diff --git a/public/sfx/mp3/cone-move.mp3 b/public/sfx/anarchy/cone-move.mp3 similarity index 100% rename from public/sfx/mp3/cone-move.mp3 rename to public/sfx/anarchy/cone-move.mp3 diff --git a/public/sfx/mp3/cone-take.mp3 b/public/sfx/anarchy/cone-take.mp3 similarity index 100% rename from public/sfx/mp3/cone-take.mp3 rename to public/sfx/anarchy/cone-take.mp3 diff --git a/public/sfx/anarchy/death-move.mp3 b/public/sfx/anarchy/death-move.mp3 new file mode 100644 index 0000000..c85d157 Binary files /dev/null and b/public/sfx/anarchy/death-move.mp3 differ diff --git a/public/sfx/anarchy/death-take.mp3 b/public/sfx/anarchy/death-take.mp3 new file mode 100644 index 0000000..5e107dd Binary files /dev/null and b/public/sfx/anarchy/death-take.mp3 differ diff --git a/public/sfx/anarchy/en-passant.mp3 b/public/sfx/anarchy/en-passant.mp3 new file mode 100644 index 0000000..b8a6397 Binary files /dev/null and b/public/sfx/anarchy/en-passant.mp3 differ diff --git a/public/sfx/anarchy/hit.mp3 b/public/sfx/anarchy/hit.mp3 new file mode 100644 index 0000000..3cd468d Binary files /dev/null and b/public/sfx/anarchy/hit.mp3 differ diff --git a/public/sfx/mp3/snort.mp3 b/public/sfx/anarchy/horsy-move.mp3 similarity index 100% rename from public/sfx/mp3/snort.mp3 rename to public/sfx/anarchy/horsy-move.mp3 diff --git a/public/sfx/mp3/neigh.mp3 b/public/sfx/anarchy/horsy-take.mp3 similarity index 100% rename from public/sfx/mp3/neigh.mp3 rename to public/sfx/anarchy/horsy-take.mp3 diff --git a/public/sfx/mp3/pipi-take.mp3 b/public/sfx/anarchy/pipi-move.mp3 similarity index 100% rename from public/sfx/mp3/pipi-take.mp3 rename to public/sfx/anarchy/pipi-move.mp3 diff --git a/public/sfx/anarchy/pipi-take.mp3 b/public/sfx/anarchy/pipi-take.mp3 new file mode 100644 index 0000000..736c353 Binary files /dev/null and b/public/sfx/anarchy/pipi-take.mp3 differ diff --git a/public/sfx/anarchy/toy-move.mp3 b/public/sfx/anarchy/toy-move.mp3 new file mode 100644 index 0000000..f19157a Binary files /dev/null and b/public/sfx/anarchy/toy-move.mp3 differ diff --git a/public/sfx/anarchy/toy-take.mp3 b/public/sfx/anarchy/toy-take.mp3 new file mode 100644 index 0000000..08a1c10 Binary files /dev/null and b/public/sfx/anarchy/toy-take.mp3 differ diff --git a/public/sfx/brick-castle.wav b/public/sfx/brick-castle.wav deleted file mode 100644 index 454474d..0000000 Binary files a/public/sfx/brick-castle.wav and /dev/null differ diff --git a/public/sfx/brick-move.wav b/public/sfx/brick-move.wav deleted file mode 100644 index c7b8d75..0000000 Binary files a/public/sfx/brick-move.wav and /dev/null differ diff --git a/public/sfx/brick-take.wav b/public/sfx/brick-take.wav deleted file mode 100644 index 05b22e7..0000000 Binary files a/public/sfx/brick-take.wav and /dev/null differ diff --git a/public/sfx/cone-move.wav b/public/sfx/cone-move.wav deleted file mode 100644 index 5fd775b..0000000 Binary files a/public/sfx/cone-move.wav and /dev/null differ diff --git a/public/sfx/cone-take.wav b/public/sfx/cone-take.wav deleted file mode 100644 index 204b219..0000000 Binary files a/public/sfx/cone-take.wav and /dev/null differ diff --git a/public/sfx/fanfare.wav b/public/sfx/fanfare.wav deleted file mode 100644 index 1c7bba4..0000000 Binary files a/public/sfx/fanfare.wav and /dev/null differ diff --git a/public/sfx/mp3/move.mp3 b/public/sfx/move.mp3 similarity index 100% rename from public/sfx/mp3/move.mp3 rename to public/sfx/move.mp3 diff --git a/public/sfx/move.wav b/public/sfx/move.wav deleted file mode 100644 index 78a25ac..0000000 Binary files a/public/sfx/move.wav and /dev/null differ diff --git a/public/sfx/mp3/fanfare.mp3 b/public/sfx/mp3/fanfare.mp3 deleted file mode 100644 index 1c91579..0000000 Binary files a/public/sfx/mp3/fanfare.mp3 and /dev/null differ diff --git a/public/sfx/mp3/pipi-move.mp3 b/public/sfx/mp3/pipi-move.mp3 deleted file mode 100644 index 8fa09a9..0000000 Binary files a/public/sfx/mp3/pipi-move.mp3 and /dev/null differ diff --git a/public/sfx/mp3/toy-move.mp3 b/public/sfx/mp3/toy-move.mp3 deleted file mode 100644 index b5144cd..0000000 Binary files a/public/sfx/mp3/toy-move.mp3 and /dev/null differ diff --git a/public/sfx/neigh.wav b/public/sfx/neigh.wav deleted file mode 100644 index c486443..0000000 Binary files a/public/sfx/neigh.wav and /dev/null differ diff --git a/public/sfx/ogg/brick-castle.ogg b/public/sfx/ogg/brick-castle.ogg deleted file mode 100644 index a528989..0000000 Binary files a/public/sfx/ogg/brick-castle.ogg and /dev/null differ diff --git a/public/sfx/ogg/brick-move.ogg b/public/sfx/ogg/brick-move.ogg deleted file mode 100644 index 2a867fe..0000000 Binary files a/public/sfx/ogg/brick-move.ogg and /dev/null differ diff --git a/public/sfx/ogg/brick-take.ogg b/public/sfx/ogg/brick-take.ogg deleted file mode 100644 index a4127bf..0000000 Binary files a/public/sfx/ogg/brick-take.ogg and /dev/null differ diff --git a/public/sfx/ogg/cone-move.ogg b/public/sfx/ogg/cone-move.ogg deleted file mode 100644 index 0740f56..0000000 Binary files a/public/sfx/ogg/cone-move.ogg and /dev/null differ diff --git a/public/sfx/ogg/cone-take.ogg b/public/sfx/ogg/cone-take.ogg deleted file mode 100644 index 23be83f..0000000 Binary files a/public/sfx/ogg/cone-take.ogg and /dev/null differ diff --git a/public/sfx/ogg/fanfare.ogg b/public/sfx/ogg/fanfare.ogg deleted file mode 100644 index 8e9a2ce..0000000 Binary files a/public/sfx/ogg/fanfare.ogg and /dev/null differ diff --git a/public/sfx/ogg/move.ogg b/public/sfx/ogg/move.ogg deleted file mode 100644 index 4da6254..0000000 Binary files a/public/sfx/ogg/move.ogg and /dev/null differ diff --git a/public/sfx/ogg/neigh.ogg b/public/sfx/ogg/neigh.ogg deleted file mode 100644 index 2e4cc6d..0000000 Binary files a/public/sfx/ogg/neigh.ogg and /dev/null differ diff --git a/public/sfx/ogg/pipi-move.ogg b/public/sfx/ogg/pipi-move.ogg deleted file mode 100644 index 82bd4ba..0000000 Binary files a/public/sfx/ogg/pipi-move.ogg and /dev/null differ diff --git a/public/sfx/ogg/pipi-take.ogg b/public/sfx/ogg/pipi-take.ogg deleted file mode 100644 index 94b33ad..0000000 Binary files a/public/sfx/ogg/pipi-take.ogg and /dev/null differ diff --git a/public/sfx/ogg/rewind.ogg b/public/sfx/ogg/rewind.ogg deleted file mode 100644 index 7ad4c53..0000000 Binary files a/public/sfx/ogg/rewind.ogg and /dev/null differ diff --git a/public/sfx/ogg/snap.ogg b/public/sfx/ogg/snap.ogg deleted file mode 100644 index a9f311a..0000000 Binary files a/public/sfx/ogg/snap.ogg and /dev/null differ diff --git a/public/sfx/ogg/snort.ogg b/public/sfx/ogg/snort.ogg deleted file mode 100644 index 7671bea..0000000 Binary files a/public/sfx/ogg/snort.ogg and /dev/null differ diff --git a/public/sfx/ogg/swap.ogg b/public/sfx/ogg/swap.ogg deleted file mode 100644 index 0216cab..0000000 Binary files a/public/sfx/ogg/swap.ogg and /dev/null differ diff --git a/public/sfx/ogg/take.ogg b/public/sfx/ogg/take.ogg deleted file mode 100644 index 3bc7eb2..0000000 Binary files a/public/sfx/ogg/take.ogg and /dev/null differ diff --git a/public/sfx/pipi-move.wav b/public/sfx/pipi-move.wav deleted file mode 100644 index 6fa31ee..0000000 Binary files a/public/sfx/pipi-move.wav and /dev/null differ diff --git a/public/sfx/pipi-take.wav b/public/sfx/pipi-take.wav deleted file mode 100644 index 683fac5..0000000 Binary files a/public/sfx/pipi-take.wav and /dev/null differ diff --git a/public/sfx/mp3/rewind.mp3 b/public/sfx/rewind.mp3 similarity index 100% rename from public/sfx/mp3/rewind.mp3 rename to public/sfx/rewind.mp3 diff --git a/public/sfx/rewind.wav b/public/sfx/rewind.wav deleted file mode 100644 index 93b3e7b..0000000 Binary files a/public/sfx/rewind.wav and /dev/null differ diff --git a/public/sfx/mp3/snap.mp3 b/public/sfx/snap.mp3 similarity index 100% rename from public/sfx/mp3/snap.mp3 rename to public/sfx/snap.mp3 diff --git a/public/sfx/snap.wav b/public/sfx/snap.wav deleted file mode 100644 index e0be898..0000000 Binary files a/public/sfx/snap.wav and /dev/null differ diff --git a/public/sfx/snort.wav b/public/sfx/snort.wav deleted file mode 100644 index b99e53c..0000000 Binary files a/public/sfx/snort.wav and /dev/null differ diff --git a/public/sfx/mp3/swap.mp3 b/public/sfx/swap.mp3 similarity index 100% rename from public/sfx/mp3/swap.mp3 rename to public/sfx/swap.mp3 diff --git a/public/sfx/swap.wav b/public/sfx/swap.wav deleted file mode 100644 index 048f28c..0000000 Binary files a/public/sfx/swap.wav and /dev/null differ diff --git a/public/sfx/mp3/take.mp3 b/public/sfx/take.mp3 similarity index 100% rename from public/sfx/mp3/take.mp3 rename to public/sfx/take.mp3 diff --git a/public/sfx/take.wav b/public/sfx/take.wav deleted file mode 100644 index 9fa135a..0000000 Binary files a/public/sfx/take.wav and /dev/null differ diff --git a/public/sfx/toy-take.wav b/public/sfx/toy-take.wav deleted file mode 100644 index 3d9eb52..0000000 Binary files a/public/sfx/toy-take.wav and /dev/null differ diff --git a/public/sfx/whoosh.flac b/public/sfx/whoosh.flac deleted file mode 100644 index 3679176..0000000 Binary files a/public/sfx/whoosh.flac and /dev/null differ diff --git a/src/player/Player.ts b/src/player/Player.ts index d6a5883..b701b49 100644 --- a/src/player/Player.ts +++ b/src/player/Player.ts @@ -112,11 +112,11 @@ class Player { playAnarchySFX(position: Position) { if (position.mate) { - sfx.snap.play(); + sfx.death.play(); } if (position.move?.flags && position.move.flags.includes("e")) { - sfx.fanfare.play(); + sfx.enPassant.play(); } if (position.move?.flags && position.move.flags.includes("p")) { @@ -132,12 +132,15 @@ class Player { sfx.brickTake.play(); break; case "n": - sfx.take.play(); - sfx.neigh.play(); + sfx.hit.play(); + sfx.horsyTake.play(); break; case "k": sfx.pipiTake.play(); break; + case "q": + sfx.deathTake.play(); + break; case "b": sfx.toyTake.play(); break; @@ -155,11 +158,14 @@ class Player { sfx.brickMove.play(); break; case "n": - sfx.snort.play(); + sfx.horsyMove.play(); break; case "k": sfx.pipiMove.play(); break; + case "q": + sfx.deathMove.play(); + break; case "b": sfx.toyMove.play(); break; diff --git a/src/player/sfx.ts b/src/player/sfx.ts index 6439844..5158d94 100644 --- a/src/player/sfx.ts +++ b/src/player/sfx.ts @@ -2,71 +2,87 @@ import { Howl } from "howler"; const sfx = { move: new Howl({ - src: ["/sfx/mp3/move.mp3"], + src: ["/sfx/move.mp3"], volume: 0.3, }), take: new Howl({ - src: ["/sfx/mp3/take.mp3"], + src: ["/sfx/take.mp3"], volume: 0.9, }), swap: new Howl({ - src: ["/sfx/mp3/swap.mp3"], + src: ["/sfx/swap.mp3"], volume: 0.6, }), snap: new Howl({ - src: ["/sfx/mp3/snap.mp3"], + src: ["/sfx/snap.mp3"], volume: 0.6, }), rewind: new Howl({ - src: ["/sfx/mp3/rewind.mp3"], + src: ["/sfx/rewind.mp3"], volume: 0.2, }), - snort: new Howl({ - src: ["/sfx/mp3/snort.mp3"], + enPassant: new Howl({ + src: ["/sfx/anarchy/en-passant.mp3"], + volume: 0.2, + }), + horsyMove: new Howl({ + src: ["/sfx/anarchy/horsy-move.mp3"], volume: 0.5, }), - neigh: new Howl({ - src: ["/sfx/mp3/neigh.mp3"], - volume: 0.5, - }), - fanfare: new Howl({ - src: ["/sfx/mp3/fanfare.mp3"], + horsyTake: new Howl({ + src: ["/sfx/anarchy/horsy-take.mp3"], volume: 0.5, }), brickMove: new Howl({ - src: ["/sfx/mp3/brick-move.mp3"], + src: ["/sfx/anarchy/brick-move.mp3"], volume: 0.3, }), brickTake: new Howl({ - src: ["/sfx/mp3/brick-take.mp3"], + src: ["/sfx/anarchy/brick-take.mp3"], volume: 0.2, }), brickCastle: new Howl({ - src: ["/sfx/mp3/brick-castle.mp3"], + src: ["/sfx/anarchy/brick-castle.mp3"], volume: 0.3, }), coneMove: new Howl({ - src: ["/sfx/mp3/cone-move.mp3"], + src: ["/sfx/anarchy/cone-move.mp3"], volume: 1, }), coneTake: new Howl({ - src: ["/sfx/mp3/cone-take.mp3"], + src: ["/sfx/anarchy/cone-take.mp3"], volume: 0.3, }), pipiMove: new Howl({ - src: ["/sfx/mp3/pipi-move.mp3"], - volume: 0.5, + src: ["/sfx/anarchy/pipi-take.mp3"], + volume: 0.2, }), pipiTake: new Howl({ - src: ["/sfx/mp3/pipi-take.mp3"], - volume: 0.3, + src: ["/sfx/anarchy/pipi-move.mp3"], + volume: 0.4, }), toyMove: new Howl({ - src: ["/sfx/mp3/toy-move.mp3"], - volume: 0.5, + src: ["/sfx/anarchy/toy-move.mp3"], + volume: 0.6, }), toyTake: new Howl({ - src: ["/sfx/toy-take.wav"], + src: ["/sfx/anarchy/toy-take.mp3"], + volume: 0.5, + }), + deathMove: new Howl({ + src: ["/sfx/anarchy/death-move.mp3"], + volume: 0.3, + }), + deathTake: new Howl({ + src: ["/sfx/anarchy/death-take.mp3"], + volume: 0.2, + }), + death: new Howl({ + src: ["/sfx/anarchy/checkmate.mp3"], + volume: 1, + }), + hit: new Howl({ + src: ["/sfx/anarchy/hit.mp3"], volume: 0.5, }), };