initial
This commit is contained in:
BIN
scenes/healer_pasture/foreground.png
LFS
Normal file
BIN
scenes/healer_pasture/foreground.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_pasture/foreground.png.import
Normal file
34
scenes/healer_pasture/foreground.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c2vwbdxi6hpa8"
|
||||
path="res://.godot/imported/foreground.png-7212011e21614168cdbc6602544c34b3.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_pasture/foreground.png"
|
||||
dest_files=["res://.godot/imported/foreground.png-7212011e21614168cdbc6602544c34b3.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
|
||||
33
scenes/healer_pasture/healer_pasture.gd
Normal file
33
scenes/healer_pasture/healer_pasture.gd
Normal file
@@ -0,0 +1,33 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#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(
|
||||
ScriptBuilder.say(self.ego, "Looks light a hot air balloon.")
|
||||
)
|
||||
.and_then(ScriptBuilder.say(self.ego, "Just like gramps"))
|
||||
.build(self, "_on_script_complete"))
|
||||
pass # Replace with function body.
|
||||
73
scenes/healer_pasture/healer_pasture.tscn
Normal file
73
scenes/healer_pasture/healer_pasture.tscn
Normal file
@@ -0,0 +1,73 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bd13f8yhh8x0i"]
|
||||
|
||||
[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="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"]
|
||||
|
||||
[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)])
|
||||
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")
|
||||
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")
|
||||
target_scale = 0.25
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1408, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("4_6inrv")
|
||||
target_scale = 0.425
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="default-starting-point" type="Node2D" parent="."]
|
||||
position = Vector2(788, 916)
|
||||
|
||||
[node name="Foreground" type="Sprite2D" parent="."]
|
||||
position = Vector2(1596, 1099)
|
||||
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"]
|
||||
BIN
scenes/healer_pasture/image6.png
LFS
Normal file
BIN
scenes/healer_pasture/image6.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_pasture/image6.png.import
Normal file
34
scenes/healer_pasture/image6.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bdrjiflog0m3g"
|
||||
path="res://.godot/imported/image6.png-e05d73c07f1bbab3b96eafc67a71dc8d.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_pasture/image6.png"
|
||||
dest_files=["res://.godot/imported/image6.png-e05d73c07f1bbab3b96eafc67a71dc8d.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
|
||||
BIN
scenes/healer_pasture/output_00008_.png
LFS
Normal file
BIN
scenes/healer_pasture/output_00008_.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_pasture/output_00008_.png.import
Normal file
34
scenes/healer_pasture/output_00008_.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bevj01d40tjpv"
|
||||
path="res://.godot/imported/output_00008_.png-942147746dbd5bdf4cfc531440bf7f55.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_pasture/output_00008_.png"
|
||||
dest_files=["res://.godot/imported/output_00008_.png-942147746dbd5bdf4cfc531440bf7f55.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