-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.tscn
59 lines (46 loc) · 2.22 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
[gd_scene load_steps=8 format=3 uid="uid://cpy4sru6f0p7u"]
[ext_resource type="Texture2D" uid="uid://db0s4267vn3ew" path="res://art/background.png" id="1_ixn4p"]
[ext_resource type="Script" path="res://Main.gd" id="1_tqcyl"]
[ext_resource type="PackedScene" uid="uid://bm14wuvyhnpli" path="res://Player.tscn" id="2_nk7gv"]
[ext_resource type="PackedScene" uid="uid://drcreuoivymub" path="res://Cloud.tscn" id="3_sl8g7"]
[ext_resource type="PackedScene" uid="uid://b7ldyrm86plhv" path="res://Hud.tscn" id="4_gavon"]
[ext_resource type="PackedScene" uid="uid://cesbyrgi27ct4" path="res://Crown.tscn" id="5_42gpn"]
[sub_resource type="Curve2D" id="Curve2D_cjrdv"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 757, 0, 0, 0, 0, 0, 741, -1, 0, 0, 0, 0, 757, 480, 0, 0, 0, 0, 742, 481, 0, 0, 0, 0, 757, 0)
}
point_count = 5
[node name="Main" type="Node"]
script = ExtResource("1_tqcyl")
cloud_scene = ExtResource("3_sl8g7")
mob_scene = ExtResource("5_42gpn")
[node name="Background" type="TextureRect" parent="."]
offset_right = 760.0
offset_bottom = 480.0
texture = ExtResource("1_ixn4p")
[node name="Player" parent="." instance=ExtResource("2_nk7gv")]
visible = false
position = Vector2(25, 4)
scale = Vector2(0.3, 0.3)
[node name="CloudPath" type="Path2D" parent="."]
position = Vector2(2, 0)
curve = SubResource("Curve2D_cjrdv")
[node name="CloudSpawnLocation" type="PathFollow2D" parent="CloudPath"]
position = Vector2(757, 0)
rotation = -3.07917
[node name="StartTimer" type="Timer" parent="."]
one_shot = true
[node name="CloudTimer" type="Timer" parent="."]
wait_time = 1.985
[node name="MobTimer" type="Timer" parent="."]
wait_time = 5.0
[node name="FinishTimer" type="Timer" parent="."]
wait_time = 61.0
one_shot = true
[node name="HUD" parent="." instance=ExtResource("4_gavon")]
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="timeout" from="StartTimer" to="." method="_on_start_timer_timeout"]
[connection signal="timeout" from="CloudTimer" to="." method="_on_cloud_timer_timeout"]
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
[connection signal="timeout" from="FinishTimer" to="." method="victory"]
[connection signal="start_game" from="HUD" to="." method="new_game"]