forked from acapitani/karate-kap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
125 lines (111 loc) · 3.35 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
113
114
115
116
117
118
119
120
121
122
123
124
125
[gd_scene load_steps=6 format=2]
[ext_resource path="res://main.gd" type="Script" id=1]
[sub_resource type="Animation" id=1]
resource_name = "fade_in"
tracks/0/type = "value"
tracks/0/path = NodePath("left:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( -4, 1 ),
"update": 0,
"values": [ Vector2( -8, 0 ), Vector2( -216, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("right:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( -4, 1 ),
"update": 0,
"values": [ Vector2( 216, 0 ), Vector2( 424, 0 ) ]
}
[sub_resource type="Animation" id=2]
resource_name = "fade_out"
tracks/0/type = "value"
tracks/0/path = NodePath("left:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( -4, 1 ),
"update": 0,
"values": [ Vector2( -216, 0 ), Vector2( -8, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("right:position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.3 ),
"transitions": PoolRealArray( -4, 1 ),
"update": 0,
"values": [ Vector2( 424, 0 ), Vector2( 216, 0 ) ]
}
[sub_resource type="Animation" id=3]
resource_name = "fadein"
tracks/0/type = "value"
tracks/0/path = NodePath(".: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, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 0.0 ]
}
[sub_resource type="Animation" id=4]
resource_name = "fadeout"
tracks/0/type = "value"
tracks/0/path = NodePath(".: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, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, -60.0 ]
}
[node name="main" type="Node2D"]
pause_mode = 2
script = ExtResource( 1 )
[node name="levels" type="Node2D" parent="."]
[node name="fade_layer" type="CanvasLayer" parent="."]
editor/display_folded = true
layer = 10
[node name="fadeanim" type="AnimationPlayer" parent="fade_layer"]
anims/fade_in = SubResource( 1 )
anims/fade_out = SubResource( 2 )
[node name="left" type="Polygon2D" parent="fade_layer"]
position = Vector2( -216, 0 )
color = Color( 0, 0, 0, 1 )
polygon = PoolVector2Array( -16, -16, 208, -16, 208, 256, -16, 256 )
[node name="right" type="Polygon2D" parent="fade_layer"]
position = Vector2( 424, 0 )
color = Color( 0, 0, 0, 1 )
polygon = PoolVector2Array( -16, -16, 208, -16, 208, 256, -16, 256 )
[node name="loadtimer" type="Timer" parent="."]
one_shot = true
[node name="music" type="AudioStreamPlayer" parent="."]
editor/display_folded = true
volume_db = -60.0
bus = "music"
[node name="musicfade" type="AnimationPlayer" parent="music"]
anims/fadein = SubResource( 3 )
anims/fadeout = SubResource( 4 )
[connection signal="timeout" from="loadtimer" to="." method="_on_loadtimer_timeout"]
[connection signal="animation_finished" from="music/musicfade" to="." method="_on_musicfade_animation_finished"]