Better screen

This commit is contained in:
2024-07-10 23:59:07 -07:00
parent 8b5841e861
commit ae16ae01b2
90 changed files with 1579 additions and 181 deletions

View File

@@ -10,3 +10,10 @@ func _ready():
func _on_healers_interacted():
$healers.default_script(self)
func _on_shelves_interacted():
var path = NavigationServer2D.map_get_path(map, pathfind.to_local(ego.global_position), pathfind.to_local($Shelves/interact_point.global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(ego, path))
.and_then(ScriptBuilder.say(self.ego, "Most of these bottles are empty."))
.can_interrupt().build(self, "_on_script_complete"))

View File

@@ -1,10 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://c2i6gl7gloe14"]
[gd_scene load_steps=8 format=3 uid="uid://c2i6gl7gloe14"]
[ext_resource type="Script" path="res://scenes/healer_interior/healer_interior.gd" id="1_8ddec"]
[ext_resource type="Texture2D" uid="uid://dnbnq73wlh7tt" path="res://scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png" id="2_o8adn"]
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_r5yp2"]
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="4_2rl4s"]
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_wtua6"]
[ext_resource type="PackedScene" uid="uid://ddv7ad4428im4" path="res://SetPiece.tscn" id="6_2ny8n"]
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
vertices = PackedVector2Array(2123, 1199, 1050, 1193, 1051, 1193, 1273, 1012, 1272, 1012, 1549, 880, 1764, 800, 1765, 800, 2831, 933, 1062, 1140, 571, 1157, 398, 943, 1549, 868, 1450, 741, 1415, 777)
@@ -60,6 +61,14 @@ position = Vector2(1786, 959)
[node name="exit" parent="healers" index="1"]
position = Vector2(2268, 1030)
[node name="Shelves" parent="." instance=ExtResource("6_2ny8n")]
polygon = PackedVector2Array(1441, 159, 1449, 721, 1973, 807, 2025, 125)
label = "Shelves"
[node name="interact_point" type="Node2D" parent="Shelves"]
position = Vector2(1610, 792)
[connection signal="interacted" from="healers" to="." method="_on_healers_interacted"]
[connection signal="interacted" from="Shelves" to="." method="_on_shelves_interacted"]
[editable path="healers"]