-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
112 lines (102 loc) · 2.81 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[gd_scene load_steps=6 format=2]
[ext_resource path="res://sprites/background.png" type="Texture" id=2]
[ext_resource path="res://scripts/game_manager.gd" type="Script" id=3]
[ext_resource path="res://scripts/music_manager.gd" type="Script" id=7]
[sub_resource type="Animation" id=2]
resource_name = "Fade_to_A"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("PlayerA:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 4, 1.03526 ),
"update": 0,
"values": [ -80.0, 0.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("PlayerB:volume_db")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 4, 1.02837 ),
"update": 0,
"values": [ 0.0, -80.0 ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("PlayerB:playing")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0.2 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ false ]
}
[sub_resource type="Animation" id=1]
resource_name = "Fade_to_B"
length = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("PlayerA:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 4, 1 ),
"update": 0,
"values": [ 0.0, -80.0 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("PlayerA:playing")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.2 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ false ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("PlayerB:volume_db")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.2 ),
"transitions": PoolRealArray( 3.03143, 0.99334 ),
"update": 0,
"values": [ -80.0, 0.0 ]
}
[node name="Root" type="Node2D"]
script = ExtResource( 3 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true
[node name="Background" type="Sprite" parent="."]
use_parent_material = true
scale = Vector2( 100, 100 )
z_index = -5
texture = ExtResource( 2 )
[node name="MusicPlayer" type="Node2D" parent="."]
script = ExtResource( 7 )
[node name="PlayerA" type="AudioStreamPlayer" parent="MusicPlayer"]
volume_db = -79.872
bus = "Music"
[node name="PlayerB" type="AudioStreamPlayer" parent="MusicPlayer"]
volume_db = -0.128
bus = "Music"
[node name="AnimationPlayer" type="AnimationPlayer" parent="MusicPlayer"]
anims/Fade_to_A = SubResource( 2 )
anims/Fade_to_B = SubResource( 1 )