-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tscn
More file actions
46 lines (34 loc) · 1.75 KB
/
main.tscn
File metadata and controls
46 lines (34 loc) · 1.75 KB
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
[gd_scene load_steps=6 format=3 uid="uid://qvp4klec7y37"]
[ext_resource type="Script" path="res://Main.gd" id="1_s1gxm"]
[ext_resource type="PackedScene" uid="uid://btu4vwqpvjl7y" path="res://mob.tscn" id="2_xx0lw"]
[ext_resource type="PackedScene" uid="uid://bqhwcdowmmrom" path="res://player.tscn" id="3_o2njh"]
[ext_resource type="PackedScene" uid="uid://csa8utix0pffw" path="res://hud.tscn" id="4_n6whv"]
[sub_resource type="Curve2D" id="Curve2D_6lgko"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 1, 3, 0, 0, 0, 0, 479, 0, 0, 0, 0, 0, 481, 719, 0, 0, 0, 0, 1, 717, 0, 0, 0, 0, 1, 3)
}
point_count = 5
[node name="Main" type="Node"]
script = ExtResource("1_s1gxm")
mob_scene = ExtResource("2_xx0lw")
[node name="Player" parent="." instance=ExtResource("3_o2njh")]
[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="Marker2D" parent="."]
position = Vector2(240, 450)
[node name="MobPath" type="Path2D" parent="."]
curve = SubResource("Curve2D_6lgko")
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2(1, 3)
rotation = -0.00627607
[node name="HUD" parent="." instance=ExtResource("4_n6whv")]
[connection signal="hit" from="Player" to="." method="_on_player_hit"]
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
[connection signal="timeout" from="ScoreTimer" to="." method="_on_score_timer_timeout"]
[connection signal="timeout" from="StartTimer" to="." method="_on_start_timer_timeout"]
[connection signal="start_game" from="HUD" to="." method="new_game"]