Better lava

This commit is contained in:
bingus_violet 2024-03-17 21:56:16 -05:00
parent 4f70414ed9
commit d0d7899340
82 changed files with 1747 additions and 738 deletions

Binary file not shown.

View 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

View 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