Better lava
This commit is contained in:
parent
4f70414ed9
commit
d0d7899340
82 changed files with 1747 additions and 738 deletions
BIN
Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav
Normal file
BIN
Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav
Normal file
Binary file not shown.
24
Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav.import
Normal file
24
Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://d1rabaeyx578u"
|
||||
path="res://.godot/imported/WallSlide.wav-9978fc2ada42c1cdff054ba186d3defa.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Player/BasicCharacter/Sounds/WallSlide/WallSlide.wav"
|
||||
dest_files=["res://.godot/imported/WallSlide.wav-9978fc2ada42c1cdff054ba186d3defa.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/loop_mode=3
|
||||
edit/loop_begin=10000
|
||||
edit/loop_end=-5000
|
||||
compress/mode=0
|
11
Player/BasicCharacter/Sounds/WallSlide/WallslideSound.gd
Normal file
11
Player/BasicCharacter/Sounds/WallSlide/WallslideSound.gd
Normal file
|
@ -0,0 +1,11 @@
|
|||
extends AudioStreamPlayer2D
|
||||
|
||||
@onready var player = $"../../"
|
||||
|
||||
func _physics_process(delta):
|
||||
pitch_scale = lerp(pitch_scale, abs(player.velocity.y) / 200, delta * 5)
|
||||
|
||||
if player.isWallSliding() and playing == false:
|
||||
playing = true
|
||||
elif player.isWallSliding() == false:
|
||||
playing = false
|
Loading…
Add table
Add a link
Reference in a new issue