351 lines
14 KiB
Plaintext
351 lines
14 KiB
Plaintext
[gd_scene load_steps=40 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"]
|
|
[ext_resource type="Texture2D" uid="uid://c7exa6b4icgrh" path="res://scenes/healers/dojo2.png" id="3_pfso2"]
|
|
[ext_resource type="Texture2D" uid="uid://cc32vj8gx56iv" path="res://scenes/healers/rocks.png" id="5_45r0t"]
|
|
[ext_resource type="Texture2D" uid="uid://dow3uuwdk3r4g" path="res://scenes/healers/trimmed-anim/frame_00002_.png" id="5_c6ua8"]
|
|
[ext_resource type="Texture2D" uid="uid://jyv82n5hrkh3" path="res://scenes/healers/trimmed-anim/frame_00001_.png" id="5_utnk2"]
|
|
[ext_resource type="Texture2D" uid="uid://5ooe4wjgrsl1" path="res://spray.png" id="6_3rr0a"]
|
|
[ext_resource type="Texture2D" uid="uid://b31xg6f7mxdpt" path="res://scenes/healers/trimmed-anim/frame_00003_.png" id="6_uyx82"]
|
|
[ext_resource type="Texture2D" uid="uid://bjlxjwgo5wob5" path="res://scenes/healers/trimmed-anim/frame_00004_.png" id="7_oar2t"]
|
|
[ext_resource type="Texture2D" uid="uid://1htup8wmmqv6" path="res://scenes/healers/trimmed-anim/frame_00005_.png" id="8_kiylr"]
|
|
[ext_resource type="Texture2D" uid="uid://obibvl8ctxu5" path="res://scenes/healers/trimmed-anim/frame_00006_.png" id="9_vlg33"]
|
|
[ext_resource type="Texture2D" uid="uid://dfdej3nfxy6fu" path="res://scenes/healers/trimmed-anim/frame_00007_.png" id="10_3n31r"]
|
|
[ext_resource type="Texture2D" uid="uid://qenh5jngyree" path="res://scenes/healers/trimmed-anim/frame_00008_.png" id="11_y0gbw"]
|
|
[ext_resource type="Texture2D" uid="uid://y54vwtrh8hq3" path="res://scenes/healers/trimmed-anim/frame_00009_.png" id="12_c1asd"]
|
|
[ext_resource type="Texture2D" uid="uid://56klr1bdia74" path="res://scenes/healers/trimmed-anim/frame_00010_.png" id="13_eh5h4"]
|
|
[ext_resource type="Texture2D" uid="uid://b61j8o6n76ll0" path="res://scenes/healers/trimmed-anim/frame_00011_.png" id="14_ff6gd"]
|
|
[ext_resource type="Texture2D" uid="uid://bhomsuyfa6vg6" path="res://scenes/healers/trimmed-anim/frame_00012_.png" id="15_jg2jy"]
|
|
[ext_resource type="Texture2D" uid="uid://b8i4ubpd4bf1p" path="res://scenes/healers/trimmed-anim/frame_00013_.png" id="16_w11w7"]
|
|
[ext_resource type="Texture2D" uid="uid://c7uulvgn8wsga" path="res://scenes/healers/goat.png" id="17_i0x0u"]
|
|
[ext_resource type="Texture2D" uid="uid://cro28dpr8nc4r" path="res://scenes/healers/trimmed-anim/frame_00014_.png" id="17_rvtjo"]
|
|
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="17_wwn3l"]
|
|
[ext_resource type="Texture2D" uid="uid://3fguwqokk0t6" path="res://scenes/healers/trimmed-anim/frame_00015_.png" id="18_lv8u6"]
|
|
[ext_resource type="Texture2D" uid="uid://d3jc738cmic10" path="res://scenes/healers/trimmed-anim/frame_00016_.png" id="19_sso3w"]
|
|
[ext_resource type="Texture2D" uid="uid://brxm34cwcp253" path="res://scenes/healers/trimmed-anim/frame_00017_.png" id="20_akjuk"]
|
|
[ext_resource type="Texture2D" uid="uid://bil7gbklmct8" path="res://scenes/healers/trimmed-anim/frame_00018_.png" id="21_n28v7"]
|
|
[ext_resource type="Texture2D" uid="uid://gripk4x3ynrf" path="res://scenes/healers/trimmed-anim/frame_00019_.png" id="22_rcnje"]
|
|
[ext_resource type="Texture2D" uid="uid://c7sv46j0404rd" path="res://scenes/healers/trimmed-anim/frame_00020_.png" id="23_h5i7n"]
|
|
[ext_resource type="Texture2D" uid="uid://b3dx04r5d1rpf" path="res://scenes/healers/trimmed-anim/frame_00021_.png" id="24_q6o4j"]
|
|
[ext_resource type="Texture2D" uid="uid://crf25udc64geh" path="res://scenes/healers/trimmed-anim/frame_00022_.png" id="25_sil2e"]
|
|
[ext_resource type="Texture2D" uid="uid://bh7hdoy313ecr" path="res://scenes/healers/trimmed-anim/frame_00023_.png" id="26_p23od"]
|
|
[ext_resource type="Texture2D" uid="uid://b4enxgmyjsl5p" path="res://scenes/healers/trimmed-anim/frame_00024_.png" id="27_xfls2"]
|
|
[ext_resource type="Texture2D" uid="uid://dqx80t435ndyv" path="res://scenes/healers/trimmed-anim/frame_00025_.png" id="29_jyvw8"]
|
|
|
|
[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
|
|
|
|
|
|
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\")
|
|
|
|
|
|
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(2275, 1174, 1726, 1106, 1727, 1106, 1284, 848, 1471, 893, 1470, 893, 1616, 939, 1615, 938, 1866, 1043, 1707, 997, 507, 1007, 750, 1048, 626, 1104, 383, 1138, 392, 1082, 1640, 1092, 1543, 1059, 1707, 1012, 1641, 1092, 1053, 849, 1052, 848, 1251, 856, 1103, 886, 1102, 886, 599, 876, 555, 821, 587, 818, 702, 879, 2109, 1048, 2276, 976, 216, 1112, -194, 1093, -112, 892, 593, 887, 516, 951, 1430, 904, 1430, 903, 806, 968, 854, 886)
|
|
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5), PackedInt32Array(6, 7, 8, 9), PackedInt32Array(10, 11, 12, 13, 14), PackedInt32Array(15, 16, 17, 18), PackedInt32Array(19, 20, 3, 21, 22, 23), PackedInt32Array(24, 25, 26, 27), PackedInt32Array(2, 18, 17, 8), PackedInt32Array(28, 29, 0), PackedInt32Array(28, 0, 2, 8), PackedInt32Array(30, 31, 32, 33, 34), PackedInt32Array(8, 17, 9), PackedInt32Array(5, 6, 9, 35, 36), PackedInt32Array(3, 5, 36, 21), PackedInt32Array(19, 23, 37, 38), PackedInt32Array(27, 38, 37, 34, 33), PackedInt32Array(33, 24, 27), PackedInt32Array(14, 30, 34, 10)])
|
|
outlines = Array[PackedVector2Array]([PackedVector2Array(-119, 883, -209, 1103, 218, 1123, 507, 1072, 524, 962, 809, 979, 1105, 896, 1251, 866, 1427, 913, 1697, 1004, 1510, 1058, 1639, 1102, 1725, 1116, 2285, 1186, 2287, 961, 2107, 1038, 1868, 1033, 1619, 929, 1473, 883, 1286, 838, 1051, 839, 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"]
|
|
resource_name = "focus_thing"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("camera.position.x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [null, null]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cuet8"]
|
|
_data = {
|
|
"focus_thing": SubResource("Animation_ij55e")
|
|
}
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_7un2n"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_utnk2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_c6ua8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_uyx82")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_oar2t")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_kiylr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_vlg33")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("10_3n31r")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("11_y0gbw")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("12_c1asd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("13_eh5h4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("14_ff6gd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("15_jg2jy")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("16_w11w7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("17_rvtjo")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("18_lv8u6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("19_sso3w")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("20_akjuk")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("21_n28v7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("22_rcnje")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("23_h5i7n")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("24_q6o4j")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("25_sil2e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("26_p23od")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("27_xfls2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("29_jyvw8")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 13.0
|
|
}]
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_0pokw"]
|
|
|
|
[sub_resource type="Gradient" id="Gradient_admud"]
|
|
offsets = PackedFloat32Array(0, 0.262724, 0.47868, 0.69326, 1)
|
|
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 0.645601, 0.149953, 1, 1, 1, 0.290196, 1, 1, 0.333333, 0.211765, 1, 1, 0.333333, 0)
|
|
|
|
[node name="background" type="Node2D"]
|
|
y_sort_enabled = true
|
|
script = SubResource("GDScript_bel53")
|
|
|
|
[node name="SetPiece" type="Polygon2D" parent="." groups=["set-piece"]]
|
|
position = Vector2(78, 6)
|
|
color = Color(1, 1, 1, 0.25)
|
|
polygon = PackedVector2Array(1469, 886, 1460, 1102, 1787, 1042, 1744, 843)
|
|
script = ExtResource("2_j681b")
|
|
label = "Cute little goat"
|
|
|
|
[node name="thingpoint" type="Node2D" parent="SetPiece"]
|
|
position = Vector2(1635, 1005)
|
|
|
|
[node name="StartScalePoint" type="Node2D" parent="."]
|
|
position = Vector2(1476, 742)
|
|
script = ExtResource("3_eyrgf")
|
|
target_scale = 0.135
|
|
|
|
[node name="EndScalePoint" type="Node2D" parent="."]
|
|
position = Vector2(1408, 1097)
|
|
script = ExtResource("3_eyrgf")
|
|
target_scale = 0.275
|
|
|
|
[node name="bg" type="Sprite2D" parent="."]
|
|
scale = Vector2(0.79, 0.79)
|
|
texture = ExtResource("3_pfso2")
|
|
centered = false
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
|
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
|
|
|
|
[node name="Rocks" type="Sprite2D" parent="."]
|
|
position = Vector2(762, 1008)
|
|
rotation = -6.28318
|
|
scale = Vector2(1.27, 1.27)
|
|
texture = ExtResource("5_45r0t")
|
|
offset = Vector2(-3.93726, -33.8582)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_cuet8")
|
|
}
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(1061, 606)
|
|
scale = Vector2(1.58, 1.58)
|
|
sprite_frames = SubResource("SpriteFrames_7un2n")
|
|
autoplay = "default"
|
|
frame_progress = 0.0470905
|
|
|
|
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
|
|
material = SubResource("CanvasItemMaterial_0pokw")
|
|
position = Vector2(546, 405)
|
|
amount = 130
|
|
lifetime = 10.45
|
|
lifetime_randomness = 1.0
|
|
local_coords = true
|
|
texture = ExtResource("6_3rr0a")
|
|
emission_shape = 3
|
|
emission_rect_extents = Vector2(1200, 1200)
|
|
direction = Vector2(15.12, -1.05)
|
|
spread = 52.79
|
|
gravity = Vector2(0, 17.865)
|
|
initial_velocity_min = 43.85
|
|
initial_velocity_max = 113.48
|
|
damping_min = 0.095
|
|
damping_max = 4.685
|
|
angle_max = 63.2
|
|
scale_amount_min = 0.1
|
|
scale_amount_max = 0.15
|
|
color = Color(1, 1, 0, 1)
|
|
color_ramp = SubResource("Gradient_admud")
|
|
anim_offset_max = 0.2425
|
|
|
|
[node name="ThingCamera" type="Camera2D" parent="."]
|
|
position = Vector2(1150, 674)
|
|
zoom = Vector2(1.095, 1.095)
|
|
|
|
[node name="look-at-thing-point" type="Node2D" parent="."]
|
|
position = Vector2(886, 941)
|
|
|
|
[node name="Goat" type="Sprite2D" parent="."]
|
|
position = Vector2(1727, 969)
|
|
scale = Vector2(-0.362, 0.338)
|
|
texture = ExtResource("17_i0x0u")
|
|
|
|
[node name="pasture" parent="." instance=ExtResource("17_wwn3l")]
|
|
color = Color(1, 1, 1, 1)
|
|
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")]
|
|
color = Color(1, 1, 1, 1)
|
|
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" 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"]
|