2023-01-01 14:54:37 -07:00
|
|
|
[gd_scene load_steps=8 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://assets/squirrel_model.tscn" type="PackedScene" id=1]
|
|
|
|
[ext_resource path="res://assets/creature_animation.tscn" type="PackedScene" id=2]
|
|
|
|
[ext_resource path="res://animated_creature.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://CursorInteractArea.tscn" type="PackedScene" id=4]
|
|
|
|
[ext_resource path="res://assets/audio/squirrel.ogg" type="AudioStream" id=5]
|
|
|
|
[ext_resource path="res://Sound.gd" type="Script" id=6]
|
|
|
|
|
2023-06-05 08:00:14 -06:00
|
|
|
[sub_resource type="BoxShape3D" id=1]
|
2023-01-01 14:54:37 -07:00
|
|
|
|
2023-06-05 08:00:14 -06:00
|
|
|
[node name="AnimatedSquirrel" type="Node3D"]
|
2023-01-01 14:54:37 -07:00
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="creature" parent="." instance=ExtResource( 2 )]
|
|
|
|
|
|
|
|
[node name="squirrel_model" parent="creature/animated" index="0" instance=ExtResource( 1 )]
|
2023-06-05 08:00:14 -06:00
|
|
|
transform = Transform3D( 0.492546, 0, 0.0860131, 0, 0.5, 0, -0.0860131, 0, 0.492546, -0.242217, -0.0997212, -1.38703 )
|
2023-01-01 14:54:37 -07:00
|
|
|
|
2023-06-05 08:00:14 -06:00
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
2023-01-01 14:54:37 -07:00
|
|
|
|
2023-06-05 08:00:14 -06:00
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
|
|
|
transform = Transform3D( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 1.39319, 0.163039 )
|
2023-01-01 14:54:37 -07:00
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
|
|
|
[node name="GoalInteractArea" parent="." instance=ExtResource( 4 )]
|
2023-06-05 08:00:14 -06:00
|
|
|
transform = Transform3D( 4, 0, 0, 0, 3.046, 0, 0, 0, 4, 0, 1.29309, 0 )
|
2023-01-01 14:54:37 -07:00
|
|
|
on_interact_func = "_on_Cursor_goal"
|
|
|
|
call_array = [ "squirrel" ]
|
|
|
|
|
|
|
|
[node name="Sound" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource( 5 )
|
|
|
|
script = ExtResource( 6 )
|
|
|
|
|
|
|
|
[connection signal="interact" from="GoalInteractArea" to="Sound" method="play_sound"]
|
|
|
|
|
|
|
|
[editable path="creature"]
|