Removing stray images, small cleanups.

This commit is contained in:
2024-06-25 06:51:53 -07:00
parent 223b4aa1dc
commit 559f479db4
2053 changed files with 514 additions and 37268 deletions

View File

@@ -1,6 +1,5 @@
[gd_scene load_steps=25 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"]
@@ -18,6 +17,68 @@
[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"]
[sub_resource type="GDScript" id="GDScript_bel53"]
script/source = "extends Scene
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
signal entered_from_pasture
var target: Vector2
# Called when the node enters the scene tree for the first time.
func _ready():
super()
pass # Replace with function body.
func _process(delta):
super(delta)
var cam = get_viewport().get_camera_2d()
#if target:
#
#cam.global_position = $SetPiece/thingpoint.global_position #+= ($SetPiece/thingpoint.global_position - cam.global_position).normalized() * 5000.0 * delta
#cam.zoom = lerp(cam.zoom, Vector2(1.5, 1.5), 1.15 * delta)
#else:
#cam.position=Vector2(0,0)
#super(delta)
# Called every frame. 'delta' is the elapsed time since the previous frame.
#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
#$ThingCamera.enabled=true
#$ThingCamera.make_current()
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($\"look-at-thing-point\".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
.and_then(ScriptBuilder.switch_camera(\"ThingCamera\"))
.and_then(ScriptBuilder.say(self.ego, \"Look at the cute goat!\"))
.and_then(ScriptBuilder.reset_camera())
#.and_then(ScriptBuilder.transition(self, pasture, \"healers-exit-point\"))
#.and_then(ScriptBuilder.walk_to_deferred(\"healers-exit-point\", \"healers-entrance-point\"))
.build(self, \"_on_script_complete\"))
#$AnimationPlayer.play(\"focus_thing\")
"
[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)])
@@ -93,8 +154,7 @@ blend_mode = 1
[node name="background" type="Node2D"]
y_sort_enabled = true
position = Vector2(0, -4)
script = ExtResource("1_51r6v")
script = SubResource("GDScript_bel53")
[node name="SetPiece" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2(78, 6)
@@ -162,7 +222,7 @@ libraries = {
}
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(1090, 729)
position = Vector2(1090, 722)
scale = Vector2(1.27, 1.27)
sprite_frames = SubResource("SpriteFrames_7un2n")
autoplay = "default"
@@ -227,8 +287,8 @@ damping_max = 0.365
color_ramp = SubResource("Gradient_admud")
[node name="ThingCamera" type="Camera2D" parent="."]
position = Vector2(1394, 761)
zoom = Vector2(1.555, 1.555)
position = Vector2(1150, 674)
zoom = Vector2(1.095, 1.095)
[node name="look-at-thing-point" type="Node2D" parent="."]
position = Vector2(886, 941)