initial
This commit is contained in:
BIN
scenes/pasture/background.png
LFS
Normal file
BIN
scenes/pasture/background.png
LFS
Normal file
Binary file not shown.
34
scenes/pasture/background.png.import
Normal file
34
scenes/pasture/background.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bmnf3dsbs4bqa"
|
||||
path="res://.godot/imported/background.png-6fe4aa69e700cc1f6c4c43224240f538.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/pasture/background.png"
|
||||
dest_files=["res://.godot/imported/background.png-6fe4aa69e700cc1f6c4c43224240f538.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/pasture/hill.png
LFS
Normal file
BIN
scenes/pasture/hill.png
LFS
Normal file
Binary file not shown.
34
scenes/pasture/hill.png.import
Normal file
34
scenes/pasture/hill.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://but2alv1h34lc"
|
||||
path="res://.godot/imported/hill.png-1e3593a78c376a07dc698861066f049c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/pasture/hill.png"
|
||||
dest_files=["res://.godot/imported/hill.png-1e3593a78c376a07dc698861066f049c.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
|
||||
38
scenes/pasture/pasture.gd
Normal file
38
scenes/pasture/pasture.gd
Normal file
@@ -0,0 +1,38 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# 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")
|
||||
var house = load("res://scenes/house/house.tscn")
|
||||
|
||||
func _on_house_exit_interacted():
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local($Graham.global_position), pathfind.to_local($"house-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path($Graham, path)).and_then(ScriptBuilder.transition(self, house, "pasture-exit-point")).can_interrupt().build(self, "_on_script_complete"))
|
||||
|
||||
func _on_forest_exit_interacted():
|
||||
#var temp_healers = healers.instantiate()
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local($Graham.global_position), pathfind.to_local($"farmhouse-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path($Graham, path))
|
||||
.and_then(ScriptBuilder.transition(self, healers, "pasture-exit-point"))
|
||||
.and_then(ScriptBuilder.walk_to_deferred("pasture-exit-point", "pasture-entrance-point"))
|
||||
|
||||
#.and_then(ScriptBuilder.trigger_signal("entered_from_pasture"))
|
||||
.can_interrupt().build(self, "_on_script_complete"))
|
||||
|
||||
BIN
scenes/pasture/pasture.png
LFS
Normal file
BIN
scenes/pasture/pasture.png
LFS
Normal file
Binary file not shown.
34
scenes/pasture/pasture.png.import
Normal file
34
scenes/pasture/pasture.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://2hp3t462scpl"
|
||||
path="res://.godot/imported/pasture.png-7681af4a66d05f9c70843f4d0b8a9277.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/pasture/pasture.png"
|
||||
dest_files=["res://.godot/imported/pasture.png-7681af4a66d05f9c70843f4d0b8a9277.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
|
||||
77
scenes/pasture/pasture.tscn
Normal file
77
scenes/pasture/pasture.tscn
Normal file
@@ -0,0 +1,77 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b7jsmr2d577vv"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/pasture/pasture.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="2_j6lln"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_4rmn0"]
|
||||
[ext_resource type="Texture2D" uid="uid://2hp3t462scpl" path="res://scenes/pasture/pasture.png" id="4"]
|
||||
[ext_resource type="Texture2D" uid="uid://but2alv1h34lc" path="res://scenes/pasture/hill.png" id="5"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkowd5pnp4q31" path="res://scenes/pasture/stump2__foreground_.png" id="6"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_xkqpb"]
|
||||
vertices = PackedVector2Array(1246, 732, 1040, 724, 982, 650, 1641, 547, 1337, 694, 1834, 850, 1994, 878, 1938, 1040, 1471, 1011, 1833, 850, 1337, 709, 1343, 935, 1249, 342, 1508, 229, 1536, 323, 1006, 382, 975, 365, 971, 424, 1006, 400, 1380, 478, 1379, 478, 1507, 442, 1507, 443, 1641, 530, 1867, 556, 1617, 581)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8, 9), PackedInt32Array(10, 9, 8, 11, 0), PackedInt32Array(12, 13, 14), PackedInt32Array(12, 14, 15, 16), PackedInt32Array(17, 16, 15, 18), PackedInt32Array(19, 20, 17, 18, 21, 22), PackedInt32Array(23, 19, 22, 24), PackedInt32Array(3, 23, 24), PackedInt32Array(3, 24, 25), PackedInt32Array(4, 10, 0), PackedInt32Array(3, 25, 4)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(1336, 943, 1468, 1021, 1945, 1051, 2007, 870, 1836, 840, 1347, 701, 1619, 591, 1918, 562, 1510, 433, 1016, 391, 1550, 332, 1515, 216, 1247, 332, 966, 356, 961, 433, 1378, 488, 1631, 538, 964, 643, 1035, 734, 1240, 742)])
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="farmhouse-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(1512, 267)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="house-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(1807, 987)
|
||||
|
||||
[node name="house_exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(-111.45, 58.0123)
|
||||
scale = Vector2(0.529299, 0.483506)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(2898.33, 1688.33, 2797, 2201, 3432.5, 2221.25, 4123.28, 2103.36, 4102.5, 2113.75, 4092.5, 1690)
|
||||
script = ExtResource("2_j6lln")
|
||||
label = "To house"
|
||||
|
||||
[node name="farmhouse_exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(355, -517)
|
||||
scale = Vector2(0.323298, 0.406096)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(2775.83, 1920.83, 2938.57, 2175.71, 3430, 2164.29, 3686.5, 2052.5, 3993.5, 1847.5, 3830.5, 1706.5, 3430.83, 1609.17, 3207.5, 1565.83, 2914.17, 1689.17, 2813.5, 1744.5)
|
||||
script = ExtResource("2_j6lln")
|
||||
label = "To farmhouse"
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1355, 257)
|
||||
script = ExtResource("3_4rmn0")
|
||||
target_scale = 0.25
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1339, 1057)
|
||||
script = ExtResource("3_4rmn0")
|
||||
target_scale = 0.75
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("4")
|
||||
centered = false
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Stump" type="Sprite2D" parent="."]
|
||||
position = Vector2(1555, 536)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("6")
|
||||
offset = Vector2(-549, -148)
|
||||
|
||||
[node name="Hill" type="Sprite2D" parent="."]
|
||||
position = Vector2(1021, 381)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("5")
|
||||
offset = Vector2(741, -361)
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
z_index = 1
|
||||
position = Vector2(10, -1)
|
||||
navigation_polygon = SubResource("NavigationPolygon_xkqpb")
|
||||
|
||||
[connection signal="interacted" from="house_exit" to="." method="_on_house_exit_interacted"]
|
||||
[connection signal="interacted" from="farmhouse_exit" to="." method="_on_forest_exit_interacted"]
|
||||
BIN
scenes/pasture/stump.png
LFS
Normal file
BIN
scenes/pasture/stump.png
LFS
Normal file
Binary file not shown.
34
scenes/pasture/stump.png.import
Normal file
34
scenes/pasture/stump.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ddl100x1fsa08"
|
||||
path="res://.godot/imported/stump.png-b627a2d8c133bed91d12f0b038ef371a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/pasture/stump.png"
|
||||
dest_files=["res://.godot/imported/stump.png-b627a2d8c133bed91d12f0b038ef371a.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/pasture/stump2__foreground_.png
LFS
Normal file
BIN
scenes/pasture/stump2__foreground_.png
LFS
Normal file
Binary file not shown.
34
scenes/pasture/stump2__foreground_.png.import
Normal file
34
scenes/pasture/stump2__foreground_.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bkowd5pnp4q31"
|
||||
path="res://.godot/imported/stump2__foreground_.png-526d4dec22b3af0fc971a38f49947402.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/pasture/stump2__foreground_.png"
|
||||
dest_files=["res://.godot/imported/stump2__foreground_.png-526d4dec22b3af0fc971a38f49947402.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