Skip to content

Commit

Permalink
Tweak footsteps in opposite direction
Browse files Browse the repository at this point in the history
  • Loading branch information
nicross committed Jul 4, 2021
1 parent bcab921 commit 544023c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/content/sfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ content.sfx.footstep = function ({
}).connect(destination)

const duration = 0.5,
gain = engine.utility.fromDb(engine.utility.lerp(-13.5, -7.5, velocity)),
gain = engine.utility.fromDb(engine.utility.lerp(-14, -8, velocity)),
now = engine.audio.time()

synth.param.gain.exponentialRampToValueAtTime(gain, now + 1/32)
Expand Down

0 comments on commit 544023c

Please sign in to comment.