Files
pomchronicles/scenes/first_guildhall.tscn

432 lines
15 KiB
Plaintext

[gd_scene load_steps=42 format=3 uid="uid://bd1wvujdcnpqk"]
[ext_resource type="Script" uid="uid://cci652umkym1f" path="res://scripts/test_scene.gd" id="1_7nayx"]
[ext_resource type="Texture2D" uid="uid://c5yxq22ao1oyf" path="res://graphics/doorlight.png" id="2_ivnss"]
[ext_resource type="Script" uid="uid://ccorfvcfa84gf" path="res://scripts/guildhall.gd" id="3_sxwyg"]
[ext_resource type="Shader" uid="uid://hr8vdp56p4yo" path="res://shaders/void.tres" id="4_ej4lk"]
[ext_resource type="PackedScene" uid="uid://c8ofw6na082gv" path="res://templates/game_panel.tscn" id="5_blfjh"]
[ext_resource type="Texture2D" uid="uid://bbh444vapab3y" path="res://graphics/voidcircle.png" id="5_dpsgu"]
[ext_resource type="PackedScene" uid="uid://c7jagw4y7w42l" path="res://templates/top_menu.tscn" id="6_2j6ej"]
[ext_resource type="Shader" uid="uid://cenbje61a2wi6" path="res://shaders/void_composite.gdshader" id="6_l1y25"]
[ext_resource type="AudioStream" uid="uid://cmray2frojcd" path="res://sounds/Door Hinge Creaking Door.wav" id="7_g53ee"]
[ext_resource type="Script" uid="uid://2g4ja3a7o2l" path="res://scripts/void_ripple.gd" id="7_us1d4"]
[ext_resource type="Texture2D" uid="uid://do4gn21x5bmdm" path="res://graphics/first-guild-base.png" id="8_kc45t"]
[ext_resource type="Texture2D" uid="uid://bldpiytpdrge6" path="res://graphics/icon.svg" id="9_5rxjm"]
[ext_resource type="Script" uid="uid://dyn5wwocvkqds" path="res://scripts/guild_facade.gd" id="9_64ojl"]
[ext_resource type="Texture2D" uid="uid://bg5ip7ni3n7qd" path="res://graphics/first-guild-front.png" id="10_q48tf"]
[ext_resource type="Script" uid="uid://bh54wpqgau8hc" path="res://scripts/npc.gd" id="11_1w0p3"]
[ext_resource type="Texture2D" uid="uid://dcrhry67g00vk" path="res://graphics/pom.png" id="12_1i8kt"]
[ext_resource type="PackedScene" uid="uid://jbqw0n6dlj08" path="res://templates/speech_bubble.tscn" id="13_qcjjg"]
[ext_resource type="Script" uid="uid://dolqtw1ye4ras" path="res://scripts/player.gd" id="16_olx4l"]
[ext_resource type="Texture2D" uid="uid://cg6ptmynq0aq0" path="res://graphics/basic-sprite.png" id="17_fufi5"]
[ext_resource type="Shader" uid="uid://dvdm8x66gwu2v" path="res://shaders/starfield.tres" id="19_3llh7"]
[ext_resource type="Texture2D" uid="uid://bhupleoa6pkkb" path="res://external/test_star.png" id="20_jgl1l"]
[ext_resource type="Texture2D" uid="uid://ct7y401wpmcdf" path="res://external/test_star2.png" id="21_iy8s4"]
[sub_resource type="ViewportTexture" id="ViewportTexture_sxwyg"]
viewport_path = NodePath("Guildhall/SubViewport")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0ypcf"]
resource_local_to_scene = true
shader = ExtResource("4_ej4lk")
shader_parameter/void_view = SubResource("ViewportTexture_sxwyg")
[sub_resource type="Curve" id="Curve_0aygh"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="ShaderMaterial" id="ShaderMaterial_nfvtf"]
shader = ExtResource("6_l1y25")
shader_parameter/line_thickness = 3.8570001832075
shader_parameter/line_color = Color(0.7666664, 0, 1, 1)
[sub_resource type="Gradient" id="Gradient_ggqxp"]
offsets = PackedFloat32Array(0, 0.27842227, 0.7447796, 0.9976798, 1)
colors = PackedColorArray(1, 0, 1, 1, 0.6414714, 0, 1, 1, 0.3529412, 0, 1, 1, 0.13464576, 8.6924134e-05, 0.43542284, 1, 0.3529412, 0, 1, 1)
[sub_resource type="NavigationPolygon" id="NavigationPolygon_28dkg"]
vertices = PackedVector2Array(318, 11, 318, -19, 689, -14, 689, 12, 493, 432, 702, 15, 703, 416, 694, 416, 493, 578, 399, 578, 399, 431, 694, 431, 305, 431, 302, 51, 307, 31)
polygons = Array[PackedInt32Array]([PackedInt32Array(0, 1, 2, 3, 4), PackedInt32Array(5, 6, 7), PackedInt32Array(4, 8, 9, 10), PackedInt32Array(7, 11, 4), PackedInt32Array(10, 12, 13), PackedInt32Array(5, 7, 4, 3), PackedInt32Array(13, 14, 0, 4, 10)])
outlines = Array[PackedVector2Array]([PackedVector2Array(689, 12, 702, 15, 703, 416, 694, 416, 694, 431, 493, 432, 493, 578, 399, 578, 399, 431, 305, 431, 302, 51, 307, 31, 318, 11, 318, -19, 689, -14)])
source_geometry_mode = 2
source_geometry_group_name = &"room_obstacles"
agent_radius = 0.0
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_752n1"]
blend_mode = 3
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a3e6t"]
size = Vector2(211, 203)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lsfle"]
size = Vector2(91.5, 203)
[sub_resource type="Animation" id="Animation_p1w2f"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_4k18p"]
resource_name = "open"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.099999994, 0.13333333, 0.16666667, 0.2, 0.23333333),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.09737283),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dtjin"]
_data = {
&"RESET": SubResource("Animation_p1w2f"),
&"open": SubResource("Animation_4k18p")
}
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_l3mu1"]
radius = 15.0
height = 54.0
[sub_resource type="Gradient" id="Gradient_28dkg"]
offsets = PackedFloat32Array(0, 0.15085158, 0.63017035, 1)
colors = PackedColorArray(0, 0, 0, 1, 0, 0.07479378, 0.21630663, 1, 0.11818864, 0.00013856843, 0.3326036, 1, 1.1310726e-06, 1.2032687e-07, 0.37330782, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_ggqxp"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_lsfle"]
width = 384
height = 216
noise = SubResource("FastNoiseLite_ggqxp")
color_ramp = SubResource("Gradient_28dkg")
seamless = true
normalize = false
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ggqxp"]
shader = ExtResource("19_3llh7")
shader_parameter/stars_speed = Vector2(25, 0)
shader_parameter/stars_density = 0.0050000002375
[sub_resource type="ShaderMaterial" id="ShaderMaterial_b2pr6"]
shader = ExtResource("19_3llh7")
shader_parameter/stars_speed = Vector2(10, 0)
shader_parameter/stars_density = 0.0030000001425
[sub_resource type="ShaderMaterial" id="ShaderMaterial_o230c"]
shader = ExtResource("19_3llh7")
shader_parameter/stars_speed = Vector2(15, 0)
shader_parameter/stars_density = 0.0
[node name="Active Scene" type="Node2D"]
script = ExtResource("1_7nayx")
[node name="Guildhall" type="Node2D" parent="."]
position = Vector2(421, 289)
script = ExtResource("3_sxwyg")
[node name="CanvasLayer" type="CanvasLayer" parent="Guildhall"]
layer = -1
scale = Vector2(2, 2)
transform = Transform2D(2, 0, 0, 2, 0, 0)
[node name="ColorRect" type="ColorRect" parent="Guildhall/CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -801.5
offset_top = -413.5
offset_right = -801.5
offset_bottom = -413.5
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0.018666686, 0, 0.08, 1)
[node name="CPUParticles2D2" type="CPUParticles2D" parent="Guildhall"]
visible = false
material = SubResource("ShaderMaterial_0ypcf")
position = Vector2(-800, 176)
scale = Vector2(4.9999995, 4.9999995)
amount = 1000
texture = ExtResource("5_dpsgu")
preprocess = 5.0
speed_scale = 0.13
emission_shape = 2
emission_sphere_radius = 30.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 100.0
initial_velocity_max = 120.0
linear_accel_min = -300.0
linear_accel_max = -150.0
scale_amount_min = 1.1
scale_amount_max = 4.2
scale_amount_curve = SubResource("Curve_0aygh")
[node name="CanvasGroup" type="CanvasGroup" parent="Guildhall"]
material = SubResource("ShaderMaterial_nfvtf")
position = Vector2(509, 176)
scale = Vector2(5, 5)
[node name="CPUParticles2D" type="CPUParticles2D" parent="Guildhall/CanvasGroup"]
material = SubResource("ShaderMaterial_0ypcf")
scale = Vector2(0.99999994, 0.99999994)
amount = 1000
texture = ExtResource("5_dpsgu")
preprocess = 5.0
speed_scale = 0.13
emission_shape = 2
emission_sphere_radius = 30.0
spread = 180.0
gravity = Vector2(0, 0)
initial_velocity_min = 100.0
initial_velocity_max = 120.0
linear_accel_min = -300.0
linear_accel_max = -150.0
scale_amount_min = 1.1
scale_amount_max = 4.2
scale_amount_curve = SubResource("Curve_0aygh")
[node name="VoidRipple" type="Node2D" parent="Guildhall"]
z_index = 1
script = ExtResource("7_us1d4")
speed = 0.01000000000931322
ripple_width = 4.5
gradient = SubResource("Gradient_ggqxp")
[node name="Center" type="Node2D" parent="Guildhall/VoidRipple"]
position = Vector2(486, 158)
[node name="Line2D" type="Line2D" parent="Guildhall/VoidRipple"]
visible = false
points = PackedVector2Array(312, 440, 312, 480, 241, 479, 250, 417, 279, 417, 253, 17, 244, 17, 241, -51, 303, -51, 306, -21, 701, -20, 701, -47, 771, -47, 770, 16, 759, 17, 732, 418, 763, 419, 769, 482, 700, 481, 698, 441, 543, 441, 544, 454, 507, 454, 501, 439, 389, 439, 385, 452, 347, 452, 347, 440, 312, 440)
width = 5.0
[node name="Line2D2" type="Line2D" parent="Guildhall/VoidRipple"]
z_index = -1
points = PackedVector2Array(312, 440, 312, 480, 241, 479, 250, 417, 279, 417, 253, 17, 244, 17, 241, -51, 303, -51, 306, -21, 701, -20, 701, -47, 771, -47, 770, 16, 759, 17, 732, 418, 763, 419, 769, 482, 700, 481, 698, 441, 543, 441, 544, 454, 507, 454, 501, 439, 389, 439, 385, 452, 347, 452, 347, 440, 312, 440)
width = 50.0
default_color = Color(0, 0, 0, 0.46666667)
joint_mode = 2
round_precision = 16
antialiased = true
[node name="RoomRegion" type="NavigationRegion2D" parent="Guildhall"]
z_index = 1
navigation_polygon = SubResource("NavigationPolygon_28dkg")
[node name="Base" type="TextureRect" parent="Guildhall"]
clip_children = 2
z_index = 1
clip_contents = true
offset_left = 200.0
offset_top = -265.0
offset_right = 810.0
offset_bottom = 480.0
texture = ExtResource("8_kc45t")
[node name="ColorRect" type="ColorRect" parent="Guildhall/Base"]
material = SubResource("CanvasItemMaterial_752n1")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0.2925, 0.29512504, 0.45, 1)
[node name="TextureRect" type="TextureRect" parent="Guildhall/Base"]
visible = false
layout_mode = 0
offset_left = -54.0
offset_top = -27.0
offset_right = 74.0
offset_bottom = 101.0
texture = ExtResource("9_5rxjm")
[node name="Facade" type="Area2D" parent="Guildhall"]
z_index = 50
position = Vector2(473, 427)
script = ExtResource("9_64ojl")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Guildhall/Facade"]
position = Vector2(130.5, -78.5)
shape = SubResource("RectangleShape2D_a3e6t")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Guildhall/Facade"]
position = Vector2(-127.25, -78.5)
shape = SubResource("RectangleShape2D_lsfle")
[node name="Front" type="Sprite2D" parent="Guildhall/Facade"]
z_index = 1
position = Vector2(32, -86)
texture = ExtResource("10_q48tf")
[node name="DoorLight" type="Sprite2D" parent="Guildhall"]
visible = false
self_modulate = Color(2.5713813, 2.5713813, 2.5713813, 0.36078432)
z_index = 1
position = Vector2(447, 373)
scale = Vector2(2, 2)
texture = ExtResource("2_ivnss")
hframes = 5
frame = 4
[node name="AnimationPlayer" type="AnimationPlayer" parent="Guildhall/DoorLight"]
libraries = {
&"": SubResource("AnimationLibrary_dtjin")
}
[node name="Sprites" type="Node2D" parent="Guildhall"]
z_index = 20
y_sort_enabled = true
[node name="Pom" type="CharacterBody2D" parent="Guildhall/Sprites"]
z_index = 1
position = Vector2(357, -27)
script = ExtResource("11_1w0p3")
metadata/_custom_type_script = "uid://bh54wpqgau8hc"
[node name="CollisionShape2D" type="CollisionShape2D" parent="Guildhall/Sprites/Pom"]
position = Vector2(1, 16)
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_l3mu1")
[node name="Sprite2D" type="Sprite2D" parent="Guildhall/Sprites/Pom"]
texture = ExtResource("12_1i8kt")
[node name="SpeechBubble" parent="Guildhall/Sprites/Pom" instance=ExtResource("13_qcjjg")]
position = Vector2(44, -93)
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="Guildhall/Sprites/Pom"]
path_desired_distance = 30.0
avoidance_enabled = true
[node name="Player" type="CharacterBody2D" parent="Guildhall/Sprites"]
position = Vector2(451, 430)
script = ExtResource("16_olx4l")
stop_range = 15.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Guildhall/Sprites/Player"]
rotation = 1.5707964
shape = SubResource("CapsuleShape2D_l3mu1")
[node name="Sprite2D" type="Sprite2D" parent="Guildhall/Sprites/Player"]
position = Vector2(0, -43)
texture = ExtResource("17_fufi5")
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="Guildhall/Sprites/Player"]
path_desired_distance = 30.0
avoidance_enabled = true
[node name="SubViewport" type="SubViewport" parent="Guildhall"]
size = Vector2i(1920, 1080)
[node name="ColorRect" type="ColorRect" parent="Guildhall/SubViewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
color = Color(0, 0, 0.12941177, 1)
[node name="Parallax2D" type="Parallax2D" parent="Guildhall/SubViewport"]
repeat_size = Vector2(1920, 1080)
autoscroll = Vector2(-10, 0)
follow_viewport = false
ignore_camera_scroll = true
[node name="TextureRect2" type="TextureRect" parent="Guildhall/SubViewport/Parallax2D"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 1920.0
offset_bottom = 1080.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = SubResource("NoiseTexture2D_lsfle")
[node name="TextureRect" type="TextureRect" parent="Guildhall/SubViewport"]
modulate = Color(0.45840502, 0.45840508, 0.45840502, 1)
material = SubResource("ShaderMaterial_ggqxp")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("20_jgl1l")
[node name="TextureRect4" type="TextureRect" parent="Guildhall/SubViewport"]
modulate = Color(0.45840502, 0.45840508, 0.45840502, 1)
material = SubResource("ShaderMaterial_b2pr6")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("20_jgl1l")
[node name="TextureRect3" type="TextureRect" parent="Guildhall/SubViewport"]
material = SubResource("ShaderMaterial_o230c")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
texture = ExtResource("21_iy8s4")
[node name="UI" type="CanvasLayer" parent="."]
visible = false
[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
offset_left = 1485.0
offset_top = 23.0
offset_right = 1886.0
offset_bottom = 351.0
[node name="MainPanel" parent="UI/VBoxContainer" instance=ExtResource("5_blfjh")]
layout_mode = 2
[node name="Notices" type="Control" parent="UI/VBoxContainer"]
layout_mode = 2
[node name="Control" parent="UI" instance=ExtResource("6_2j6ej")]
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_g53ee")
volume_db = -24.535
[connection signal="body_entered" from="Guildhall/Facade" to="Guildhall/Facade" method="_on_body_entered"]
[connection signal="body_exited" from="Guildhall/Facade" to="Guildhall/Facade" method="_on_body_exited"]