-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
44 lines (33 loc) · 1.59 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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://Node2D.tscn" type="PackedScene" id=2]
[ext_resource path="res://Turba.tscn" type="PackedScene" id=3]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, -0.65271, -2.21047, 0, 0, 0, 0, 480.22, 1.87627, 0, 0, 0, 0, 481.583, 722.505, 0, 0, 0, 0, -1.33383, 721.143, 0, 0, 0, 0, -0.65271, -2.21047 )
}
[node name="Main" type="Node2D"]
script = ExtResource( 1 )
Mob = ExtResource( 3 )
[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
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 240, 450 )
[node name="Player" parent="." instance=ExtResource( 2 )]
position = Vector2( 190.564, 194.877 )
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2( -0.65271, -2.21047 )
rotation = 0.00849852
[node name="HUD" parent="." instance=ExtResource( 4 )]
[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="hit" from="Player" to="." method="game_over"]
[connection signal="start_game" from="HUD" to="." method="new_game"]