Makes lots of new screens
This commit is contained in:
@@ -11,18 +11,6 @@ func _ready():
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
var healers = load("res://scenes/healers/healers.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($"healers-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
|
||||
.and_then(ScriptBuilder.transition(self, healers, "pasture-exit-point"))
|
||||
.and_then(ScriptBuilder.walk_to_deferred("pasture-exit-point", "pasture-entrance-point"))
|
||||
.can_interrupt().build(self, "_on_script_complete"))
|
||||
|
||||
func _on_entered_from_pasture():
|
||||
print("HERRREERERE")
|
||||
|
||||
|
||||
func _on_entranceexit_interacted():
|
||||
start_main_script(ScriptBuilder.init(
|
||||
@@ -31,3 +19,8 @@ func _on_entranceexit_interacted():
|
||||
.and_then(ScriptBuilder.say(self.ego, "Just like gramps' one."))
|
||||
.build(self, "_on_script_complete"))
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
func _on_healers_interacted():
|
||||
$healers.default_script(self)
|
||||
|
||||
@@ -1,50 +1,26 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ct7hctpa6641e"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/healer_pasture/healer_pasture.gd" id="1_yrj0n"]
|
||||
[ext_resource type="Texture2D" uid="uid://bevj01d40tjpv" path="res://scenes/healer_pasture/output_00008_.png" id="2_wpie8"]
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="3_0wrj6"]
|
||||
[ext_resource type="Texture2D" uid="uid://q44n4fwunqnu" path="res://scenes/healer_pasture/meadow.png" id="2_xlj8p"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="4_6inrv"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="5_4aq5m"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_vvsg8"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(1047, 1132, 477, 1102, 466, 1076, 974, 1054, 1046, 1088, 1889, 828, 2025, 784, 2068, 877, 1963, 920, 1944, 905, 1869, 843, 1526, 812, 1549, 828, 1473, 912, 1315, 834, 199, 963, 195, 907, 1314, 834, 895, 951, 1547, 968, 979, 1042, 1518, 800, 1969, 925, 1952, 926, 1843, 974, 1954, 1101)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8, 9, 10), PackedInt32Array(11, 5, 10, 12), PackedInt32Array(11, 12, 13, 14), PackedInt32Array(15, 16, 17, 18), PackedInt32Array(13, 19, 4, 20, 18, 17, 14), PackedInt32Array(4, 3, 20), PackedInt32Array(14, 21, 11), PackedInt32Array(7, 22, 8), PackedInt32Array(9, 8, 23, 24), PackedInt32Array(24, 23, 25), PackedInt32Array(24, 25, 4, 19)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(185, 898, 190, 974, 891, 961, 1017, 1098, 1965, 1112, 1962, 881, 1840, 964, 1550, 958, 1488.48, 910.994, 1554, 838, 1524, 789, 1313, 824), PackedVector2Array(1500, 801, 1509, 837, 1865, 853, 1968, 937, 2082, 882, 2030, 772, 1888, 818), PackedVector2Array(452, 1067, 471, 1112, 1058, 1143, 1054, 1041)])
|
||||
vertices = PackedVector2Array(1314, 834, 1313, 834, 2572, 796, 3672, 1092, 3802, 1128, 892, 951, 2645, 815, 3959, 793, 4382, 1031, 3674, 1076, 199, 963, 195, 907, 891, 951)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 0, 2, 6), PackedInt32Array(7, 8, 9, 6), PackedInt32Array(10, 11, 0, 12), PackedInt32Array(5, 12, 0), PackedInt32Array(6, 9, 3)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(185, 898, 190, 974, 858, 1086, 3899, 1144, 2575, 786, 1313, 824), PackedVector2Array(3567, 1093, 4417, 1039, 3963, 783, 1888, 818)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
position = Vector2(0, -4)
|
||||
script = ExtResource("1_yrj0n")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("2_wpie8")
|
||||
texture = ExtResource("2_xlj8p")
|
||||
centered = false
|
||||
|
||||
[node name="healers-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(2095, 921)
|
||||
|
||||
[node name="healers-entrance-point" type="Node2D" parent="."]
|
||||
position = Vector2(1910, 854)
|
||||
|
||||
[node name="pasture-exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(622, -1350.48)
|
||||
scale = Vector2(1, 0.996815)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(1156, 2048, 719, 2173, 972, 2503.45, 1498, 2362, 1508, 2163)
|
||||
script = ExtResource("3_0wrj6")
|
||||
label = "To the healers house"
|
||||
|
||||
[node name="entrance-exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(-2134, -1304)
|
||||
scale = Vector2(1.116, 1)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(3252, 1172, 2984, 1324, 2980, 1452, 3060, 1732, 3344, 1704)
|
||||
script = ExtResource("3_0wrj6")
|
||||
label = "open door"
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1476, 742)
|
||||
script = ExtResource("4_6inrv")
|
||||
@@ -54,7 +30,7 @@ target_scale = 0.25
|
||||
position = Vector2(1408, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("4_6inrv")
|
||||
target_scale = 0.425
|
||||
target_scale = 0.35
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
|
||||
@@ -70,5 +46,18 @@ scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("5_4aq5m")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[connection signal="interacted" from="pasture-exit" to="." method="_on_pasture_exit_interacted"]
|
||||
[connection signal="interacted" from="entrance-exit" to="." method="_on_entranceexit_interacted"]
|
||||
[node name="healers" parent="." instance=ExtResource("5_vvsg8")]
|
||||
polygon = PackedVector2Array(3852, 705, 3759, 1075, 4195, 1108, 4205, 725)
|
||||
target_transition = "pasture"
|
||||
target = "res://scenes/healers/healers.tscn"
|
||||
label = "Healers"
|
||||
|
||||
[node name="entrance" parent="healers" index="0"]
|
||||
position = Vector2(3878, 950)
|
||||
|
||||
[node name="exit" parent="healers" index="1"]
|
||||
position = Vector2(4168, 993)
|
||||
|
||||
[connection signal="interacted" from="healers" to="." method="_on_healers_interacted"]
|
||||
|
||||
[editable path="healers"]
|
||||
|
||||
BIN
scenes/healer_pasture/meadow.png
LFS
Normal file
BIN
scenes/healer_pasture/meadow.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_pasture/meadow.png.import
Normal file
34
scenes/healer_pasture/meadow.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://q44n4fwunqnu"
|
||||
path="res://.godot/imported/meadow.png-eac62227efdfa76c5a8d23ab8cb85dfb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_pasture/meadow.png"
|
||||
dest_files=["res://.godot/imported/meadow.png-eac62227efdfa76c5a8d23ab8cb85dfb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Reference in New Issue
Block a user