2025-05-31 06:45:34 +00:00
|
|
|
[gd_scene load_steps=15 format=3 uid="uid://0sofmhrl358m"]
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2025-03-10 13:03:34 +00:00
|
|
|
[ext_resource type="Script" uid="uid://cqd5dqafxnwl1" path="res://scene/entity/npc.gd" id="1_jegr2"]
|
2025-06-17 09:25:21 +00:00
|
|
|
[ext_resource type="AudioStream" uid="uid://cvttds81trcoc" path="res://asset/audio/sfx/UI/click.wav" id="3_7lwt5"]
|
2025-06-18 13:48:59 +00:00
|
|
|
[ext_resource type="Script" uid="uid://rq6w1vuhuq1m" path="res://scene/entity/audio/sfx.gd" id="4_j5svs"]
|
2025-01-08 00:51:09 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c4tipnj1cr1j3" path="res://scene/entity/ux/sign.tscn" id="4_nokx4"]
|
2025-01-17 10:45:40 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bwt5nxyncfuqu" path="res://asset/art/ui/action_mark/说话标识1.png" id="5_foitt"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://8bnn3s72o87y" path="res://asset/art/ui/action_mark/说话标识2.png" id="6_2n6ge"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://by0rbde26tyn5" path="res://asset/art/ui/action_mark/说话标识3.png" id="7_afjxr"]
|
2024-12-27 07:56:45 +00:00
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_soodi"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2025-02-12 07:03:41 +00:00
|
|
|
tracks/0/path = NodePath("SpeakingSign2D/Sprite2D:offset")
|
2024-12-27 07:56:45 +00:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2025-02-12 07:03:41 +00:00
|
|
|
"update": 0,
|
|
|
|
"values": [Vector2(60, 0)]
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
2025-02-12 07:03:41 +00:00
|
|
|
tracks/1/path = NodePath("SpeakingSign2D/Sprite2D:frame")
|
2024-12-27 07:56:45 +00:00
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2025-02-12 07:03:41 +00:00
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("SpeakingSign2D:visible")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [false]
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_a386j"]
|
|
|
|
resource_name = "speaking"
|
|
|
|
length = 1.5
|
|
|
|
loop_mode = 1
|
2025-02-12 07:03:41 +00:00
|
|
|
capture_included = true
|
2024-12-27 07:56:45 +00:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2025-02-12 07:03:41 +00:00
|
|
|
tracks/0/path = NodePath("SpeakingSign2D/Sprite2D:offset")
|
|
|
|
tracks/0/interp = 2
|
|
|
|
tracks/0/loop_wrap = false
|
2024-12-27 07:56:45 +00:00
|
|
|
tracks/0/keys = {
|
2025-02-12 07:03:41 +00:00
|
|
|
"times": PackedFloat32Array(0, 1, 1.5),
|
2024-12-27 07:56:45 +00:00
|
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
2025-02-12 07:03:41 +00:00
|
|
|
"update": 0,
|
|
|
|
"values": [Vector2(60, 0), Vector2(0, 0), Vector2(0, 0)]
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
2025-02-12 07:03:41 +00:00
|
|
|
tracks/1/path = NodePath("SpeakingSign2D/Sprite2D:frame")
|
|
|
|
tracks/1/interp = 1
|
2024-12-27 07:56:45 +00:00
|
|
|
tracks/1/loop_wrap = false
|
|
|
|
tracks/1/keys = {
|
2025-02-12 07:03:41 +00:00
|
|
|
"times": PackedFloat32Array(0, 1.5),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 2,
|
|
|
|
"values": [0, 2]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("SpeakingSign2D:visible")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [true]
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pjqf1"]
|
|
|
|
_data = {
|
2025-03-10 13:03:34 +00:00
|
|
|
&"RESET": SubResource("Animation_soodi"),
|
|
|
|
&"speaking": SubResource("Animation_a386j")
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2025-05-31 06:45:34 +00:00
|
|
|
[sub_resource type="Gradient" id="Gradient_ap7b2"]
|
|
|
|
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
|
|
|
|
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_7lwt5"]
|
|
|
|
gradient = SubResource("Gradient_ap7b2")
|
|
|
|
width = 40
|
|
|
|
height = 100
|
|
|
|
|
2025-02-12 07:03:41 +00:00
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_k7dca"]
|
|
|
|
animations = [{
|
|
|
|
"frames": [{
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("5_foitt")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("6_2n6ge")
|
|
|
|
}, {
|
|
|
|
"duration": 1.0,
|
|
|
|
"texture": ExtResource("7_afjxr")
|
|
|
|
}],
|
|
|
|
"loop": true,
|
|
|
|
"name": &"default",
|
|
|
|
"speed": 5.0
|
|
|
|
}]
|
|
|
|
|
2024-12-26 13:58:37 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4fuic"]
|
|
|
|
resource_local_to_scene = true
|
2025-06-13 08:03:19 +00:00
|
|
|
size = Vector2(30, 100)
|
2024-12-26 13:58:37 +00:00
|
|
|
|
|
|
|
[node name="Npc" type="AnimatedSprite2D"]
|
2025-06-06 16:19:37 +00:00
|
|
|
light_mask = 5
|
2024-12-26 13:58:37 +00:00
|
|
|
script = ExtResource("1_jegr2")
|
2025-01-10 09:53:12 +00:00
|
|
|
dialogue_title = ""
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2025-06-13 08:03:19 +00:00
|
|
|
[node name="Sfx" type="AudioStreamPlayer" parent="."]
|
2024-12-30 13:19:10 +00:00
|
|
|
unique_name_in_owner = true
|
2025-06-13 08:03:19 +00:00
|
|
|
stream = ExtResource("3_7lwt5")
|
|
|
|
bus = &"game_sfx"
|
|
|
|
script = ExtResource("4_j5svs")
|
2024-12-30 13:19:10 +00:00
|
|
|
|
2025-01-08 00:51:09 +00:00
|
|
|
[node name="Sign" parent="." instance=ExtResource("4_nokx4")]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
offset_top = -60.0
|
|
|
|
offset_bottom = -60.0
|
2025-01-20 13:45:47 +00:00
|
|
|
display_sign = false
|
2025-01-08 00:51:09 +00:00
|
|
|
|
2024-12-27 07:56:45 +00:00
|
|
|
[node name="SpeakingAnimationPlayer" type="AnimationPlayer" parent="."]
|
2024-12-26 13:58:37 +00:00
|
|
|
unique_name_in_owner = true
|
2024-12-27 07:56:45 +00:00
|
|
|
libraries = {
|
2025-05-14 20:43:55 +00:00
|
|
|
&"": SubResource("AnimationLibrary_pjqf1")
|
2024-12-27 07:56:45 +00:00
|
|
|
}
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2024-12-27 07:56:45 +00:00
|
|
|
[node name="PointLight2D" type="PointLight2D" parent="."]
|
2024-12-26 13:58:37 +00:00
|
|
|
unique_name_in_owner = true
|
2025-05-31 06:45:34 +00:00
|
|
|
visible = false
|
|
|
|
position = Vector2(0, -42)
|
|
|
|
blend_mode = 2
|
|
|
|
range_item_cull_mask = 16
|
|
|
|
texture = SubResource("GradientTexture2D_7lwt5")
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2024-12-27 07:56:45 +00:00
|
|
|
[node name="SpeakingSign2D" type="Node2D" parent="."]
|
2024-12-26 13:58:37 +00:00
|
|
|
unique_name_in_owner = true
|
2025-02-12 07:03:41 +00:00
|
|
|
visible = false
|
2025-06-14 08:46:32 +00:00
|
|
|
modulate = Color(0.753984, 0.753984, 0.753984, 1)
|
2025-02-12 07:03:41 +00:00
|
|
|
position = Vector2(0, -60)
|
2025-06-14 08:46:32 +00:00
|
|
|
scale = Vector2(0.07, 0.07)
|
2024-12-27 07:56:45 +00:00
|
|
|
|
2025-02-12 07:03:41 +00:00
|
|
|
[node name="Sprite2D" type="AnimatedSprite2D" parent="SpeakingSign2D"]
|
2025-05-31 06:45:34 +00:00
|
|
|
light_mask = 16
|
2025-02-12 07:03:41 +00:00
|
|
|
sprite_frames = SubResource("SpriteFrames_k7dca")
|
|
|
|
offset = Vector2(60, 0)
|
2024-12-26 13:58:37 +00:00
|
|
|
|
2024-12-27 07:56:45 +00:00
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
2024-12-26 13:58:37 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
collision_layer = 0
|
|
|
|
|
2024-12-27 07:56:45 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
2024-12-26 13:58:37 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
shape = SubResource("RectangleShape2D_4fuic")
|