146 lines
4.9 KiB
Text
146 lines
4.9 KiB
Text
[gd_scene load_steps=18 format=3 uid="uid://c3jm0jfxc3pgn"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/npc/photo.gd" id="1_4a0uu"]
|
|
[ext_resource type="Shader" path="res://scripts/shaders/dissolve.gdshader" id="1_m5phm"]
|
|
[ext_resource type="Texture2D" uid="uid://cfux36pq3rp1p" path="res://scripts/shaders/Perlin_noise_example.png" id="2_wrrl7"]
|
|
[ext_resource type="Texture2D" uid="uid://wmmrs8hn5rjq" path="res://sprites/foto2.png" id="3_jd82u"]
|
|
[ext_resource type="Texture2D" uid="uid://c2ek8j7na1dfu" path="res://sprites/foto3.png" id="4_3esw2"]
|
|
[ext_resource type="Texture2D" uid="uid://c5k7w4n0jpbd5" path="res://sprites/foto1.png" id="5_avqgf"]
|
|
[ext_resource type="Texture2D" uid="uid://k2vkbe0f7lvf" path="res://sprites/foto4.png" id="5_x5xke"]
|
|
[ext_resource type="Texture2D" uid="uid://vdmvd2gasn0g" path="res://sprites/foto5.png" id="6_keeju"]
|
|
[ext_resource type="AudioStream" uid="uid://bmklkfkvhbqj3" path="res://audio/Sounds/foto1.ogg" id="7_8o5j5"]
|
|
[ext_resource type="AudioStream" uid="uid://bpdxgs2rajtu3" path="res://audio/Sounds/foto2.ogg" id="8_pca8i"]
|
|
[ext_resource type="AudioStream" uid="uid://brxiyyvq1xmee" path="res://audio/Sounds/foto3.ogg" id="9_c08on"]
|
|
[ext_resource type="AudioStream" uid="uid://dhsmuwctlffx3" path="res://audio/Sounds/destruirFoto.ogg" id="10_w0p04"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_d82xq"]
|
|
shader = ExtResource("1_m5phm")
|
|
shader_parameter/dissolve_value = 0.0
|
|
shader_parameter/dissolve_texture = ExtResource("2_wrrl7")
|
|
|
|
[sub_resource type="Animation" id="Animation_0gacm"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("FotoTest:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(930, 1587)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("FotoTest:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("FotoTest:material:shader_parameter/dissolve_value")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7pwyw"]
|
|
resource_name = "appear"
|
|
length = 0.3
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("FotoTest:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(927, 1418), Vector2(930, 355)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("FotoTest:rotation")
|
|
tracks/1/interp = 4
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [-1.5708, -0.0523599]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("FotoTest:material:shader_parameter/dissolve_value")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [1.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_a15ni"]
|
|
resource_name = "disappear"
|
|
length = 1.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("FotoTest:material:shader_parameter/dissolve_value")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.9, 0.0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4pmtd"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_0gacm"),
|
|
"appear": SubResource("Animation_7pwyw"),
|
|
"disappear": SubResource("Animation_a15ni")
|
|
}
|
|
|
|
[node name="PhotoPreview" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_4a0uu")
|
|
photos = Array[Texture2D]([ExtResource("4_3esw2"), ExtResource("5_avqgf"), ExtResource("5_x5xke"), ExtResource("3_jd82u"), ExtResource("6_keeju")])
|
|
photo_sound = Array[AudioStream]([ExtResource("7_8o5j5"), ExtResource("8_pca8i"), ExtResource("9_c08on")])
|
|
destroy_sound = ExtResource("10_w0p04")
|
|
|
|
[node name="FotoTest" type="Sprite2D" parent="."]
|
|
material = SubResource("ShaderMaterial_d82xq")
|
|
position = Vector2(930, 1587)
|
|
scale = Vector2(3.799, 3.598)
|
|
texture = ExtResource("5_avqgf")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_4pmtd")
|
|
}
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|