Item collection SFX

This commit is contained in:
Rob Kelly 2024-12-14 14:32:56 -07:00
parent a65d08599f
commit e7c659e5dc
1 changed files with 30 additions and 1 deletions

View File

@ -1,10 +1,11 @@
[gd_scene load_steps=29 format=3 uid="uid://comd88yp45mnb"]
[gd_scene load_steps=30 format=3 uid="uid://comd88yp45mnb"]
[ext_resource type="PackedScene" uid="uid://djfbit4v0qncc" path="res://assets/models/items/octahedron.gltf" id="1_a0q17"]
[ext_resource type="Script" path="res://src/items/item/item.gd" id="1_kesm6"]
[ext_resource type="Material" uid="uid://c5hidbq5gbmr" path="res://assets/materials/crystal.tres" id="2_dtimm"]
[ext_resource type="Shader" path="res://src/shaders/spatial_shine.gdshader" id="5_hvjqo"]
[ext_resource type="Texture2D" uid="uid://du3vk5nnksohs" path="res://assets/sprites/particles/sparkle.png" id="5_k1sdu"]
[ext_resource type="AudioStream" uid="uid://8uynlpios7u1" path="res://assets/sound/sfx/ui/ecofuture2.wav" id="6_f5kbg"]
[sub_resource type="Animation" id="Animation_7sxyq"]
length = 0.001
@ -356,6 +357,18 @@ tracks/5/keys = {
"points": PackedFloat32Array(1, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0)
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath("CollectionChime:playing")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_niure"]
resource_name = "explode"
@ -443,6 +456,18 @@ tracks/6/keys = {
"points": PackedFloat32Array(1, -0.25, 0, 0.2, 0.8, 0, -0.25, 0, 0.25, 0),
"times": PackedFloat32Array(0.0666667, 0.366667)
}
tracks/7/type = "value"
tracks/7/imported = false
tracks/7/enabled = true
tracks/7/path = NodePath("CollectionChime:playing")
tracks/7/interp = 1
tracks/7/loop_wrap = true
tracks/7/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_lqra6"]
_data = {
@ -511,6 +536,10 @@ libraries = {
"": SubResource("AnimationLibrary_lqra6")
}
[node name="CollectionChime" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_f5kbg")
bus = &"SFX"
[connection signal="body_entered" from="Pivot/CollectionArea" to="." method="_on_collection_area_body_entered"]
[editable path="Pivot/Octahedron"]