Makes lots of new screens
This commit is contained in:
11
Ego.tscn
11
Ego.tscn
@@ -203,7 +203,7 @@ animations = [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_amh3h")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"duration": 4.0,
|
||||
"texture": ExtResource("10_jewxj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -218,7 +218,7 @@ animations = [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("14_rxcsk")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"duration": 4.0,
|
||||
"texture": ExtResource("15_qkptv")
|
||||
}],
|
||||
"loop": true,
|
||||
@@ -425,7 +425,7 @@ animations = [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("67_gxvuy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"duration": 4.0,
|
||||
"texture": ExtResource("68_71otm")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
@@ -440,7 +440,7 @@ animations = [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("72_84pf3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"duration": 4.0,
|
||||
"texture": ExtResource("73_dudql")
|
||||
}],
|
||||
"loop": true,
|
||||
@@ -877,8 +877,7 @@ texture_filter = 4
|
||||
position = Vector2(-13, 49)
|
||||
scale = Vector2(2, 2)
|
||||
sprite_frames = SubResource("1")
|
||||
animation = &"idle_NE"
|
||||
frame_progress = 0.789599
|
||||
animation = &"idle_W"
|
||||
speed_scale = 2.0
|
||||
offset = Vector2(0, -200)
|
||||
|
||||
|
||||
26
Game.tscn
26
Game.tscn
@@ -2,10 +2,10 @@
|
||||
|
||||
[ext_resource type="Script" path="res://label.gd" id="1"]
|
||||
[ext_resource type="Script" path="res://MainGame.gd" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://bd13f8yhh8x0i" path="res://scenes/pit/pit.tscn" id="2_df4mv"]
|
||||
[ext_resource type="Shader" path="res://blur.gdshader" id="2_jr51a"]
|
||||
[ext_resource type="Script" path="res://BlurrableSprite.gd" id="3_a4qo8"]
|
||||
[ext_resource type="Theme" uid="uid://dkli02kmdncbc" path="res://UITheme.tres" id="4"]
|
||||
[ext_resource type="PackedScene" uid="uid://ct7hctpa6641e" path="res://scenes/healer_pasture/healer_pasture.tscn" id="4_g4cx4"]
|
||||
[ext_resource type="FontFile" uid="uid://b1n7bvtur65ac" path="res://friendlyscribbles.ttf" id="5_0olt8"]
|
||||
[ext_resource type="Script" path="res://GameScript.gd" id="5_rglkg"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0mp4a2u3jkd" path="res://portrait.tscn" id="7_fj12q"]
|
||||
@@ -16,7 +16,7 @@ shader_parameter/step = Vector2(1, 1)
|
||||
shader_parameter/radius = 0.0
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_wppwg"]
|
||||
viewport_path = NodePath("Node2D")
|
||||
viewport_path = NodePath("SceneViewport")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_itcyp"]
|
||||
offsets = PackedFloat32Array(0, 0.0820312)
|
||||
@@ -74,50 +74,50 @@ outline_color = Color(0, 0, 0, 1)
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="CanvasLayer2" type="CanvasLayer" parent="."]
|
||||
[node name="SceneDisplay" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="CanvasLayer2"]
|
||||
[node name="SceneTexture" type="Sprite2D" parent="SceneDisplay"]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_44mjr")
|
||||
texture = SubResource("ViewportTexture_wppwg")
|
||||
centered = false
|
||||
script = ExtResource("3_a4qo8")
|
||||
|
||||
[node name="Fade" type="Sprite2D" parent="CanvasLayer2"]
|
||||
[node name="Fade" type="Sprite2D" parent="SceneDisplay"]
|
||||
modulate = Color(1, 1, 1, 0)
|
||||
position = Vector2(-17, -7)
|
||||
scale = Vector2(2048, 2048)
|
||||
texture = SubResource("6")
|
||||
centered = false
|
||||
|
||||
[node name="FadePlayer" type="AnimationPlayer" parent="CanvasLayer2/Fade"]
|
||||
[node name="FadePlayer" type="AnimationPlayer" parent="SceneDisplay/Fade"]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_nmfun")
|
||||
}
|
||||
|
||||
[node name="Node2D" type="SubViewport" parent="."]
|
||||
[node name="SceneViewport" type="SubViewport" parent="."]
|
||||
handle_input_locally = false
|
||||
physics_object_picking = true
|
||||
size = Vector2i(1920, 1080)
|
||||
|
||||
[node name="background" parent="Node2D" instance=ExtResource("2_df4mv")]
|
||||
[node name="background" parent="SceneViewport" instance=ExtResource("4_g4cx4")]
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="Node2D"]
|
||||
[node name="Camera2D" type="Camera2D" parent="SceneViewport"]
|
||||
limit_left = 0
|
||||
limit_top = 0
|
||||
limit_right = 99999999
|
||||
limit_bottom = 99999999
|
||||
limit_smoothed = true
|
||||
position_smoothing_enabled = true
|
||||
position_smoothing_speed = 0.5
|
||||
position_smoothing_speed = 1.385
|
||||
|
||||
[node name="label" type="Node2D" parent="Node2D"]
|
||||
[node name="label" type="Node2D" parent="SceneViewport"]
|
||||
z_index = 1
|
||||
position = Vector2(1442.87, 661.499)
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="label" type="Label" parent="Node2D/label"]
|
||||
[node name="label" type="Label" parent="SceneViewport/label"]
|
||||
offset_left = 53.2751
|
||||
offset_top = 6.65936
|
||||
offset_right = 461.275
|
||||
@@ -129,8 +129,6 @@ label_settings = SubResource("LabelSettings_va2rf")
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("5_rglkg")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="dialogue" parent="." instance=ExtResource("7_fj12q")]
|
||||
position = Vector2(328, 106)
|
||||
scale = Vector2(0.75, 0.75)
|
||||
|
||||
@@ -48,9 +48,8 @@ class Say:
|
||||
#label.set_text(text)
|
||||
#subject.find_child("label-root").show()
|
||||
await scene.find_child("dialogue").say(text)
|
||||
print ("SHOWING" + text)
|
||||
|
||||
await t.timeout
|
||||
print ("HIDING" + text)
|
||||
subject.remove_child(t)
|
||||
if stop:
|
||||
await scene.find_child("dialogue").done_say()
|
||||
@@ -152,8 +151,7 @@ class WalkToDeferred:
|
||||
super(scene)
|
||||
print("SCENE IS", scene)
|
||||
subject = scene.get_node(subject_name)
|
||||
var s = scene.get_node("Node2D/background")
|
||||
var bgs = scene.get_node("Node2D").get_children()
|
||||
var s = scene.get_node("SceneViewport/background")
|
||||
var g = s.get_children()
|
||||
|
||||
path = NavigationServer2D.map_get_path(s.map, s.pathfind.to_local(s.get_node(named_from).global_position), s.pathfind.to_local(s.get_node(named_to).global_position), true)
|
||||
@@ -184,7 +182,8 @@ class Transition:
|
||||
var new_scene = next.instantiate()
|
||||
new_scene.name="background"
|
||||
parent.remove_child(subject)
|
||||
var pos = new_scene.find_child(position)
|
||||
var pos = new_scene.get_node(position)
|
||||
var c = new_scene.get_children()
|
||||
if new_scene is Scene:
|
||||
new_scene.starting_point = pos.position
|
||||
parent.add_child(new_scene)
|
||||
@@ -224,10 +223,9 @@ class SwitchCamera:
|
||||
var t: SceneTreeTimer
|
||||
|
||||
func init(scene: Node2D):
|
||||
var s = scene.get_node("Node2D/background")
|
||||
var bgs = scene.get_node("Node2D").get_children()
|
||||
var s = scene.get_node("SceneViewport/background")
|
||||
var g = s.get_children()
|
||||
CameraTransition.transition_camera2D(scene.get_tree().root.get_node("Node2D/Node2D/Camera2D"), s.find_child(path))
|
||||
CameraTransition.transition_camera2D(scene.get_tree().root.get_node("Node2D/SceneViewport/Camera2D"), s.find_child(path))
|
||||
t = scene.get_tree().create_timer(2.0)
|
||||
|
||||
func do(delta):
|
||||
@@ -244,8 +242,8 @@ class ResetCamera:
|
||||
var t: SceneTreeTimer
|
||||
|
||||
func init(scene: Node2D):
|
||||
var s = scene.get_node("Node2D/background")
|
||||
CameraTransition.transition_camera2D(scene.get_viewport().get_camera_2d(), scene.get_node("Node2D/Camera2D"))
|
||||
var s = scene.get_node("SceneViewport/background")
|
||||
CameraTransition.transition_camera2D(scene.get_viewport().get_camera_2d(), scene.get_node("SceneViewport/Camera2D"))
|
||||
t = scene.get_tree().create_timer(2.0)
|
||||
|
||||
func do(delta):
|
||||
@@ -343,7 +341,7 @@ func say(subject, text, stop=true):
|
||||
|
||||
func walk_to_deferred(named_from, named_to):
|
||||
var say = WalkToDeferred.new()
|
||||
say.subject_name = "Node2D/background/Graham"
|
||||
say.subject_name = "SceneViewport/background/Graham"
|
||||
say.named_from = named_from
|
||||
say.named_to = named_to
|
||||
return say
|
||||
|
||||
26
MainGame.gd
26
MainGame.gd
@@ -4,25 +4,25 @@ extends Node2D
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
func get_scene() -> Scene:
|
||||
return $SceneViewport/background
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
$Node2D/background.connect("transitioned", Callable($label, "_on_transitioned"))
|
||||
$Node2D/background.connect("transitioned", Callable(self, "_on_transitioned"))
|
||||
reset_camera($Node2D/background)
|
||||
# get_scene().connect("transitioned", Callable($SceneViewport/label, "_on_transitioned"))
|
||||
get_scene().connect("transitioned", Callable(self, "_on_transitioned"))
|
||||
reset_camera(get_scene())
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_transitioned(scene):
|
||||
print ("this transitioned")
|
||||
reset_camera(scene)
|
||||
$Node2D/label._on_transitioned(scene)
|
||||
#scene.connect("transitioned", $label, "_on_transitioned")
|
||||
$SceneViewport/label._on_transitioned(scene)
|
||||
#scene.connect("transitioned", $SceneViwport/label, "_on_transitioned")
|
||||
scene.connect("transitioned", Callable(self, "_on_transitioned"))
|
||||
|
||||
@onready var camera:Camera2D = $Node2D/Camera2D
|
||||
@onready var camera:Camera2D = $SceneViewport/Camera2D
|
||||
|
||||
func reset_camera(scene):
|
||||
#$Node2D.scale = Vector2(scene.background_scale, scene.background_scale)
|
||||
@@ -31,11 +31,10 @@ func reset_camera(scene):
|
||||
var height = x.texture.get_height()
|
||||
var far_point = self.to_global(Vector2(x.texture.get_width(), x.texture.get_height() ) * x.get_global_transform())
|
||||
print("FAR POINT IS ", far_point)
|
||||
var bg = $Node2D/background
|
||||
camera.make_current()
|
||||
camera.limit_right = far_point.x
|
||||
camera.limit_bottom=far_point.y
|
||||
$Node2D/background/Graham/RemoteTransform2D.remote_path=camera.get_path()
|
||||
get_scene().get_node("Graham/RemoteTransform2D").remote_path=camera.get_path()
|
||||
camera.reset_smoothing()
|
||||
camera.limit_right = far_point.x
|
||||
camera.limit_bottom = far_point.y
|
||||
@@ -45,8 +44,9 @@ func reset_camera(scene):
|
||||
#$Node2D/background/Graham/Camera2D.reset_smoothing()
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
var s = $Node2D/background.ego_scale($Node2D/background/Graham)
|
||||
$Node2D/background/Graham.scale = Vector2(s, s)
|
||||
var player = get_scene().get_node("Graham")
|
||||
var s = get_scene().ego_scale(player)
|
||||
player.scale = Vector2(s, s)
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
$Node2D.push_input(event)
|
||||
$SceneViewport.push_input(event)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
[gd_scene load_steps=2 format=3 uid="uid://ddv7ad4428im4"]
|
||||
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="1"]
|
||||
|
||||
[node name="Node2D" type="Polygon2D" groups=["set-piece"]]
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource("1")
|
||||
|
||||
@@ -27,7 +27,7 @@ func _process(delta):
|
||||
if Geometry2D.is_point_in_polygon(to_local(get_global_mouse_position()), self.polygon):
|
||||
if is_in == false:
|
||||
is_in = true
|
||||
|
||||
print("ENTERED", self)
|
||||
emit_signal("entered", label)
|
||||
else:
|
||||
if is_in == true:
|
||||
|
||||
19
TransitionPiece.gd
Normal file
19
TransitionPiece.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
extends "res://SetPiece_.gd"
|
||||
|
||||
@export var target_transition: String
|
||||
@export_file("*.tscn") var target
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
super(delta)
|
||||
|
||||
func default_script(scene: Scene):
|
||||
var path = NavigationServer2D.map_get_path(scene.map, scene.pathfind.to_local(scene.ego.global_position), scene.pathfind.to_local($"exit".global_position), true)
|
||||
scene.start_main_script(scene.ScriptBuilder.init(scene.ScriptBuilder.walk_path(scene.ego, path))
|
||||
.and_then(scene.ScriptBuilder.transition(scene, load(target), target_transition + "/exit"))
|
||||
.and_then(scene.ScriptBuilder.walk_to_deferred(target_transition + "/exit", target_transition + "/entrance"))
|
||||
.can_interrupt().build(scene, "_on_script_complete"))
|
||||
13
TransitionPiece.tscn
Normal file
13
TransitionPiece.tscn
Normal file
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c4vc1wx7k6cw"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ddv7ad4428im4" path="res://SetPiece.tscn" id="1_62o58"]
|
||||
[ext_resource type="Script" path="res://TransitionPiece.gd" id="2_krgqh"]
|
||||
|
||||
[node name="Node2D" instance=ExtResource("1_62o58")]
|
||||
script = ExtResource("2_krgqh")
|
||||
target_transition = ""
|
||||
target = null
|
||||
|
||||
[node name="entrance" type="Node2D" parent="." index="0"]
|
||||
|
||||
[node name="exit" type="Node2D" parent="." index="1"]
|
||||
88
UITheme.tres
88
UITheme.tres
File diff suppressed because one or more lines are too long
@@ -33,7 +33,7 @@ func get_effective_position(center_pos: Vector2):
|
||||
func transition_camera2D(from: Camera2D, to: Camera2D, duration: float = 1.0) -> void:
|
||||
if transitioning: return
|
||||
# Copy the parameters of the first camera
|
||||
camera2D.custom_viewport = get_tree().root.get_node("Node2D/Node2D")
|
||||
camera2D.custom_viewport = get_tree().root.get_node("Node2D/SceneViewport")
|
||||
camera2D.zoom = from.zoom
|
||||
camera2D.offset = from.offset
|
||||
camera2D.light_mask = from.light_mask
|
||||
|
||||
@@ -8,7 +8,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="./ai-game.exe"
|
||||
export_path="build/ai-game.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
||||
1
label.gd
1
label.gd
@@ -69,7 +69,6 @@ func _process(delta):
|
||||
|
||||
|
||||
func _on_setpiece_entered(lab):
|
||||
print ("ENTERED")
|
||||
$label.show()
|
||||
$label.text = lab
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
BIN
scenes/cave_entrance/big-cave-entrance.png
LFS
Normal file
BIN
scenes/cave_entrance/big-cave-entrance.png
LFS
Normal file
Binary file not shown.
34
scenes/cave_entrance/big-cave-entrance.png.import
Normal file
34
scenes/cave_entrance/big-cave-entrance.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cryf365fgpbd"
|
||||
path="res://.godot/imported/big-cave-entrance.png-6c36c0a55923d9a2c804a3d209bc72c7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/cave_entrance/big-cave-entrance.png"
|
||||
dest_files=["res://.godot/imported/big-cave-entrance.png-6c36c0a55923d9a2c804a3d209bc72c7.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
|
||||
21
scenes/cave_entrance/cave_entrance.gd
Normal file
21
scenes/cave_entrance/cave_entrance.gd
Normal file
@@ -0,0 +1,21 @@
|
||||
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_pit_interacted():
|
||||
$pit.default_script(self)
|
||||
|
||||
|
||||
func _on_cave_top_interacted():
|
||||
$cave_top.default_script(self)
|
||||
78
scenes/cave_entrance/cave_entrance.tscn
Normal file
78
scenes/cave_entrance/cave_entrance.tscn
Normal file
@@ -0,0 +1,78 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b7qxwla60qwuh"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/cave_entrance/cave_entrance.gd" id="1_kad6t"]
|
||||
[ext_resource type="Texture2D" uid="uid://cryf365fgpbd" path="res://scenes/cave_entrance/big-cave-entrance.png" id="2_seheg"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="4_vq43k"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="5_rvo8g"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="6_ecdpw"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(1279, 1014, 1280, 1014, 888, 1055, 364, 908, -87, 945, -69, 721, 408, 819, 734, 968, 409, 819, 635, 835, 834, 787, 1122, 854, 1379, 837, 1816, 891, 1769, 677, 1906, 738, 1897, 814)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(7, 3, 6, 8, 9), PackedInt32Array(2, 7, 9, 10, 11, 0), PackedInt32Array(0, 11, 12, 13), PackedInt32Array(13, 12, 14, 15, 16)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(-79, 709, -98, 957, 364, 918, 731, 978, 886, 1066, 1281, 1024, 1821, 901, 1907, 819, 1917, 733, 1770, 667, 1377, 827, 1123, 844, 834, 777, 634, 825, 410, 809)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_kad6t")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_seheg")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1476, 742)
|
||||
script = ExtResource("4_vq43k")
|
||||
target_scale = 0.25
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1410, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("4_vq43k")
|
||||
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="."]
|
||||
visible = false
|
||||
position = Vector2(1596, 1099)
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("5_rvo8g")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[node name="pit" parent="." instance=ExtResource("6_ecdpw")]
|
||||
polygon = PackedVector2Array(-76, 724, -143, 1020, 290, 1123, 356, 743)
|
||||
target_transition = "cave"
|
||||
target = "res://scenes/pit/pit.tscn"
|
||||
label = "Pit"
|
||||
|
||||
[node name="entrance" parent="pit" index="0"]
|
||||
position = Vector2(215, 858)
|
||||
|
||||
[node name="exit" parent="pit" index="1"]
|
||||
position = Vector2(-50, 873)
|
||||
|
||||
[node name="cave_top" parent="." instance=ExtResource("6_ecdpw")]
|
||||
polygon = PackedVector2Array(1528, 486, 1407, 869, 1939, 852, 1999, 491, 1784, 356)
|
||||
target_transition = "cave_entrance"
|
||||
target = "res://scenes/cave_top/cave_top.tscn"
|
||||
label = "Into cave"
|
||||
|
||||
[node name="entrance" parent="cave_top" index="0"]
|
||||
position = Vector2(1636, 817)
|
||||
|
||||
[node name="exit" parent="cave_top" index="1"]
|
||||
position = Vector2(1831, 716)
|
||||
|
||||
[connection signal="interacted" from="pit" to="." method="_on_pit_interacted"]
|
||||
[connection signal="interacted" from="cave_top" to="." method="_on_cave_top_interacted"]
|
||||
|
||||
[editable path="pit"]
|
||||
[editable path="cave_top"]
|
||||
20
scenes/cave_top/cave_top.gd
Normal file
20
scenes/cave_top/cave_top.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
|
||||
|
||||
func _on_cave_entrance_interacted():
|
||||
$cave_entrance.default_script(self)
|
||||
|
||||
|
||||
func _on_deep_cave_interacted():
|
||||
$deep_cave.default_script(self)
|
||||
BIN
scenes/cave_top/cave_top.png
LFS
Normal file
BIN
scenes/cave_top/cave_top.png
LFS
Normal file
Binary file not shown.
34
scenes/cave_top/cave_top.png.import
Normal file
34
scenes/cave_top/cave_top.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://csvf7xfa45667"
|
||||
path="res://.godot/imported/cave_top.png-c67377c59836aca32bce23a89b283d10.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/cave_top/cave_top.png"
|
||||
dest_files=["res://.godot/imported/cave_top.png-c67377c59836aca32bce23a89b283d10.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
|
||||
78
scenes/cave_top/cave_top.tscn
Normal file
78
scenes/cave_top/cave_top.tscn
Normal file
@@ -0,0 +1,78 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://tavnudb8gvkq"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/cave_top/cave_top.gd" id="1_0j7fc"]
|
||||
[ext_resource type="Texture2D" uid="uid://csvf7xfa45667" path="res://scenes/cave_top/cave_top.png" id="2_uy4by"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_orwmn"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="4_54k2t"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_lcni5"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(1551, 1153, 888, 1148, 889, 1148, 1436, 1090, 1265, 1050, 623, 1106, -67, 1010, -182, 942, -7, 937, 382, 988, 847, 930, 1012, 938, 264, 376, 179, 302, 303, 286, 387, 375, 545, 407, 546, 407, 850, 917, 852, 770, 633, 768, 936, 674, 1160, 679, 1101, 569, 1311, 550, 1098, 555, 777, 452, 901, 520, 732, 440, 731, 439, 701, 415, 661, 417, 622, 418)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 0, 2, 4), PackedInt32Array(5, 6, 7, 8, 9), PackedInt32Array(10, 11, 4, 2, 5, 9), PackedInt32Array(12, 13, 14, 15), PackedInt32Array(16, 12, 15, 17), PackedInt32Array(11, 10, 18), PackedInt32Array(19, 11, 18, 20), PackedInt32Array(19, 20, 21, 22), PackedInt32Array(22, 21, 23, 24), PackedInt32Array(24, 23, 25), PackedInt32Array(26, 24, 25, 27), PackedInt32Array(26, 27, 28, 29), PackedInt32Array(30, 26, 29, 31), PackedInt32Array(15, 30, 31, 32, 17)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(307, 276, 155, 295, 259, 386, 544, 417, 621, 429, 660, 427, 728, 449, 899, 530, 1090, 564, 932, 665, 610, 765, 839, 921, 382, 978, -7, 927, -217, 933, -72, 1020, 621, 1116, 887, 1158, 1592, 1164, 1441, 1081, 1268, 1040, 1018, 930, 871, 775, 1166, 689, 1335, 544, 780, 442, 704, 406, 392, 366)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_0j7fc")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_uy4by")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(722, 226)
|
||||
script = ExtResource("3_orwmn")
|
||||
target_scale = 0.15
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1410, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("3_orwmn")
|
||||
target_scale = 0.25
|
||||
|
||||
[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="."]
|
||||
visible = false
|
||||
position = Vector2(1596, 1099)
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("4_54k2t")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[node name="deep_cave" parent="." instance=ExtResource("5_lcni5")]
|
||||
polygon = PackedVector2Array(-76, 724, -143, 1020, 290, 1123, 356, 743)
|
||||
target_transition = "cave_top"
|
||||
target = "res://scenes/deep_cave/deep_cave.tscn"
|
||||
label = "Deeper"
|
||||
|
||||
[node name="entrance" parent="deep_cave" index="0"]
|
||||
position = Vector2(248, 991)
|
||||
|
||||
[node name="exit" parent="deep_cave" index="1"]
|
||||
position = Vector2(-77, 973)
|
||||
|
||||
[node name="cave_entrance" parent="." instance=ExtResource("5_lcni5")]
|
||||
polygon = PackedVector2Array(146, 284, 358, 278, 290, 117, 98, 137)
|
||||
target_transition = "cave_top"
|
||||
target = "res://scenes/cave_entrance/cave_entrance.tscn"
|
||||
label = "Outside"
|
||||
|
||||
[node name="entrance" parent="cave_entrance" index="0"]
|
||||
position = Vector2(302, 358)
|
||||
|
||||
[node name="exit" parent="cave_entrance" index="1"]
|
||||
position = Vector2(214, 257)
|
||||
|
||||
[connection signal="interacted" from="deep_cave" to="." method="_on_deep_cave_interacted"]
|
||||
[connection signal="interacted" from="cave_entrance" to="." method="_on_cave_entrance_interacted"]
|
||||
|
||||
[editable path="deep_cave"]
|
||||
[editable path="cave_entrance"]
|
||||
BIN
scenes/critter_area/critter-big.png
LFS
Normal file
BIN
scenes/critter_area/critter-big.png
LFS
Normal file
Binary file not shown.
34
scenes/critter_area/critter-big.png.import
Normal file
34
scenes/critter_area/critter-big.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b1psci000x2kl"
|
||||
path="res://.godot/imported/critter-big.png-a35f6aec76767417c15668c31155faf7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/critter_area/critter-big.png"
|
||||
dest_files=["res://.godot/imported/critter-big.png-a35f6aec76767417c15668c31155faf7.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
|
||||
11
scenes/critter_area/critter_area.gd
Normal file
11
scenes/critter_area/critter_area.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_pit_interacted():
|
||||
$pit.default_script(self)
|
||||
65
scenes/critter_area/critter_area.tscn
Normal file
65
scenes/critter_area/critter_area.tscn
Normal file
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bruytrmcalwpy"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/critter_area/critter_area.gd" id="1_li2s3"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1psci000x2kl" path="res://scenes/critter_area/critter-big.png" id="2_tpwd0"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_4hg6f"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="4_l84pe"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_rjb3g"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(1174, 407, 1252, 403, 1235, 431, 1173, 439, 1462, 1013, 1160, 1076, 943, 947, 1392, 717, 1576, 700, 1781, 845, 1060, 484, 1034, 486, 1139, 590, 1128, 558, 1237, 610, 1392, 704)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7, 8, 9), PackedInt32Array(3, 2, 10, 11), PackedInt32Array(12, 11, 10, 13), PackedInt32Array(12, 13, 14, 15), PackedInt32Array(15, 14, 8), PackedInt32Array(15, 8, 7)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(1163, 432, 1017, 483, 1134, 599, 1382, 711, 922, 947, 1159, 1087, 1466, 1023, 1801, 847, 1579, 690, 1240, 601, 1134, 550, 1078, 489, 1242, 440, 1271, 392, 1165, 398)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_li2s3")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_tpwd0")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(722, 226)
|
||||
script = ExtResource("3_4hg6f")
|
||||
target_scale = 0.055
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1410, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("3_4hg6f")
|
||||
target_scale = 0.36
|
||||
|
||||
[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="."]
|
||||
visible = false
|
||||
position = Vector2(1596, 1099)
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("4_l84pe")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[node name="pit" parent="." instance=ExtResource("5_rjb3g")]
|
||||
color = Color(1, 1, 1, 0.231373)
|
||||
polygon = PackedVector2Array(1121, 364, 994, 453, 1288, 519, 1384, 343)
|
||||
target_transition = "critter_area"
|
||||
target = "res://scenes/pit/pit.tscn"
|
||||
label = "Pit"
|
||||
|
||||
[node name="entrance" parent="pit" index="0"]
|
||||
position = Vector2(1472, 775)
|
||||
|
||||
[node name="exit" parent="pit" index="1"]
|
||||
position = Vector2(1233, 408)
|
||||
|
||||
[connection signal="interacted" from="pit" to="." method="_on_pit_interacted"]
|
||||
|
||||
[editable path="pit"]
|
||||
11
scenes/deep_cave/deep_cave.gd
Normal file
11
scenes/deep_cave/deep_cave.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_cave_top_interacted():
|
||||
$cave_top.default_script(self)
|
||||
65
scenes/deep_cave/deep_cave.tscn
Normal file
65
scenes/deep_cave/deep_cave.tscn
Normal file
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://by3vlm6hep0b7"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/deep_cave/deep_cave.gd" id="1_04uj1"]
|
||||
[ext_resource type="Texture2D" uid="uid://csffrevwcdrh5" path="res://scenes/deep_cave/inside-cave-deep-big.png" id="2_w2dfs"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_ljxjc"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="4_ank2u"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_8e185"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(1654, 336, 1339, 293, 1514, 245, 1649, 310, 1919, 274, 2527, 288, 2433, 329, 1968, 289, 1967, 289, 1652, 294, 1918, 274, 1268, 883, 1183, 854, 1762, 509, 1939, 560, 1883, 409)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3), PackedInt32Array(4, 5, 6, 7), PackedInt32Array(4, 7, 8), PackedInt32Array(4, 8, 9, 10), PackedInt32Array(2, 10, 9), PackedInt32Array(11, 12, 13, 14), PackedInt32Array(3, 15, 14, 13, 0), PackedInt32Array(2, 9, 3)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(1512, 235, 1289, 297, 1648, 345, 1748, 506, 1160, 856, 1270, 894, 1952, 566, 1891, 402, 1660, 304, 1967, 299, 2435, 340, 2573, 280, 1919, 264)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_04uj1")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_w2dfs")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(722, 226)
|
||||
script = ExtResource("3_ljxjc")
|
||||
target_scale = 0.15
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1410, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("3_ljxjc")
|
||||
target_scale = 0.25
|
||||
|
||||
[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="."]
|
||||
visible = false
|
||||
position = Vector2(1596, 1099)
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("4_ank2u")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[node name="cave_top" parent="." instance=ExtResource("5_8e185")]
|
||||
color = Color(1, 1, 1, 0.196078)
|
||||
polygon = PackedVector2Array(1907, 104, 1322, 200, 1895, 323, 2131, 304, 2197, 135)
|
||||
target_transition = "deep_cave"
|
||||
target = "res://scenes/cave_top/cave_top.tscn"
|
||||
label = "Cave top"
|
||||
|
||||
[node name="entrance" parent="cave_top" index="0"]
|
||||
position = Vector2(1750, 241)
|
||||
|
||||
[node name="exit" parent="cave_top" index="1"]
|
||||
position = Vector2(2255, 291)
|
||||
|
||||
[connection signal="interacted" from="cave_top" to="." method="_on_cave_top_interacted"]
|
||||
|
||||
[editable path="cave_top"]
|
||||
BIN
scenes/deep_cave/inside-cave-deep-big.png
LFS
Normal file
BIN
scenes/deep_cave/inside-cave-deep-big.png
LFS
Normal file
Binary file not shown.
34
scenes/deep_cave/inside-cave-deep-big.png.import
Normal file
34
scenes/deep_cave/inside-cave-deep-big.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://csffrevwcdrh5"
|
||||
path="res://.godot/imported/inside-cave-deep-big.png-ded57dc55cd8bb46747d92b692d889fc.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/deep_cave/inside-cave-deep-big.png"
|
||||
dest_files=["res://.godot/imported/inside-cave-deep-big.png-ded57dc55cd8bb46747d92b692d889fc.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_interior/ComfyUI_temp_fvpgy_00001_.png
LFS
Normal file
BIN
scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png.import
Normal file
34
scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dnbnq73wlh7tt"
|
||||
path="res://.godot/imported/ComfyUI_temp_fvpgy_00001_.png-ca8ae0c9d436c958cd0e1cd26d6f7cee.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png"
|
||||
dest_files=["res://.godot/imported/ComfyUI_temp_fvpgy_00001_.png-ca8ae0c9d436c958cd0e1cd26d6f7cee.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
|
||||
12
scenes/healer_interior/healer_interior.gd
Normal file
12
scenes/healer_interior/healer_interior.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
extends Scene
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
super()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
func _on_healers_interacted():
|
||||
$healers.default_script(self)
|
||||
65
scenes/healer_interior/healer_interior.tscn
Normal file
65
scenes/healer_interior/healer_interior.tscn
Normal file
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c2i6gl7gloe14"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/healer_interior/healer_interior.gd" id="1_8ddec"]
|
||||
[ext_resource type="Texture2D" uid="uid://dnbnq73wlh7tt" path="res://scenes/healer_interior/ComfyUI_temp_fvpgy_00001_.png" id="2_o8adn"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="3_r5yp2"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="4_2rl4s"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_wtua6"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(2123, 1199, 1050, 1193, 1051, 1193, 1273, 1012, 1272, 1012, 1549, 880, 1764, 800, 1765, 800, 2831, 933, 1062, 1140, 571, 1157, 398, 943, 1549, 868, 1450, 741, 1415, 777)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 6), PackedInt32Array(6, 7, 8, 0, 2, 9, 3), PackedInt32Array(10, 11, 9, 2), PackedInt32Array(6, 5, 12), PackedInt32Array(13, 6, 12, 14)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(1766, 790, 1447, 731, 1400, 779, 1539, 873, 1268, 1003, 1061, 1129, 370, 924, 567, 1167, 1050, 1203, 2125, 1210, 2873, 929)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_8ddec")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.78, 0.78)
|
||||
texture = ExtResource("2_o8adn")
|
||||
centered = false
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(722, 226)
|
||||
script = ExtResource("3_r5yp2")
|
||||
target_scale = 0.41
|
||||
|
||||
[node name="EndScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1410, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("3_r5yp2")
|
||||
target_scale = 0.6
|
||||
|
||||
[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="."]
|
||||
visible = false
|
||||
position = Vector2(1596, 1099)
|
||||
scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("4_2rl4s")
|
||||
offset = Vector2(-9.34324, -70.3448)
|
||||
|
||||
[node name="healers" parent="." instance=ExtResource("5_wtua6")]
|
||||
color = Color(1, 1, 1, 0.196078)
|
||||
polygon = PackedVector2Array(2047, 788, 1827, 1075, 2139, 1180, 2424, 1046, 2350, 837)
|
||||
target_transition = "healer_interior"
|
||||
target = "res://scenes/healers/healers.tscn"
|
||||
label = "outside"
|
||||
|
||||
[node name="entrance" parent="healers" index="0"]
|
||||
position = Vector2(1786, 959)
|
||||
|
||||
[node name="exit" parent="healers" index="1"]
|
||||
position = Vector2(2268, 1030)
|
||||
|
||||
[connection signal="interacted" from="healers" to="." method="_on_healers_interacted"]
|
||||
|
||||
[editable path="healers"]
|
||||
@@ -11,18 +11,6 @@ func _ready():
|
||||
#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(
|
||||
@@ -31,3 +19,8 @@ func _on_entranceexit_interacted():
|
||||
.and_then(ScriptBuilder.say(self.ego, "Just like gramps' one."))
|
||||
.build(self, "_on_script_complete"))
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
func _on_healers_interacted():
|
||||
$healers.default_script(self)
|
||||
|
||||
@@ -1,50 +1,26 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://ct7hctpa6641e"]
|
||||
|
||||
[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="Texture2D" uid="uid://q44n4fwunqnu" path="res://scenes/healer_pasture/meadow.png" id="2_xlj8p"]
|
||||
[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"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="5_vvsg8"]
|
||||
|
||||
[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)])
|
||||
vertices = PackedVector2Array(1314, 834, 1313, 834, 2572, 796, 3672, 1092, 3802, 1128, 892, 951, 2645, 815, 3959, 793, 4382, 1031, 3674, 1076, 199, 963, 195, 907, 891, 951)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5, 0, 2, 6), PackedInt32Array(7, 8, 9, 6), PackedInt32Array(10, 11, 0, 12), PackedInt32Array(5, 12, 0), PackedInt32Array(6, 9, 3)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(185, 898, 190, 974, 858, 1086, 3899, 1144, 2575, 786, 1313, 824), PackedVector2Array(3567, 1093, 4417, 1039, 3963, 783, 1888, 818)])
|
||||
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")
|
||||
texture = ExtResource("2_xlj8p")
|
||||
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")
|
||||
@@ -54,7 +30,7 @@ target_scale = 0.25
|
||||
position = Vector2(1408, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("4_6inrv")
|
||||
target_scale = 0.425
|
||||
target_scale = 0.35
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
|
||||
@@ -70,5 +46,18 @@ 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"]
|
||||
[node name="healers" parent="." instance=ExtResource("5_vvsg8")]
|
||||
polygon = PackedVector2Array(3852, 705, 3759, 1075, 4195, 1108, 4205, 725)
|
||||
target_transition = "pasture"
|
||||
target = "res://scenes/healers/healers.tscn"
|
||||
label = "Healers"
|
||||
|
||||
[node name="entrance" parent="healers" index="0"]
|
||||
position = Vector2(3878, 950)
|
||||
|
||||
[node name="exit" parent="healers" index="1"]
|
||||
position = Vector2(4168, 993)
|
||||
|
||||
[connection signal="interacted" from="healers" to="." method="_on_healers_interacted"]
|
||||
|
||||
[editable path="healers"]
|
||||
|
||||
BIN
scenes/healer_pasture/meadow.png
LFS
Normal file
BIN
scenes/healer_pasture/meadow.png
LFS
Normal file
Binary file not shown.
34
scenes/healer_pasture/meadow.png.import
Normal file
34
scenes/healer_pasture/meadow.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://q44n4fwunqnu"
|
||||
path="res://.godot/imported/meadow.png-eac62227efdfa76c5a8d23ab8cb85dfb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/healer_pasture/meadow.png"
|
||||
dest_files=["res://.godot/imported/meadow.png-eac62227efdfa76c5a8d23ab8cb85dfb.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
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://dpsa6s5erb0ws"]
|
||||
[gd_scene load_steps=26 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"]
|
||||
@@ -16,6 +16,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://b41bmarvyd3td" path="res://scenes/healers/New Folder/out_00010_.png" id="15_j0app"]
|
||||
[ext_resource type="Texture2D" uid="uid://fj1h0ywepx08" path="res://scenes/healers/New Folder/out_00011_.png" id="16_4a0fq"]
|
||||
[ext_resource type="Texture2D" uid="uid://c7uulvgn8wsga" path="res://scenes/healers/goat.png" id="17_i0x0u"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="17_wwn3l"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_bel53"]
|
||||
script/source = "extends Scene
|
||||
@@ -51,17 +52,6 @@ func _process(delta):
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
var pasture = preload(\"res://scenes/healer_pasture/healer_pasture.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($\"pasture-exit-point\".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
|
||||
.and_then(ScriptBuilder.transition(self, pasture, \"healers-exit-point\"))
|
||||
.and_then(ScriptBuilder.walk_to_deferred(\"healers-exit-point\", \"healers-entrance-point\"))
|
||||
.can_interrupt().build(self, \"_on_script_complete\"))
|
||||
|
||||
func _on_entered_from_pasture():
|
||||
print(\"HERRREERERE\")
|
||||
|
||||
func _on_set_piece_interacted():
|
||||
#$target = $SetPiece/thingpoint.global_position
|
||||
@@ -77,12 +67,24 @@ func _on_set_piece_interacted():
|
||||
.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(-112, 892, 851, 886, 910, 914, 1003, 959, 809, 968, 516, 951, 507, 1007, 750, 1048, 626, 1104, 383, 1138, 392, 1082, 216, 1112, -194, 1093)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4, 5), PackedInt32Array(6, 7, 8, 9, 10), PackedInt32Array(10, 11, 12, 0, 5, 6)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(-119, 883, -209, 1103, 218, 1123, 507, 1072, 524, 962, 809, 979, 1042, 968, 914, 905, 853, 876), PackedVector2Array(400, 979, 371, 1150, 629, 1114, 784, 1044, 388, 977)])
|
||||
vertices = PackedVector2Array(507, 1007, 750, 1048, 626, 1104, 383, 1138, 392, 1082, 599, 876, 555, 821, 587, 818, 702, 879, 216, 1112, -194, 1093, -112, 892, 593, 887, 516, 951, 2276, 970, 2275, 1173, 1043, 958, 912, 915, 809, 968, 850, 885)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7, 8), PackedInt32Array(9, 10, 11, 12, 13), PackedInt32Array(14, 15, 16, 17), PackedInt32Array(17, 16, 18), PackedInt32Array(8, 19, 17, 18, 13, 12), PackedInt32Array(12, 5, 8), PackedInt32Array(4, 9, 13, 0)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(-119, 883, -209, 1103, 218, 1123, 507, 1072, 524, 962, 809, 979, 1042, 968, 2285, 1186, 2287, 961, 914, 905, 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"]
|
||||
@@ -165,27 +167,6 @@ label = "Cute little goat"
|
||||
[node name="thingpoint" type="Node2D" parent="SetPiece"]
|
||||
position = Vector2(1635, 1005)
|
||||
|
||||
[node name="pasture-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(-237, 956)
|
||||
|
||||
[node name="pasture-entrance-point" type="Node2D" parent="."]
|
||||
position = Vector2(131, 970)
|
||||
|
||||
[node name="pasture-exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(-1608, -1313)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(1152, 2147, 870, 2239, 634, 2309, 1881, 2362, 1720, 2157)
|
||||
script = ExtResource("2_j681b")
|
||||
label = "To pasture"
|
||||
|
||||
[node name="entrance-exit" type="Polygon2D" parent="." groups=["set-piece"]]
|
||||
position = Vector2(-1359.48, -105.371)
|
||||
scale = Vector2(0.565934, 0.507143)
|
||||
color = Color(1, 1, 1, 0.262745)
|
||||
polygon = PackedVector2Array(3252, 1172, 2984, 1324, 2980, 1452, 3060, 1732, 3344, 1704)
|
||||
script = ExtResource("2_j681b")
|
||||
label = "open door"
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1476, 742)
|
||||
script = ExtResource("3_eyrgf")
|
||||
@@ -197,9 +178,6 @@ scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("3_eyrgf")
|
||||
target_scale = 0.425
|
||||
|
||||
[node name="entrance-exit-point" type="Node2D" parent="."]
|
||||
position = Vector2(1056, 1066)
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(1.27, 1.27)
|
||||
texture = ExtResource("4_kylj3")
|
||||
@@ -298,7 +276,50 @@ position = Vector2(1727, 969)
|
||||
scale = Vector2(-0.362, 0.338)
|
||||
texture = ExtResource("17_i0x0u")
|
||||
|
||||
[node name="pasture" parent="." instance=ExtResource("17_wwn3l")]
|
||||
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")]
|
||||
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-exit" to="." method="_on_pasture_exit_interacted"]
|
||||
[connection signal="interacted" from="entrance-exit" to="." method="_on_entranceexit_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"]
|
||||
|
||||
26
scenes/pit/pit.gd
Normal file
26
scenes/pit/pit.gd
Normal file
@@ -0,0 +1,26 @@
|
||||
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 cave_entrance = load("res://scenes/cave_entrance/cave_entrance.tscn")
|
||||
|
||||
|
||||
func _on_cave_interacted():
|
||||
$cave.default_script(self)
|
||||
|
||||
|
||||
func _on_healers_interacted():
|
||||
$healers.default_script(self)
|
||||
|
||||
|
||||
func _on_node_2d_interacted():
|
||||
$critter_area.default_script(self)
|
||||
@@ -1,49 +1,27 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bd13f8yhh8x0i"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/healer_pasture/healer_pasture.gd" id="1_ffxy1"]
|
||||
[ext_resource type="Script" path="res://scenes/pit/pit.gd" id="1_rlm8t"]
|
||||
[ext_resource type="Texture2D" uid="uid://diwganfwvfg8j" path="res://scenes/pit/pit.png" id="2_ismrw"]
|
||||
[ext_resource type="Script" path="res://SetPiece_.gd" id="3_rp6j7"]
|
||||
[ext_resource type="Script" path="res://ScalePoint_.gd" id="4_r2q0f"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2vwbdxi6hpa8" path="res://scenes/healer_pasture/foreground.png" id="5_o3cq1"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vc1wx7k6cw" path="res://TransitionPiece.tscn" id="6_2u4ri"]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id="NavigationPolygon_dvbx8"]
|
||||
vertices = PackedVector2Array(739, 912, 970, 957, 969, 957, 1825, 1074, 2104, 1217, 1572, 1217, 771, 1197, 34, 948, -63, 719, 402, 747, 558, 762, 1268, 1050, 1758, 893, 1959, 962, 2123, 919, 2125, 940)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5), PackedInt32Array(6, 7, 8, 9, 10, 0), PackedInt32Array(5, 6, 0, 2, 11), PackedInt32Array(3, 5, 11, 12, 13), PackedInt32Array(13, 12, 14, 15)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(-79, 709, 27, 956, 771, 1207, 1572, 1227, 2146, 1227, 1843, 1072, 1963, 972, 2137, 949, 2132, 910, 1756, 883, 1268, 1040, 972, 947, 743, 903, 562, 753, 403, 737)])
|
||||
vertices = PackedVector2Array(739, 912, 970, 957, 969, 957, 1825, 1074, 2104, 1217, 1563, 1217, 774, 1198, 34, 948, -63, 719, 402, 747, 558, 762, 1537, 1565, 775, 1198, 1268, 1050, 1758, 893, 1959, 962, 2123, 919, 2125, 940)
|
||||
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2), PackedInt32Array(3, 4, 5), PackedInt32Array(6, 7, 8, 9, 10, 0), PackedInt32Array(5, 11, 12, 2, 13), PackedInt32Array(6, 0, 2, 12), PackedInt32Array(3, 5, 13, 14, 15), PackedInt32Array(15, 14, 16, 17)])
|
||||
outlines = Array[PackedVector2Array]([PackedVector2Array(-79, 709, 27, 956, 771, 1207, 1546, 1581, 1572, 1227, 2146, 1227, 1843, 1072, 1963, 972, 2137, 949, 2132, 910, 1756, 883, 1268, 1040, 972, 947, 743, 903, 562, 753, 403, 737)])
|
||||
parsed_collision_mask = 4294967294
|
||||
source_geometry_group_name = &"navigation_polygon_source_group"
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
script = ExtResource("1_ffxy1")
|
||||
script = ExtResource("1_rlm8t")
|
||||
|
||||
[node name="bg" type="Sprite2D" parent="."]
|
||||
scale = Vector2(1.1, 1.1)
|
||||
texture = ExtResource("2_ismrw")
|
||||
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_rp6j7")
|
||||
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_rp6j7")
|
||||
label = "open door"
|
||||
|
||||
[node name="StartScalePoint" type="Node2D" parent="."]
|
||||
position = Vector2(1476, 742)
|
||||
script = ExtResource("4_r2q0f")
|
||||
@@ -53,7 +31,7 @@ target_scale = 0.25
|
||||
position = Vector2(1408, 1097)
|
||||
scale = Vector2(0.44, 0.44)
|
||||
script = ExtResource("4_r2q0f")
|
||||
target_scale = 0.425
|
||||
target_scale = 0.35
|
||||
|
||||
[node name="pathfind" type="NavigationRegion2D" parent="."]
|
||||
navigation_polygon = SubResource("NavigationPolygon_dvbx8")
|
||||
@@ -69,5 +47,46 @@ scale = Vector2(1.45, 1.45)
|
||||
texture = ExtResource("5_o3cq1")
|
||||
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"]
|
||||
[node name="cave" parent="." instance=ExtResource("6_2u4ri")]
|
||||
polygon = PackedVector2Array(1866, 754, 1870, 1027, 2243, 1120, 2256, 738)
|
||||
target_transition = "pit"
|
||||
target = "res://scenes/cave_entrance/cave_entrance.tscn"
|
||||
label = "Cave"
|
||||
|
||||
[node name="entrance" parent="cave" index="0"]
|
||||
position = Vector2(1971, 963)
|
||||
|
||||
[node name="exit" parent="cave" index="1"]
|
||||
position = Vector2(2217, 953)
|
||||
|
||||
[node name="healers" parent="." instance=ExtResource("6_2u4ri")]
|
||||
polygon = PackedVector2Array(-115, 709, -130, 1082, 384, 1016, 377, 684)
|
||||
target_transition = "pit"
|
||||
target = "res://scenes/healers/healers.tscn"
|
||||
label = "Healers"
|
||||
|
||||
[node name="entrance" parent="healers" index="0"]
|
||||
position = Vector2(224, 829)
|
||||
|
||||
[node name="exit" parent="healers" index="1"]
|
||||
position = Vector2(-68, 930)
|
||||
|
||||
[node name="critter_area" parent="." instance=ExtResource("6_2u4ri")]
|
||||
polygon = PackedVector2Array(1112, 1155, 1046, 1235, 2002, 1299, 1986, 1101, 1240, 1071)
|
||||
target_transition = "pit"
|
||||
target = "res://scenes/critter_area/critter_area.tscn"
|
||||
label = "South"
|
||||
|
||||
[node name="entrance" parent="critter_area" index="0"]
|
||||
position = Vector2(1500, 1118)
|
||||
|
||||
[node name="exit" parent="critter_area" index="1"]
|
||||
position = Vector2(1492, 1490)
|
||||
|
||||
[connection signal="interacted" from="cave" to="." method="_on_cave_interacted"]
|
||||
[connection signal="interacted" from="healers" to="." method="_on_healers_interacted"]
|
||||
[connection signal="interacted" from="critter_area" to="." method="_on_node_2d_interacted"]
|
||||
|
||||
[editable path="cave"]
|
||||
[editable path="healers"]
|
||||
[editable path="critter_area"]
|
||||
|
||||
Reference in New Issue
Block a user