WIP
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 9.2 KiB |
BIN
public/sfx/mp3/toy-move.mp3
Normal file
BIN
public/sfx/toy-take.wav
Normal file
BIN
public/sfx/whoosh.flac
Normal file
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||