This commit is contained in:
2024-05-29 13:26:31 -07:00
parent 6740949b05
commit 242d74b0a7
2104 changed files with 45681 additions and 0 deletions

BIN
scenes/house/background.png LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dxcxda2tmjruh"
path="res://.godot/imported/background.png-537cc4df9059196f6fca00c020acc6d4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/house/background.png"
dest_files=["res://.godot/imported/background.png-537cc4df9059196f6fca00c020acc6d4.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/house/bighouse.png LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b41bnwwcpf7q0"
path="res://.godot/imported/bighouse.png-f324cc8b20678e552b14e0c2797b9011.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/house/bighouse.png"
dest_files=["res://.godot/imported/bighouse.png-f324cc8b20678e552b14e0c2797b9011.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

30
scenes/house/house.gd Normal file
View File

@@ -0,0 +1,30 @@
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
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
var pasture = load("res://scenes/pasture/pasture.tscn")
func _on_forestexit_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, "house-exit-point")).can_interrupt().build(self, "_on_script_complete"))
pass # Replace with function body.
func _on_Mushrooms_interacted():
start_main_script(ScriptBuilder.init(ScriptBuilder.say(self.ego, "Nice mushrooms!")).can_interrupt().build(self, "_on_script_complete"))

68
scenes/house/house.tscn Normal file
View File

@@ -0,0 +1,68 @@
[gd_scene load_steps=8 format=3 uid="uid://chj0dootpe2db"]
[ext_resource type="Texture2D" uid="uid://b41bnwwcpf7q0" path="res://scenes/house/bighouse.png" id="1"]
[ext_resource type="Script" path="res://scenes/house/house.gd" id="2"]
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3"]
[ext_resource type="PackedScene" path="res://SetPiece.tscn" id="4"]
[ext_resource type="Texture2D" uid="uid://bj528xb64cklt" path="res://dragon.png" id="5"]
[ext_resource type="Texture2D" uid="uid://b4d7yvslxq2dw" path="res://scenes/house/rock.png" id="6"]
[sub_resource type="NavigationPolygon" id="5"]
vertices = PackedVector2Array(3222.14, 1449.29, 3505.71, 1502.86, 3296.14, 1518.29, 3109.14, 1225.29, 2892.14, 1182.29, 2911.14, 1157.29, 3215.71, 1225.71, 3191.14, 1251.29, 3108.14, 1450.29, 3147.14, 1577.29, 3015.14, 1510.29, 2051.43, 1457.14, 2270, 1475.71, 2670.14, 1621.29, 2862.86, 1735.71, 2874.29, 1890, 2015.71, 1690, 1312.86, 1398.57, 3092.86, 1371.43, 3258.14, 1297.29, 3205.14, 1367.29, 1330, 1234.29, 1418.57, 1180, 1505.71, 1190, 1471.43, 1321.43, 1255.71, 1267.14)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(7, 3, 6), PackedInt32Array(8, 0, 2, 9, 10), PackedInt32Array(11, 12, 13, 14, 15, 16, 17), PackedInt32Array(18, 7, 6, 19, 20, 8), PackedInt32Array(21, 22, 23, 24, 17), PackedInt32Array(8, 20, 0), PackedInt32Array(10, 9, 14, 13), PackedInt32Array(24, 11, 17), PackedInt32Array(21, 17, 25)])
outlines = Array[PackedVector2Array]([PackedVector2Array(2670.14, 1621.29, 2270, 1475.71, 2051.43, 1457.14, 1471.43, 1321.43, 1505.71, 1190, 1418.57, 1180, 1330, 1234.29, 1255.71, 1267.14, 1312.86, 1398.57, 2015.71, 1690, 2874.29, 1890, 2862.86, 1735.71, 3147.14, 1577.29, 3296.14, 1518.29, 3505.71, 1502.86, 3222.14, 1449.29, 3205.14, 1367.29, 3258.14, 1297.29, 3215.71, 1225.71, 2911.14, 1157.29, 2892.14, 1182.29, 3109.14, 1225.29, 3191.14, 1251.29, 3092.86, 1371.43, 3108.14, 1450.29, 3015.14, 1510.29)])
source_geometry_group_name = &"navigation_polygon_source_group"
[node name="background" type="Node2D"]
scale = Vector2(0.5, 0.5)
script = ExtResource("2")
[node name="bg" type="Sprite2D" parent="."]
texture = ExtResource("1")
centered = false
[node name="pathfind" type="NavigationRegion2D" parent="."]
position = Vector2(2.85714, 5.71428)
navigation_polygon = SubResource("5")
[node name="pasture-exit" parent="." instance=ExtResource("4")]
position = Vector2(2161.43, 308.571)
color = Color(1, 1, 1, 0.392157)
polygon = PackedVector2Array(413.57, 588.429, 436.57, 931.429, 1130.57, 901.429, 1074.57, 535.429)
label = "To Pasture"
[node name="pasture-exit-point" type="Node2D" parent="."]
position = Vector2(2912, 1184)
[node name="StartScalePoint" type="Node2D" parent="."]
position = Vector2(3057, 1152)
script = ExtResource("3")
target_scale = 0.4
[node name="EndScalePoint" type="Node2D" parent="."]
position = Vector2(2927, 1933)
script = ExtResource("3")
target_scale = 1.0
[node name="Dragon" type="Sprite2D" parent="."]
visible = false
position = Vector2(2734, 1796)
texture = ExtResource("5")
offset = Vector2(3, -175)
flip_h = true
[node name="default-starting-point" type="Node2D" parent="."]
position = Vector2(2163, 1571)
[node name="Rock" type="Sprite2D" parent="."]
position = Vector2(2980, 1205)
texture = ExtResource("6")
offset = Vector2(-182, -136)
[node name="Mushrooms" parent="." instance=ExtResource("4")]
color = Color(1, 1, 1, 0.411765)
polygon = PackedVector2Array(2567, 1356, 2417, 1335, 2354, 1386, 2501, 1444, 2661, 1426, 2656, 1360)
label = "Mushrooms"
[connection signal="interacted" from="pasture-exit" to="." method="_on_forestexit_interacted"]
[connection signal="interacted" from="Mushrooms" to="." method="_on_Mushrooms_interacted"]

BIN
scenes/house/rock.png LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b4d7yvslxq2dw"
path="res://.godot/imported/rock.png-00a449cd078ecf30d3d07230d1e7ff3e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://scenes/house/rock.png"
dest_files=["res://.godot/imported/rock.png-00a449cd078ecf30d3d07230d1e7ff3e.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