Makes lots of new screens

This commit is contained in:
2024-07-01 08:24:25 -07:00
parent 559f479db4
commit 8b5841e861
40 changed files with 944 additions and 222 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=25 format=3 uid="uid://dpsa6s5erb0ws"]
[gd_scene load_steps=26 format=3 uid="uid://dpsa6s5erb0ws"]
[ext_resource type="Script" path="res://SetPiece_.gd" id="2_j681b"]
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_eyrgf"]
@@ -16,6 +16,7 @@
[ext_resource type="Texture2D" uid="uid://b41bmarvyd3td" path="res://scenes/healers/New Folder/out_00010_.png" id="15_j0app"]
[ext_resource type="Texture2D" uid="uid://fj1h0ywepx08" path="res://scenes/healers/New Folder/out_00011_.png" id="16_4a0fq"]
[ext_resource type="Texture2D" uid="uid://c7uulvgn8wsga" path="res://scenes/healers/goat.png" id="17_i0x0u"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="17_wwn3l"]
[sub_resource type="GDScript" id="GDScript_bel53"]
script/source = "extends Scene
@@ -51,17 +52,6 @@ func _process(delta):
#func _process(delta):
# pass
var pasture = preload(\"res://scenes/healer_pasture/healer_pasture.tscn\")
func _on_pasture_exit_interacted():
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($\"pasture-exit-point\".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
.and_then(ScriptBuilder.transition(self, pasture, \"healers-exit-point\"))
.and_then(ScriptBuilder.walk_to_deferred(\"healers-exit-point\", \"healers-entrance-point\"))
.can_interrupt().build(self, \"_on_script_complete\"))
func _on_entered_from_pasture():
print(\"HERRREERERE\")
func _on_set_piece_interacted():
#$target = $SetPiece/thingpoint.global_position
@@ -77,12 +67,24 @@ func _on_set_piece_interacted():
.build(self, \"_on_script_complete\"))
#$AnimationPlayer.play(\"focus_thing\")
func _on_pasture_interacted():
$pasture.default_script(self)
func _on_pit_interacted():
$pit.default_script(self)
func _on_healer_interior_interacted():
$healer_interior.default_script(self)
"
[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)])
vertices = PackedVector2Array(507, 1007, 750, 1048, 626, 1104, 383, 1138, 392, 1082, 599, 876, 555, 821, 587, 818, 702, 879, 216, 1112, -194, 1093, -112, 892, 593, 887, 516, 951, 2276, 970, 2275, 1173, 1043, 958, 912, 915, 809, 968, 850, 885)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8), PackedInt32Array(9, 10, 11, 12, 13), PackedInt32Array(14, 15, 16, 17), PackedInt32Array(17, 16, 18), PackedInt32Array(8, 19, 17, 18, 13, 12), PackedInt32Array(12, 5, 8), PackedInt32Array(4, 9, 13, 0)])
outlines = Array[PackedVector2Array]([PackedVector2Array(-119, 883, -209, 1103, 218, 1123, 507, 1072, 524, 962, 809, 979, 1042, 968, 2285, 1186, 2287, 961, 914, 905, 853, 876, 705, 869, 590, 808, 536, 813, 587, 877), 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"]
@@ -165,27 +167,6 @@ label = "Cute little goat"
[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")
@@ -197,9 +178,6 @@ 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")
@@ -298,7 +276,50 @@ position = Vector2(1727, 969)
scale = Vector2(-0.362, 0.338)
texture = ExtResource("17_i0x0u")
[node name="pasture" parent="." instance=ExtResource("17_wwn3l")]
polygon = PackedVector2Array(-209, 888, -209, 1180, 220, 1090, 172, 830)
target_transition = "healers"
target = "res://scenes/healer_pasture/healer_pasture.tscn"
label = "Pasture"
[node name="entrance" parent="pasture" index="0"]
position = Vector2(98, 983)
[node name="exit" parent="pasture" index="1"]
position = Vector2(-126, 1005)
[node name="pit" parent="." instance=ExtResource("17_wwn3l")]
polygon = PackedVector2Array(1976, 896, 1916, 1246, 2480, 1299, 2389, 938)
target_transition = "healers"
target = "res://scenes/pit/pit.tscn"
label = "Pit"
[node name="entrance" parent="pit" index="0"]
position = Vector2(2007, 1047)
[node name="exit" parent="pit" index="1"]
position = Vector2(2226, 1075)
[node name="healer_interior" parent="." instance=ExtResource("17_wwn3l")]
position = Vector2(78, 6)
color = Color(1, 1, 1, 0.27451)
polygon = PackedVector2Array(344, 556, 296, 818, 614, 885, 735, 751, 636, 561)
target_transition = "healers"
target = "res://scenes/healer_interior/healer_interior.tscn"
label = "Inside"
[node name="entrance" parent="healer_interior" index="0"]
position = Vector2(550, 862)
[node name="exit" parent="healer_interior" index="1"]
position = Vector2(497, 818)
[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"]
[connection signal="interacted" from="pasture" to="." method="_on_pasture_interacted"]
[connection signal="interacted" from="pit" to="." method="_on_pit_interacted"]
[connection signal="interacted" from="healer_interior" to="." method="_on_healer_interior_interacted"]
[editable path="pasture"]
[editable path="pit"]
[editable path="healer_interior"]