-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.tscn
178 lines (144 loc) · 5.72 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[gd_scene load_steps=23 format=2]
[ext_resource path="res://Mob.tscn" type="PackedScene" id=1]
[ext_resource path="res://main.gd" type="Script" id=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/bgr/bgr02.png" type="Texture" id=4]
[ext_resource path="res://assets/music/bgr01.ogg" type="AudioStream" id=5]
[ext_resource path="res://PauseCtrl.tscn" type="PackedScene" id=6]
[ext_resource path="res://assets/bgr/block01.png" type="Texture" id=7]
[ext_resource path="res://assets/bgr/block02.png" type="Texture" id=8]
[ext_resource path="res://assets/font/SHADSER.TTF" type="DynamicFontData" id=9]
[ext_resource path="res://Boss01.tscn" type="PackedScene" id=10]
[ext_resource path="res://blink-boss01.tres" type="Material" id=11]
[ext_resource path="res://blink-player.tres" type="Material" id=12]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 532.124, 165.755, 0, 0, 0, 0, 910, 204, 0, 0, 0, 0, 878.825, 491.488, 0, 0, 0, 0, 706.11, 420.392, 0, 0, 0, 0, 528.046, 545.516, 0, 0, 0, 0, 522.609, 380.88, 0, 0, 0, 0, 528.046, 161.365 )
}
[sub_resource type="Theme" id=2]
[sub_resource type="DynamicFont" id=3]
size = 30
outline_size = 3
outline_color = Color( 0, 0, 0, 1 )
use_mipmaps = true
font_data = ExtResource( 9 )
[sub_resource type="Animation" id=4]
resource_name = "AnimScore"
length = 0.4
tracks/0/type = "value"
tracks/0/path = NodePath("UserInterface/Score:custom_colors/font_color")
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, 0.4 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Color( 0.972549, 0.956863, 0.960784, 1 ), Color( 1, 0.0117647, 0.290196, 1 ), Color( 1, 1, 1, 1 ) ]
}
[sub_resource type="Gradient" id=9]
offsets = PoolRealArray( 0, 0.99117, 1 )
colors = PoolColorArray( 0.0727386, 0.104535, 0.886719, 1, 0.065918, 0.814934, 0.9375, 1, 1, 1, 1, 1 )
[sub_resource type="GradientTexture" id=10]
gradient = SubResource( 9 )
[sub_resource type="Curve" id=7]
_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=8]
curve = SubResource( 7 )
[sub_resource type="ParticlesMaterial" id=5]
emission_shape = 2
emission_box_extents = Vector3( 900, 0, 0 )
flag_disable_z = true
direction = Vector3( 0, -1, 0 )
gravity = Vector3( 0, 0, 0 )
initial_velocity = 76.07
initial_velocity_random = 0.15
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 4.0
scale_random = 0.46
scale_curve = SubResource( 8 )
color_ramp = SubResource( 10 )
[sub_resource type="RectangleShape2D" id=11]
extents = Vector2( 960, 14.625 )
[node name="Main" type="Node"]
script = ExtResource( 2 )
Mob = ExtResource( 1 )
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
layer = -10
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
[node name="Sprite" type="Sprite" parent="ParallaxBackground/ParallaxLayer"]
position = Vector2( 953, 491.961 )
scale = Vector2( 1.31593, 1.60388 )
texture = ExtResource( 4 )
[node name="Boss01" parent="." instance=ExtResource( 10 )]
position = Vector2( -66, 96 )
collision_layer = 15
collision_mask = 15
whiten_material = ExtResource( 11 )
[node name="PauseCtrl" parent="." instance=ExtResource( 6 )]
[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 636, 915 )
collision_layer = 15
collision_mask = 15
whiten_material = ExtResource( 12 )
[node name="MobTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="ScoreTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
autostart = true
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 650, 900 )
[node name="MobPath" type="Path2D" parent="."]
position = Vector2( 618.521, 46.4902 )
scale = Vector2( 0.735691, 0.45555 )
curve = SubResource( 1 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2( 532.124, 165.755 )
rotation = 0.100871
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
volume_db = -13.152
autoplay = true
[node name="StreetItem01" type="Sprite" parent="."]
position = Vector2( 1492, 1017.77 )
scale = Vector2( 0.482621, 0.557655 )
z_index = 10
texture = ExtResource( 7 )
[node name="StreetItem02" type="Sprite" parent="."]
position = Vector2( 215, 1010 )
scale = Vector2( 0.546987, 0.619192 )
z_index = 10
texture = ExtResource( 8 )
[node name="UserInterface" type="Control" parent="."]
margin_right = 40.0
margin_bottom = 40.0
theme = SubResource( 2 )
[node name="Score" type="Label" parent="UserInterface"]
margin_left = 1433.0
margin_top = 68.0
margin_right = 1915.0
margin_bottom = 127.0
custom_colors/font_color = Color( 0.972549, 0.956863, 0.960784, 1 )
custom_colors/font_outline_modulate = Color( 0, 0, 0, 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
custom_fonts/font = SubResource( 3 )
text = "Confidence 000000000"
[node name="AnimInfo" type="AnimationPlayer" parent="."]
anims/AnimScore = SubResource( 4 )
[node name="GroundParticle2D" type="Particles2D" parent="."]
use_parent_material = true
position = Vector2( 1004, 1045 )
amount = 200
process_material = SubResource( 5 )
[node name="Ground" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground"]
position = Vector2( 954, 1049.63 )
shape = SubResource( 11 )
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_ScoreTimer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
[connection signal="body_entered" from="Ground" to="." method="_on_Ground_body_entered"]