-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
90 lines (71 loc) · 3.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
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
[gd_scene load_steps=12 format=3 uid="uid://cyfwty2q3rdse"]
[ext_resource type="Script" path="res://Main.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://rkdnhqgf2hpj" path="res://Mob.tscn" id="2"]
[ext_resource type="PackedScene" uid="uid://4vwrqjegqwpj" path="res://Player.tscn" id="3"]
[ext_resource type="PackedScene" uid="uid://ccqoreueuxdb7" path="res://HUD.tscn" id="4"]
[ext_resource type="AudioStream" uid="uid://q2pf4fr8d0ks" path="res://art/House In a Forest Loop.ogg" id="5"]
[ext_resource type="AudioStream" uid="uid://dw26fpygeag8o" path="res://art/gameover.wav" id="6"]
[ext_resource type="Script" path="res://Stats.gd" id="7_xgrqd"]
[ext_resource type="Texture2D" uid="uid://b8es35qcdwk2c" path="res://art/background/background1.png" id="8_0saoc"]
[ext_resource type="Texture2D" uid="uid://8kj3qkdc3o2e" path="res://art/background/background2.png" id="9_4htc5"]
[sub_resource type="Curve2D" id="1"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -2.97915, -2, 0, 0, 0, 0, 1899.7, 11, 0, 0, 0, 0, 1899.7, 1076, 0, 0, 0, 0, 1.9861, 1062, 0, 0, 0, 0, -2.97915, -2, 0, 0, 0, 0, -2.97915, 2)
}
point_count = 6
[sub_resource type="SpriteFrames" id="SpriteFrames_3wnxy"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("8_0saoc")
}, {
"duration": 1.0,
"texture": ExtResource("9_4htc5")
}],
"loop": true,
"name": &"switch",
"speed": 5.0
}]
[node name="Main" type="Node"]
script = ExtResource("1")
mob_scene = ExtResource("2")
[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.219608, 0.372549, 0.380392, 1)
[node name="Player" parent="." instance=ExtResource("3")]
[node name="MobTimer" type="Timer" parent="."]
[node name="ScoreTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="FPSTimer" type="Timer" parent="."]
[node name="StartPosition" type="Marker2D" parent="."]
position = Vector2(958, 664)
[node name="MobPath" type="Path2D" parent="."]
scale = Vector2(1.007, 1)
curve = SubResource("1")
[node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
position = Vector2(-2.97915, -2)
rotation = 0.00683237
[node name="HUD" parent="." instance=ExtResource("4")]
[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5")
[node name="DeathSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6")
[node name="Stats" type="Node" parent="."]
script = ExtResource("7_xgrqd")
[node name="Background" type="AnimatedSprite2D" parent="."]
position = Vector2(962, 538)
sprite_frames = SubResource("SpriteFrames_3wnxy")
animation = &"switch"
[connection signal="safe_mode_shutdown" from="." to="HUD" method="on_stop_button_pressed"]
[connection signal="hit" from="Player" to="." method="on_hit_count"]
[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="timeout" from="FPSTimer" to="." method="_on_fps_timer_timeout"]
[connection signal="start_game" from="HUD" to="." method="new_game"]