This commit is contained in:
Maciej Caderek
2022-04-17 23:38:33 +02:00
parent b5c57ac684
commit 141bfc3fdb
35 changed files with 28 additions and 14 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/sfx/mp3/fanfare.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/move.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/neigh.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/sfx/mp3/rewind.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/snap.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/snort.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/swap.mp3 Normal file

Binary file not shown.

BIN
public/sfx/mp3/take.mp3 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/sfx/ogg/fanfare.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/move.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/neigh.ogg Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
public/sfx/ogg/rewind.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/snap.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/snort.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/swap.ogg Normal file

Binary file not shown.

BIN
public/sfx/ogg/take.ogg Normal file

Binary file not shown.

BIN
public/sfx/pipi-move.wav Normal file

Binary file not shown.

BIN
public/sfx/pipi-take.wav Normal file

Binary file not shown.

View File

@@ -135,6 +135,9 @@ class Player {
sfx.take.play();
sfx.neigh.play();
break;
case "k":
sfx.pipiTake.play();
break;
default:
sfx.take.play();
}
@@ -151,6 +154,9 @@ class Player {
case "n":
sfx.snort.play();
break;
case "k":
sfx.pipiMove.play();
break;
default:
sfx.move.play();
}

View File

@@ -2,55 +2,63 @@ import { Howl } from "howler";
const sfx = {
move: new Howl({
src: ["/sfx/move.wav"],
src: ["/sfx/mp3/move.mp3"],
volume: 0.3,
}),
take: new Howl({
src: ["/sfx/take.wav"],
src: ["/sfx/mp3/take.mp3"],
volume: 0.9,
}),
swap: new Howl({
src: ["/sfx/swap.wav"],
src: ["/sfx/mp3/swap.mp3"],
volume: 0.6,
}),
snap: new Howl({
src: ["/sfx/snap.wav"],
src: ["/sfx/mp3/snap.mp3"],
volume: 0.6,
}),
rewind: new Howl({
src: ["/sfx/rewind.wav"],
src: ["/sfx/mp3/rewind.mp3"],
volume: 0.2,
}),
snort: new Howl({
src: ["/sfx/snort.wav"],
src: ["/sfx/mp3/snort.mp3"],
volume: 0.5,
}),
neigh: new Howl({
src: ["/sfx/neigh.wav"],
src: ["/sfx/mp3/neigh.mp3"],
volume: 0.5,
}),
fanfare: new Howl({
src: ["/sfx/fanfare.wav"],
src: ["/sfx/mp3/fanfare.mp3"],
volume: 0.5,
}),
brickMove: new Howl({
src: ["/sfx/brick-move.wav"],
src: ["/sfx/mp3/brick-move.mp3"],
volume: 0.3,
}),
brickTake: new Howl({
src: ["/sfx/brick-take.wav"],
src: ["/sfx/mp3/brick-take.mp3"],
volume: 0.2,
}),
brickCastle: new Howl({
src: ["/sfx/brick-castle.wav"],
src: ["/sfx/mp3/brick-castle.mp3"],
volume: 0.3,
}),
coneMove: new Howl({
src: ["/sfx/cone-move.wav"],
volume: 0.3,
src: ["/sfx/mp3/cone-move.mp3"],
volume: 1,
}),
coneTake: new Howl({
src: ["/sfx/cone-take.wav"],
src: ["/sfx/mp3/cone-take.mp3"],
volume: 0.3,
}),
pipiMove: new Howl({
src: ["/sfx/mp3/pipi-move.mp3"],
volume: 0.5,
}),
pipiTake: new Howl({
src: ["/sfx/mp3/pipi-take.mp3"],
volume: 0.3,
}),
};