This commit is contained in:
Spencer Killen 2023-01-04 00:36:31 -07:00
parent ce2677962e
commit 9bda7685a1
Signed by: sjkillen
GPG Key ID: F307025B65C860BA
6 changed files with 72 additions and 1 deletions

View File

@ -0,0 +1,3 @@
source_md5="55dea53eea36f6ad35e65b44213662da"
dest_md5="228deed4860087efddb6df42ddfe5f04"

BIN
godot/assets/audio/oob.wav Normal file

Binary file not shown.

View File

@ -0,0 +1,23 @@
[remap]
importer="wav"
type="AudioStreamSample"
path="res://.import/oob.wav-ba8fd936fc73ee5c7c2e525a503f94a1.sample"
[deps]
source_file="res://assets/audio/oob.wav"
dest_files=[ "res://.import/oob.wav-ba8fd936fc73ee5c7c2e525a503f94a1.sample" ]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=2
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

View File

@ -0,0 +1,27 @@
extends Area
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_Area_body_entered(body):
if body.get_parent() != Util.player:
return
$AudioStreamPlayer.stop()
func _on_Area_body_exited(body):
if body.get_parent() != Util.player:
return
$AudioStreamPlayer.play()

File diff suppressed because one or more lines are too long