SlimeoosOdyssey/godot/villager_shared.tscn

35 lines
1.4 KiB
Plaintext
Raw Normal View History

2023-08-20 17:21:02 -06:00
[gd_scene load_steps=6 format=3 uid="uid://c4s6y758n77lw"]
2023-08-19 20:42:02 -06:00
[ext_resource type="PackedScene" uid="uid://dmtmign72vtlm" path="res://slime_shared.tscn" id="1_qm1jp"]
[ext_resource type="Script" path="res://Villager.gd" id="2_uf6mh"]
2023-08-20 17:21:02 -06:00
[ext_resource type="AudioStream" uid="uid://djbuw33cr12i" path="res://Sounds/happyslime.ogg" id="3_v720k"]
2023-08-19 20:42:02 -06:00
2023-08-20 13:29:27 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_k5rhc"]
2023-08-20 15:03:09 -06:00
radius = 0.055
2023-08-20 13:29:27 -06:00
[sub_resource type="SphereShape3D" id="SphereShape3D_wx128"]
radius = 0.1
2023-08-20 01:03:30 -06:00
2023-08-19 20:42:02 -06:00
[node name="villager" instance=ExtResource("1_qm1jp")]
script = ExtResource("2_uf6mh")
2023-08-20 13:24:04 -06:00
2023-08-20 13:29:27 -06:00
[node name="CollisionDetection" type="Area3D" parent="." index="2"]
[node name="slime_collision" type="CollisionShape3D" parent="CollisionDetection" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0408143, 0)
shape = SubResource("SphereShape3D_k5rhc")
[node name="Area3D" type="Area3D" parent="." index="3"]
2023-08-20 13:24:04 -06:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" index="0"]
2023-08-20 13:29:27 -06:00
shape = SubResource("SphereShape3D_wx128")
2023-08-20 13:24:04 -06:00
2023-08-20 17:21:02 -06:00
[node name="SoundTimer" type="Timer" parent="." index="5"]
wait_time = 45.0
[node name="happyslime" type="AudioStreamPlayer3D" parent="." index="6"]
stream = ExtResource("3_v720k")
2023-08-20 13:24:04 -06:00
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
2023-08-20 17:21:02 -06:00
[connection signal="timeout" from="SoundTimer" to="." method="_on_sound_timer_timeout"]