From b9c9a3b73a3bc5500ab785072b002d4aaaff1c78 Mon Sep 17 00:00:00 2001 From: JonShard Date: Tue, 28 Jul 2026 13:11:53 +0200 Subject: [PATCH] Add more snap_zone sounds --- Prefabs/despawning_item.gd | 2 -- Stations/Counter.tscn | 4 +++- Stations/Hob.tscn | 5 +++++ Stations/table.tscn | 17 +++++++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Prefabs/despawning_item.gd b/Prefabs/despawning_item.gd index 43b1cc6..a5462ed 100644 --- a/Prefabs/despawning_item.gd +++ b/Prefabs/despawning_item.gd @@ -23,12 +23,10 @@ func _ready() -> void: func _process(delta: float) -> void: - print("SpeedSquare: ", _rigid.linear_velocity.length_squared()) # if we're held or moving, reset timer and return if _pickable.get_picked_up_by() or _rigid.linear_velocity.length_squared() > pow(minimum_speed_square,2): _time_left = time_to_despawn get_parent().visible = true - print("DespawningItem resetting timer: ", get_parent()) return diff --git a/Stations/Counter.tscn b/Stations/Counter.tscn index aa5f8d0..c010d1f 100644 --- a/Stations/Counter.tscn +++ b/Stations/Counter.tscn @@ -1,7 +1,7 @@ [gd_scene format=3 uid="uid://efaec6ymgabo"] [ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="1_dlkho"] -[ext_resource type="AudioStream" uid="uid://claw3d2wnyr6a" path="res://Sounds/220212__gameaudio__ping-bing.wav" id="2_0aadn"] +[ext_resource type="AudioStream" uid="uid://bqtk1adk8umbx" path="res://Sounds/220197__gameaudio__click-basic.wav" id="2_0aadn"] [sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"] size = Vector3(0.6, 1, 0.6) @@ -36,6 +36,8 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.002, 0) shape = SubResource("BoxShape3D_1ntq7") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone" unique_id=1786831079] + [node name="CSGCombiner3D" type="CSGCombiner3D" parent="." unique_id=451757283] use_collision = true diff --git a/Stations/Hob.tscn b/Stations/Hob.tscn index f5b3a87..f1f0ea3 100644 --- a/Stations/Hob.tscn +++ b/Stations/Hob.tscn @@ -2,6 +2,7 @@ [ext_resource type="Script" uid="uid://bsn8vhv5adxdo" path="res://Stations/hob.gd" id="1_7jc4g"] [ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="2_er1dp"] +[ext_resource type="AudioStream" uid="uid://bqtk1adk8umbx" path="res://Sounds/220197__gameaudio__click-basic.wav" id="3_6oyg1"] [ext_resource type="PackedScene" uid="uid://bxbocxdaayvwx" path="res://UI/progress_bar.tscn" id="3_7uuqv"] [sub_resource type="BoxShape3D" id="BoxShape3D_kdxnr"] @@ -135,6 +136,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5270121, 0) collision_layer = 65536 collision_mask = 65540 script = ExtResource("2_er1dp") +stash_sound = ExtResource("3_6oyg1") snap_mode = 1 metadata/_custom_type_script = "uid://cquqe4f1m1sw6" @@ -142,6 +144,9 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.000975132, 0) shape = SubResource("BoxShape3D_7uuqv") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone" unique_id=1991627595] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.022546828, -0.5270121, 0.36528283) + [node name="CSGCombiner3D" type="CSGCombiner3D" parent="." unique_id=70901698] [node name="CSGBox3D" type="CSGBox3D" parent="CSGCombiner3D" unique_id=1111505172] diff --git a/Stations/table.tscn b/Stations/table.tscn index 4451e05..43465ff 100644 --- a/Stations/table.tscn +++ b/Stations/table.tscn @@ -2,6 +2,7 @@ [ext_resource type="Script" uid="uid://caeikc7e3igkd" path="res://Stations/table.gd" id="1_2vcpj"] [ext_resource type="Script" uid="uid://cquqe4f1m1sw6" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="1_8j1nt"] +[ext_resource type="AudioStream" uid="uid://daiv8ubwdbidf" path="res://Sounds/220195__gameaudio__click-wooden-1.wav" id="3_0s6ir"] [ext_resource type="PackedScene" uid="uid://bxbocxdaayvwx" path="res://UI/progress_bar.tscn" id="3_kjf1i"] [sub_resource type="BoxShape3D" id="BoxShape3D_24d3s"] @@ -35,6 +36,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.31874347, 0.5270121, 0) collision_layer = 65536 collision_mask = 65540 script = ExtResource("1_8j1nt") +stash_sound = ExtResource("3_0s6ir") snap_mode = 1 metadata/_custom_type_script = "uid://cquqe4f1m1sw6" @@ -42,11 +44,15 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0) shape = SubResource("SphereShape3D_dlkho") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone" unique_id=2135860710] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.022546828, -0.5270121, 0.36528283) + [node name="XRToolsSnapZone2" type="Area3D" parent="." unique_id=694448387 groups=["station"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.34755045, 0.5270121, 0) collision_layer = 65536 collision_mask = 65540 script = ExtResource("1_8j1nt") +stash_sound = ExtResource("3_0s6ir") snap_mode = 1 metadata/_custom_type_script = "uid://cquqe4f1m1sw6" @@ -54,11 +60,15 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0) shape = SubResource("SphereShape3D_dlkho") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone2" unique_id=709529410] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.022546828, -0.5270121, 0.36528283) + [node name="XRToolsSnapZone3" type="Area3D" parent="." unique_id=1734026785 groups=["station"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.012355864, 0.5270121, 0.33038777) collision_layer = 65536 collision_mask = 65540 script = ExtResource("1_8j1nt") +stash_sound = ExtResource("3_0s6ir") snap_mode = 1 metadata/_custom_type_script = "uid://cquqe4f1m1sw6" @@ -66,11 +76,15 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0) shape = SubResource("SphereShape3D_dlkho") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone3" unique_id=2000860662] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.022546828, -0.5270121, 0.36528283) + [node name="XRToolsSnapZone4" type="Area3D" parent="." unique_id=1358457948 groups=["station"]] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.022546828, 0.5270121, -0.36528283) collision_layer = 65536 collision_mask = 65540 script = ExtResource("1_8j1nt") +stash_sound = ExtResource("3_0s6ir") snap_mode = 1 metadata/_custom_type_script = "uid://cquqe4f1m1sw6" @@ -78,6 +92,9 @@ metadata/_custom_type_script = "uid://cquqe4f1m1sw6" transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.000975132, 0) shape = SubResource("SphereShape3D_dlkho") +[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="XRToolsSnapZone4" unique_id=790672192] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.022546828, -0.5270121, 0.36528283) + [node name="CSGCombiner3D" type="CSGCombiner3D" parent="." unique_id=2085635675] [node name="CSGBox3D" type="CSGBox3D" parent="CSGCombiner3D" unique_id=411048765]