diff --git a/public/pieces/anarchy/bb.svg b/public/pieces/anarchy/bb.svg index fc948eb..92a2743 100644 --- a/public/pieces/anarchy/bb.svg +++ b/public/pieces/anarchy/bb.svg @@ -1,5 +1,14 @@ - - - + + + + + + + + + + + + diff --git a/public/pieces/anarchy/bw.svg b/public/pieces/anarchy/bw.svg index 6b7fc10..e2596f2 100644 --- a/public/pieces/anarchy/bw.svg +++ b/public/pieces/anarchy/bw.svg @@ -1,5 +1,14 @@ - - - + + + + + + + + + + + + diff --git a/public/pieces/anarchy/rb.svg b/public/pieces/anarchy/rb.svg index c9112ae..87cb62a 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 003f936..bd1c060 100644 --- a/public/pieces/anarchy/rw.svg +++ b/public/pieces/anarchy/rw.svg @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/public/sfx/mp3/toy-move.mp3 b/public/sfx/mp3/toy-move.mp3 new file mode 100644 index 0000000..b5144cd Binary files /dev/null and b/public/sfx/mp3/toy-move.mp3 differ diff --git a/public/sfx/toy-take.wav b/public/sfx/toy-take.wav new file mode 100644 index 0000000..3d9eb52 Binary files /dev/null and b/public/sfx/toy-take.wav differ diff --git a/public/sfx/whoosh.flac b/public/sfx/whoosh.flac new file mode 100644 index 0000000..3679176 Binary files /dev/null and b/public/sfx/whoosh.flac differ diff --git a/src/player/Player.ts b/src/player/Player.ts index 8646031..d6a5883 100644 --- a/src/player/Player.ts +++ b/src/player/Player.ts @@ -138,6 +138,9 @@ class Player { case "k": sfx.pipiTake.play(); break; + case "b": + sfx.toyTake.play(); + break; default: sfx.take.play(); } @@ -157,6 +160,9 @@ class Player { case "k": sfx.pipiMove.play(); break; + case "b": + sfx.toyMove.play(); + break; default: sfx.move.play(); } diff --git a/src/player/sfx.ts b/src/player/sfx.ts index 9b4b177..6439844 100644 --- a/src/player/sfx.ts +++ b/src/player/sfx.ts @@ -61,6 +61,14 @@ const sfx = { src: ["/sfx/mp3/pipi-take.mp3"], volume: 0.3, }), + toyMove: new Howl({ + src: ["/sfx/mp3/toy-move.mp3"], + volume: 0.5, + }), + toyTake: new Howl({ + src: ["/sfx/toy-take.wav"], + volume: 0.5, + }), }; export default sfx;