-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
74 lines (58 loc) · 2.55 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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
[ext_resource path="res://Main.gd" type="Script" id=2]
[ext_resource path="res://Number.tscn" type="PackedScene" id=3]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=4]
[ext_resource path="res://dodge_assets/art/House In a Forest Loop.ogg" type="AudioStream" id=5]
[ext_resource path="res://dodge_assets/art/gameover.wav" type="AudioStream" id=6]
[ext_resource path="res://Mob.tscn" type="PackedScene" id=7]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 480, 0, 0, 0, 0, 0, 480, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, -8 )
}
[sub_resource type="Curve2D" id=2]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 8, 8, 0, 0, 0, 0, 704, 8, 0, 0, 0, 0, 688, 1200, 0, 0, 0, 0, 8, 1192, 0, 0, 0, 0, 8, 8 )
}
[node name="Main" type="Node"]
script = ExtResource( 2 )
Number = ExtResource( 3 )
Mob = ExtResource( 7 )
[node name="ColorRect" type="ColorRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0.933333, 0, 0, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player" parent="." instance=ExtResource( 1 )]
[node name="MobTimer" type="Timer" parent="."]
wait_time = 5.0
[node name="NumberTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 372.142, 646.326 )
[node name="MobPath1" type="Path2D" parent="."]
visible = false
curve = SubResource( 1 )
[node name="HUD" parent="." instance=ExtResource( 4 )]
pause_mode = 2
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource( 2 )
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2( 8, 8 )
rotation = -1.22007e-07
[connection signal="hit" from="Player" to="." method="check_number"]
[connection signal="hit_mob" from="Player" to="." method="game_over"]
[connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
[connection signal="timeout" from="NumberTimer" to="." method="_on_NumberTimer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_StartTimer_timeout"]
[connection signal="resume_game" from="HUD" to="." method="_on_HUD_resume_game"]
[connection signal="start_game" from="HUD" to="." method="new_game"]