Files
ai-game-2/scenes/healers/healers.tscn
2024-06-03 20:25:42 -07:00

177 lines
6.1 KiB
Plaintext

[gd_scene load_steps=13 format=3 uid="uid://dpsa6s5erb0ws"]
[ext_resource type="Script" path="res://scenes/farmhouse/farmhouse.gd" id="1_51r6v"]
[ext_resource type="Script" path="res://SetPiece_.gd" id="2_j681b"]
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_eyrgf"]
[ext_resource type="Texture2D" uid="uid://bj44850m5xlfn" path="res://scenes/healers/image6.png" id="4_kylj3"]
[ext_resource type="Texture2D" uid="uid://cc32vj8gx56iv" path="res://scenes/healers/rocks.png" id="5_45r0t"]
[ext_resource type="Texture2D" uid="uid://5ooe4wjgrsl1" path="res://spray.png" id="6_3rr0a"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
vertices = PackedVector2Array(-112, 892, 851, 886, 910, 914, 1003, 959, 809, 968, 516, 951, 507, 1007, 750, 1048, 626, 1104, 383, 1138, 392, 1082, 216, 1112, -194, 1093)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4, 5), PackedInt32Array(6, 7, 8, 9, 10), PackedInt32Array(10, 11, 12, 0, 5, 6)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-119, 883, -209, 1103, 218, 1123, 507, 1072, 524, 962, 809, 979, 1042, 968, 914, 905, 853, 876), PackedVector2Array(400, 979, 371, 1150, 629, 1114, 784, 1044, 388, 977)])
source_geometry_group_name = &"navigation_polygon_source_group"
[sub_resource type="Animation" id="Animation_ij55e"]
resource_name = "focus_thing"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("camera.position.x")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [null, null]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cuet8"]
_data = {
"focus_thing": SubResource("Animation_ij55e")
}
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_0pokw"]
blend_mode = 1
[sub_resource type="Gradient" id="Gradient_admud"]
colors = PackedColorArray(1, 1, 1, 0.309804, 1, 1, 1, 0)
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_2xtme"]
blend_mode = 1
[node name="background" type="Node2D"]
y_sort_enabled = true
position = Vector2(0, -4)
script = ExtResource("1_51r6v")
[node name="SetPiece" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2(78, 6)
polygon = PackedVector2Array(1469, 886, 1460, 1102, 1787, 1042, 1744, 843)
script = ExtResource("2_j681b")
label = "Thing"
[node name="thingpoint" type="Node2D" parent="SetPiece"]
position = Vector2(1635, 1005)
[node name="pasture-exit-point" type="Node2D" parent="."]
position = Vector2(-237, 956)
[node name="pasture-entrance-point" type="Node2D" parent="."]
position = Vector2(131, 970)
[node name="pasture-exit" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2(-1608, -1313)
color = Color(1, 1, 1, 0.262745)
polygon = PackedVector2Array(1152, 2147, 870, 2239, 634, 2309, 1881, 2362, 1720, 2157)
script = ExtResource("2_j681b")
label = "To pasture"
[node name="entrance-exit" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2(-1359.48, -105.371)
scale = Vector2(0.565934, 0.507143)
color = Color(1, 1, 1, 0.262745)
polygon = PackedVector2Array(3252, 1172, 2984, 1324, 2980, 1452, 3060, 1732, 3344, 1704)
script = ExtResource("2_j681b")
label = "open door"
[node name="StartScalePoint" type="Node2D" parent="."]
position = Vector2(1476, 742)
script = ExtResource("3_eyrgf")
target_scale = 0.135
[node name="EndScalePoint" type="Node2D" parent="."]
position = Vector2(1408, 1097)
scale = Vector2(0.44, 0.44)
script = ExtResource("3_eyrgf")
target_scale = 0.425
[node name="entrance-exit-point" type="Node2D" parent="."]
position = Vector2(1056, 1066)
[node name="bg" type="Sprite2D" parent="."]
scale = Vector2(1.27, 1.27)
texture = ExtResource("4_kylj3")
centered = false
metadata/_edit_lock_ = true
[node name="pathfind" type="NavigationRegion2D" parent="."]
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
[node name="Rocks" type="Sprite2D" parent="."]
position = Vector2(762, 1008)
rotation = -6.28318
scale = Vector2(1.27, 1.27)
texture = ExtResource("5_45r0t")
offset = Vector2(-3.93726, -33.8582)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_cuet8")
}
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
modulate = Color(1, 1, 1, 0.0823529)
material = SubResource("CanvasItemMaterial_0pokw")
position = Vector2(1255, 752)
amount = 14
lifetime = 2.55
lifetime_randomness = 0.04
local_coords = true
texture = ExtResource("6_3rr0a")
emission_shape = 3
emission_rect_extents = Vector2(45.235, 1)
direction = Vector2(0, -13.92)
spread = 94.88
gravity = Vector2(0, -5.455)
initial_velocity_min = 24.33
initial_velocity_max = 73.42
damping_min = 62.21
damping_max = 62.21
scale_amount_min = 0.1
scale_amount_max = 2.0
color_ramp = SubResource("Gradient_admud")
[node name="CPUParticles2D2" type="CPUParticles2D" parent="."]
modulate = Color(1, 1, 1, 0.0823529)
position = Vector2(1694, 741)
amount = 37
local_coords = true
texture = ExtResource("6_3rr0a")
emission_shape = 3
emission_rect_extents = Vector2(45.235, 1)
direction = Vector2(0, -13.92)
spread = 94.88
gravity = Vector2(0, -5.455)
initial_velocity_min = 83.45
initial_velocity_max = 83.45
damping_min = 0.365
damping_max = 0.365
color_ramp = SubResource("Gradient_admud")
[node name="CPUParticles2D3" type="CPUParticles2D" parent="."]
modulate = Color(1, 1, 1, 0.0823529)
material = SubResource("CanvasItemMaterial_2xtme")
position = Vector2(1221, 529)
scale = Vector2(1.78, 1.78)
amount = 14
local_coords = true
texture = ExtResource("6_3rr0a")
emission_shape = 3
emission_rect_extents = Vector2(45.235, 1)
direction = Vector2(0, -13.92)
spread = 94.88
gravity = Vector2(0, -5.455)
initial_velocity_min = 21.65
initial_velocity_max = 21.65
damping_min = 0.365
damping_max = 0.365
color_ramp = SubResource("Gradient_admud")
[connection signal="entered_from_pasture" from="." to="." method="_on_entered_from_pasture"]
[connection signal="interacted" from="SetPiece" to="." method="_on_set_piece_interacted"]
[connection signal="interacted" from="pasture-exit" to="." method="_on_pasture_exit_interacted"]
[connection signal="interacted" from="entrance-exit" to="." method="_on_entranceexit_interacted"]