Add short fade-in ramp to local movement footsteps

This commit is contained in:
Jage9
2026-02-22 19:33:42 -05:00
parent 7ba67c3707
commit 391100a00e
3 changed files with 10 additions and 4 deletions

View File

@@ -1136,7 +1136,7 @@ function handleMovement(): void {
persistPlayerPosition();
state.player.lastMoveTime = now;
void refreshAudioSubscriptions(true);
void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN);
void audio.playSample(randomFootstepUrl(), FOOTSTEP_GAIN, 40);
signaling.send({ type: 'update_position', x: nextX, y: nextY });
const namesOnTile = getPeerNamesAtPosition(nextX, nextY);