Skip to content

Commit

Permalink
chore(drop-and-fusion): tweak sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Jan 12, 2024
1 parent c2a9a7b commit 2714073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/drop-and-fusion.game.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ function attachGameEvents() {
if (type === 'fusion') {
if (props.gameMode === 'yen') {
sound.playUrl('/client-assets/drop-and-fusion/fusion_yen.mp3', {
volume: 0.3 * params.volume * sfxVolume.value,
volume: 0.25 * params.volume * sfxVolume.value,
pan: params.pan,
playbackRate: (params.pitch / 4) * replayPlaybackRate.value,
});
Expand All @@ -1104,7 +1104,7 @@ function attachGameEvents() {
sound.playUrl('/client-assets/drop-and-fusion/collision_yen.mp3', {
volume: params.volume * sfxVolume.value,
pan: params.pan,
playbackRate: params.pitch * replayPlaybackRate.value,
playbackRate: Math.max(1, params.pitch) * replayPlaybackRate.value,
});
} else {
sound.playUrl('/client-assets/drop-and-fusion/collision.mp3', {
Expand Down

0 comments on commit 2714073

Please sign in to comment.