332 lines
12 KiB
Text
332 lines
12 KiB
Text
[gd_scene load_steps=35 format=3 uid="uid://w3ntt1yh1nq7"]
|
|
|
|
[ext_resource type="Script" uid="uid://lnmooufxbuym" path="res://main.gd" id="1_dp5o4"]
|
|
[ext_resource type="PackedScene" uid="uid://3oqyqft8w72m" path="res://selectable.tscn" id="3_g5hfc"]
|
|
[ext_resource type="Script" uid="uid://c3dlxuhruho8c" path="res://operation/feedback_canvas_modulate.gd" id="4_0odxb"]
|
|
[ext_resource type="Texture2D" uid="uid://bicjfwpoa3pma" path="res://operation/test_table.png" id="5_lswn8"]
|
|
[ext_resource type="Texture2D" uid="uid://ccy71gl4qatjy" path="res://operation/pliers.png" id="17_b1qrp"]
|
|
[ext_resource type="Script" uid="uid://crkr8emyhv1fo" path="res://operation/pliers.gd" id="18_come4"]
|
|
[ext_resource type="PackedScene" uid="uid://c3of67m4ic212" path="res://operation/pickup_area.tscn" id="19_h8e4i"]
|
|
[ext_resource type="Texture2D" uid="uid://cg3dg7iqif56d" path="res://operation/test_scalpel.png" id="20_4lmeg"]
|
|
[ext_resource type="Script" uid="uid://cqnproj5khm5a" path="res://operation/test_scalpel.gd" id="21_0cp0l"]
|
|
[ext_resource type="Shape2D" uid="uid://bo77ihhtxfueg" path="res://operation/scalpel_pickup_area_collision_shape.tres" id="22_d2t1y"]
|
|
[ext_resource type="Script" uid="uid://drfykuqe2phdt" path="res://operation/bat_dropoff.gd" id="23_gngh3"]
|
|
|
|
[sub_resource type="Gradient" id="Gradient_qkope"]
|
|
offsets = PackedFloat32Array(0.0372881)
|
|
colors = PackedColorArray(0.466181, 0.466181, 0.466181, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_p6qcv"]
|
|
gradient = SubResource("Gradient_qkope")
|
|
width = 1152
|
|
|
|
[sub_resource type="Gradient" id="Gradient_wb6aq"]
|
|
offsets = PackedFloat32Array(0.0372881)
|
|
colors = PackedColorArray(0.281175, 0.300745, 0.258554, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ij864"]
|
|
gradient = SubResource("Gradient_wb6aq")
|
|
width = 1152
|
|
|
|
[sub_resource type="Gradient" id="Gradient_fq5io"]
|
|
offsets = PackedFloat32Array(0.272085)
|
|
colors = PackedColorArray(0.202521, 0.371426, 0.429081, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_ty4ro"]
|
|
gradient = SubResource("Gradient_fq5io")
|
|
width = 100
|
|
height = 200
|
|
fill_from = Vector2(0.5, 0)
|
|
fill_to = Vector2(0.5, 1)
|
|
|
|
[sub_resource type="Gradient" id="Gradient_ncwe7"]
|
|
offsets = PackedFloat32Array(0.282686)
|
|
colors = PackedColorArray(0.368627, 0, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_ftstk"]
|
|
gradient = SubResource("Gradient_ncwe7")
|
|
width = 170
|
|
height = 170
|
|
|
|
[sub_resource type="Gradient" id="Gradient_b76e3"]
|
|
offsets = PackedFloat32Array(0.240678)
|
|
colors = PackedColorArray(0.737193, 0.737193, 0.737193, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_soglf"]
|
|
gradient = SubResource("Gradient_b76e3")
|
|
width = 1
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1u8w0"]
|
|
size = Vector2(286, 635)
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1a0oe"]
|
|
radius = 7.10071
|
|
height = 206.493
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_f4g1u"]
|
|
radius = 7.10071
|
|
height = 193.839
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_efxa6"]
|
|
radius = 8.24621
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_8w656"]
|
|
radius = 8.24621
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_qmwrh"]
|
|
radius = 5.65684
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0odxb"]
|
|
size = Vector2(110, 65)
|
|
|
|
[sub_resource type="Gradient" id="Gradient_vivmo"]
|
|
offsets = PackedFloat32Array(0.353357, 0.929329, 1)
|
|
colors = PackedColorArray(0, 0, 0, 1, 0.498233, 0.498233, 0.498233, 1, 1, 1, 1, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_2cqfq"]
|
|
gradient = SubResource("Gradient_vivmo")
|
|
width = 32
|
|
height = 128
|
|
|
|
[sub_resource type="Gradient" id="Gradient_ycdy4"]
|
|
offsets = PackedFloat32Array(0.151943)
|
|
colors = PackedColorArray(0.19, 0.164287, 0.1368, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_w48qg"]
|
|
gradient = SubResource("Gradient_ycdy4")
|
|
width = 32
|
|
|
|
[sub_resource type="Gradient" id="Gradient_efxa6"]
|
|
offsets = PackedFloat32Array(0.116608)
|
|
colors = PackedColorArray(0.61, 0.527447, 0.4392, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_dg77c"]
|
|
gradient = SubResource("Gradient_efxa6")
|
|
width = 32
|
|
|
|
[node name="Main" type="Node2D"]
|
|
script = ExtResource("1_dp5o4")
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
top_level = true
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="TextBox" type="MarginContainer" parent="UI"]
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -259.0
|
|
offset_top = -33.0
|
|
offset_right = 259.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_constants/margin_left = 5
|
|
theme_override_constants/margin_top = 5
|
|
theme_override_constants/margin_right = 5
|
|
theme_override_constants/margin_bottom = 5
|
|
|
|
[node name="TextBoxLabel" type="RichTextLabel" parent="UI/TextBox"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "Test"
|
|
|
|
[node name="FeedbackCanvasModulate" type="CanvasModulate" parent="." groups=["effects"]]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("4_0odxb")
|
|
|
|
[node name="Room" type="Node2D" parent="."]
|
|
|
|
[node name="RoomFloor" type="Sprite2D" parent="Room"]
|
|
position = Vector2(576, 325.25)
|
|
scale = Vector2(1.001, 652)
|
|
texture = SubResource("GradientTexture1D_p6qcv")
|
|
|
|
[node name="RoomWall" type="Sprite2D" parent="Room"]
|
|
position = Vector2(578, -71)
|
|
scale = Vector2(1.001, 652)
|
|
texture = SubResource("GradientTexture1D_ij864")
|
|
|
|
[node name="Bob" type="Sprite2D" parent="Room"]
|
|
position = Vector2(242, 258)
|
|
texture = SubResource("GradientTexture2D_ty4ro")
|
|
|
|
[node name="Selectable" parent="Room/Bob" instance=ExtResource("3_g5hfc")]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/Bob/Selectable"]
|
|
polygon = PackedVector2Array(-50, 100, -50, -100, 50, -100, 50, 100)
|
|
|
|
[node name="Label" type="Label" parent="Room/Bob"]
|
|
offset_top = 2.0
|
|
offset_right = 40.0
|
|
offset_bottom = 25.0
|
|
text = "Bob"
|
|
|
|
[node name="RitualPlace" type="Sprite2D" parent="Room"]
|
|
position = Vector2(469, 390)
|
|
texture = SubResource("GradientTexture2D_ftstk")
|
|
|
|
[node name="Selectable" parent="Room/RitualPlace" instance=ExtResource("3_g5hfc")]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Room/RitualPlace/Selectable"]
|
|
polygon = PackedVector2Array(-85, 85, -85, -85, 85, -85, 85, 85)
|
|
|
|
[node name="Label" type="Label" parent="Room/RitualPlace"]
|
|
offset_left = -41.0
|
|
offset_top = 44.0
|
|
offset_right = 49.0
|
|
offset_bottom = 67.0
|
|
text = "Ritual place"
|
|
|
|
[node name="Shelves" type="Node2D" parent="."]
|
|
top_level = true
|
|
position = Vector2(1004, 324.5)
|
|
|
|
[node name="ShelvesBackground" type="Sprite2D" parent="Shelves"]
|
|
scale = Vector2(300, 655)
|
|
texture = SubResource("GradientTexture1D_soglf")
|
|
|
|
[node name="UtilsDropoff" type="Node2D" parent="Shelves"]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="Area2D" type="Area2D" parent="Shelves/UtilsDropoff"]
|
|
collision_layer = 2
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shelves/UtilsDropoff/Area2D"]
|
|
shape = SubResource("RectangleShape2D_1u8w0")
|
|
|
|
[node name="Pliers" type="Sprite2D" parent="Shelves" groups=["grabber"]]
|
|
z_index = 10
|
|
position = Vector2(0, -206.5)
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("17_b1qrp")
|
|
offset = Vector2(76, -78)
|
|
script = ExtResource("18_come4")
|
|
|
|
[node name="PickupArea" parent="Shelves/Pliers" instance=ExtResource("19_h8e4i")]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shelves/Pliers/PickupArea"]
|
|
position = Vector2(76, -60)
|
|
rotation = 1.00484
|
|
shape = SubResource("CapsuleShape2D_1a0oe")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Shelves/Pliers/PickupArea"]
|
|
position = Vector2(46, -80)
|
|
rotation = 0.363771
|
|
shape = SubResource("CapsuleShape2D_f4g1u")
|
|
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Shelves/Pliers/PickupArea"]
|
|
shape = SubResource("CircleShape2D_efxa6")
|
|
|
|
[node name="GrabArea" type="Area2D" parent="Shelves/Pliers"]
|
|
collision_layer = 8
|
|
collision_mask = 8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shelves/Pliers/GrabArea"]
|
|
shape = SubResource("CircleShape2D_8w656")
|
|
debug_color = Color(0.879882, 0.304191, 0.394852, 0.42)
|
|
|
|
[node name="Scalpel" type="Sprite2D" parent="Shelves" groups=["cutter"]]
|
|
z_index = 10
|
|
position = Vector2(-72.9391, -140.263)
|
|
rotation = -2.00713
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("20_4lmeg")
|
|
offset = Vector2(-8.44019, 66.5461)
|
|
script = ExtResource("21_0cp0l")
|
|
|
|
[node name="PickupArea" parent="Shelves/Scalpel" instance=ExtResource("19_h8e4i")]
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Shelves/Scalpel/PickupArea"]
|
|
position = Vector2(-7.59496, 64.7336)
|
|
shape = ExtResource("22_d2t1y")
|
|
|
|
[node name="CutArea" type="Area2D" parent="Shelves/Scalpel"]
|
|
collision_layer = 5
|
|
collision_mask = 5
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shelves/Scalpel/CutArea"]
|
|
position = Vector2(0.481193, 0.0901661)
|
|
shape = SubResource("CircleShape2D_qmwrh")
|
|
debug_color = Color(0.879882, 0.304191, 0.394852, 0.42)
|
|
|
|
[node name="CutHurtTimer" type="Timer" parent="Shelves/Scalpel"]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="BatDropoff" type="Node2D" parent="Shelves" groups=["bat_dropoff"]]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("23_gngh3")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Shelves/BatDropoff"]
|
|
rotation = 1.5708
|
|
scale = Vector2(0.208791, 0.204598)
|
|
texture = ExtResource("5_lswn8")
|
|
|
|
[node name="Area2D" type="Area2D" parent="Shelves/BatDropoff"]
|
|
collision_layer = 8
|
|
collision_mask = 8
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shelves/BatDropoff/Area2D"]
|
|
scale = Vector2(0.983051, 1)
|
|
shape = SubResource("RectangleShape2D_0odxb")
|
|
|
|
[node name="RitualBook" type="Node2D" parent="Shelves"]
|
|
position = Vector2(-92, 240.5)
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Shelves/RitualBook"]
|
|
texture = SubResource("GradientTexture2D_2cqfq")
|
|
|
|
[node name="Selectable" parent="Shelves/RitualBook/Sprite2D" instance=ExtResource("3_g5hfc")]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shelves/RitualBook/Sprite2D/Selectable"]
|
|
polygon = PackedVector2Array(-16, -64, -16, 64, 16, 64, 16, -64)
|
|
|
|
[node name="Label" type="Label" parent="Shelves/RitualBook"]
|
|
offset_left = -17.0
|
|
offset_top = 40.5
|
|
offset_right = 68.0
|
|
offset_bottom = 63.5
|
|
rotation = -1.5708
|
|
text = "Rituals 101"
|
|
|
|
[node name="Map" type="Node2D" parent="Shelves"]
|
|
position = Vector2(43, 200.5)
|
|
|
|
[node name="Sprite2D2" type="Sprite2D" parent="Shelves/Map"]
|
|
position = Vector2(2, 2.5)
|
|
skew = 0.115192
|
|
texture = SubResource("GradientTexture2D_w48qg")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Shelves/Map"]
|
|
skew = 0.115192
|
|
texture = SubResource("GradientTexture2D_dg77c")
|
|
|
|
[node name="Selectable" parent="Shelves/Map/Sprite2D" instance=ExtResource("3_g5hfc")]
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shelves/Map/Sprite2D/Selectable"]
|
|
polygon = PackedVector2Array(-16, -32, -16, 32, 16, 32, 16, -32)
|
|
|
|
[node name="Label" type="Label" parent="Shelves/Map"]
|
|
offset_left = -13.0
|
|
offset_top = 17.5
|
|
offset_right = 27.0
|
|
offset_bottom = 39.8333
|
|
rotation = -1.49051
|
|
text = "Map"
|
|
|
|
[connection signal="clicked" from="Room/Bob/Selectable" to="." method="_on_bob_clicked"]
|
|
[connection signal="clicked" from="Room/RitualPlace/Selectable" to="." method="_on_ritual_place_clicked"]
|
|
[connection signal="input_event" from="Shelves/Pliers/GrabArea" to="Shelves/Pliers" method="_on_grab_area_input_event"]
|
|
[connection signal="area_entered" from="Shelves/Scalpel/CutArea" to="Shelves/Scalpel" method="_on_cut_area_area_entered"]
|
|
[connection signal="area_exited" from="Shelves/Scalpel/CutArea" to="Shelves/Scalpel" method="_on_cut_area_area_exited"]
|
|
[connection signal="timeout" from="Shelves/Scalpel/CutHurtTimer" to="Shelves/Scalpel" method="_on_cut_hurt_timer_timeout"]
|
|
[connection signal="clicked" from="Shelves/RitualBook/Sprite2D/Selectable" to="." method="_on_ritual_book_clicked"]
|
|
[connection signal="clicked" from="Shelves/Map/Sprite2D/Selectable" to="." method="_on_map_selectable_clicked"]
|