Skip to content

Commit

Permalink
Work around an edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Feb 24, 2022
1 parent 78c11ce commit 93bea67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oh-shit-waddup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ class Prop
if juggling
@play_sound("whoosh", { playback_rate_variation: 0.2 })
else
@play_sound("bounce", { playback_rate: Math.pow(@vy / -15, 1.2) + 0.2, volume: 0.5 })
@play_sound("bounce", { playback_rate: Math.pow(Math.abs(@vy / 15), 1.2) + 0.2, volume: 0.5 })
else
@play_sound("bounce", { playback_rate: Math.pow(@vy / -15, 1.2) + 0.2, volume: 0.2 })
@play_sound("bounce", { playback_rate: Math.pow(Math.abs(@vy / 15), 1.2) + 0.2, volume: 0.2 })

start_engine: ->
if @type isnt "chainsaw" and @type isnt "table_saw"
Expand Down

0 comments on commit 93bea67

Please sign in to comment.