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/entrance/entrance-wall.png LFS Normal file

Binary file not shown.

View File

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

View File

@@ -0,0 +1,35 @@
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 farmhouse = load("res://scenes/farmhouse/farmhouse.tscn")
var bedroom = load("res://scenes/bedroom/bedroom.tscn")
func _on_bedroomexit_interacted():
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"bedroom-exit-point".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path)).and_then(ScriptBuilder.transition(self, bedroom, "entrance-exit-point")).can_interrupt().build(self, "_on_script_complete"))
func _on_farmhouseexit_interacted():
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"farmhouse-exit-point".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path)).and_then(ScriptBuilder.transition(self, farmhouse, "entrance-exit-point")).can_interrupt().build(self, "_on_script_complete"))
func _on_Node2D_interacted():
start_main_script(ScriptBuilder.init(ScriptBuilder.say(self.ego, "A little light reading.")).can_interrupt().build(self, "_on_script_complete"))

BIN
scenes/entrance/entrance.png LFS Normal file

Binary file not shown.

View File

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

View File

@@ -0,0 +1,71 @@
[gd_scene load_steps=8 format=3]
[ext_resource type="Script" path="res://ScalePoint_.gd" id="1"]
[ext_resource type="Script" path="res://scenes/entrance/entrance.gd" id="2"]
[ext_resource type="Script" path="res://SetPiece_.gd" id="3"]
[ext_resource type="Texture2D" uid="uid://bt71v74d7262v" path="res://scenes/entrance/entrance.png" id="4"]
[ext_resource type="Texture2D" uid="uid://dm073a7haso5u" path="res://scenes/entrance/entrance-wall.png" id="5"]
[ext_resource type="PackedScene" path="res://SetPiece.tscn" id="6"]
[sub_resource type="NavigationPolygon" id=5]
vertices = PackedVector2Array( 3380.25, 1922.25, 3766, 2036, 2440, 2053, 3547.25, 1630.25, 3736.25, 1625.25, 3578.25, 1723.25, 3350.25, 1758.25, 3196.25, 1765.25, 3276.25, 1844.25, 2466.25, 1904.25, 2710.25, 1790.25, 452, 2036, 650.25, 1819.25, 933.25, 1644.25, 1548.25, 1698.25, 559, 1708, 253.25, 1736.25, 326.25, 1523.25, 1860, 1701, 2266.25, 1752.25, 2333.25, 1853.25 )
polygons = [ PackedInt32Array( 0, 1, 2 ), PackedInt32Array( 3, 4, 5, 6, 7 ), PackedInt32Array( 8, 0, 2, 9, 10 ), PackedInt32Array( 2, 11, 12, 13, 14 ), PackedInt32Array( 15, 16, 17, 13 ), PackedInt32Array( 12, 15, 13 ), PackedInt32Array( 2, 14, 18, 19, 20 ), PackedInt32Array( 2, 20, 9 ), PackedInt32Array( 8, 10, 7, 6 ) ]
outlines = [ PackedVector2Array( 3736.25, 1625.25, 3547.25, 1630.25, 3196.25, 1765.25, 2710.25, 1790.25, 2466.25, 1904.25, 2333.25, 1853.25, 2266.25, 1752.25, 1860, 1701, 1548.25, 1698.25, 933.25, 1644.25, 326.25, 1523.25, 253.25, 1736.25, 559, 1708, 650.25, 1819.25, 452, 2036, 2440, 2053, 3766, 2036, 3380.25, 1922.25, 3276.25, 1844.25, 3350.25, 1758.25, 3578.25, 1723.25 ) ]
[node name="background" type="Node2D"]
script = ExtResource( 2 )
__meta__ = {
"_edit_lock_": true
}
background_scale = 0.55
[node name="pathfind" type="NavigationRegion2D" parent="."]
navigation_polygon = SubResource( 5 )
[node name="farmhouse-exit-point" type="Node2D" parent="."]
position = Vector2( 1801, 1735 )
[node name="bedroom-exit-point" type="Node2D" parent="."]
position = Vector2( 3713, 1660 )
[node name="bedroom-exit" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2( 2375, -720 )
color = Color( 1, 1, 1, 0.262745 )
polygon = PackedVector2Array( 950, 1468, 821, 2058, 874, 2494, 1255, 2506, 1644, 2556, 1644, 1968, 1637, 1494 )
script = ExtResource( 3 )
label = "To bedroom"
[node name="farmhouse-exit" type="Polygon2D" parent="." groups=["set-piece"]]
position = Vector2( -1299, -838 )
color = Color( 1, 1, 1, 0.262745 )
polygon = PackedVector2Array( 2941, 1998, 2938.57, 2175.71, 2934, 2560, 3211, 2525, 3395, 2567, 3430, 2164.29, 3391.43, 1940, 3430.83, 1609.17, 3207.5, 1565.83, 2914.17, 1689.17 )
script = ExtResource( 3 )
label = "Outside"
[node name="StartScalePoint" type="Node2D" parent="."]
position = Vector2( 1766, 1622 )
script = ExtResource( 1 )
target_scale = 1.4
[node name="EndScalePoint" type="Node2D" parent="."]
position = Vector2( 1832, 2060 )
script = ExtResource( 1 )
target_scale = 1.8
[node name="Entrance-wall" type="Sprite2D" parent="."]
position = Vector2( 3435, 1889 )
texture = ExtResource( 5 )
offset = Vector2( 138, -725 )
[node name="bg" type="Sprite2D" parent="."]
texture = ExtResource( 4 )
centered = false
[node name="Node2D" parent="." instance=ExtResource( 6 )]
color = Color( 1, 1, 1, 0.270588 )
polygon = PackedVector2Array( 1026, 1049, 1004, 1312, 1396, 1330, 1464, 1013 )
label = "Books"
[connection signal="interacted" from="bedroom-exit" to="." method="_on_bedroomexit_interacted"]
[connection signal="interacted" from="farmhouse-exit" to="." method="_on_farmhouseexit_interacted"]
[connection signal="interacted" from="Node2D" to="." method="_on_Node2D_interacted"]