-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
60 lines (44 loc) · 2.38 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
[gd_scene load_steps=8 format=3 uid="uid://cp54u6l2jlcvm"]
[ext_resource type="Script" path="res://main.gd" id="1_7m5w8"]
[ext_resource type="PackedScene" uid="uid://c0uf3xsnhgll4" path="res://enemy.tscn" id="2_eitbt"]
[ext_resource type="PackedScene" uid="uid://dcxs6lviy8iqy" path="res://Player.tscn" id="3_foi4r"]
[ext_resource type="Texture2D" uid="uid://dxk40741uyss1" path="res://Resources/Background/Road.png" id="3_spre1"]
[ext_resource type="PackedScene" uid="uid://b5lbwy5hprciv" path="res://richmond_driver.tscn" id="3_y72yp"]
[ext_resource type="PackedScene" uid="uid://r0qe4ipkl5k" path="res://events_msgs.tscn" id="5_wichx"]
[sub_resource type="Curve2D" id="Curve2D_8atcv"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 75, -320, 0, 0, 0, 0, 605, -323, 0, 0, 0, 0, 72, -328, 0, 0, 0, 0, 75, -320)
}
point_count = 4
[node name="Main" type="Node2D"]
script = ExtResource("1_7m5w8")
enemy_scenes = Array[PackedScene]([ExtResource("2_eitbt"), ExtResource("3_y72yp")])
[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
motion_scale = Vector2(0.35, 0.35)
motion_mirroring = Vector2(0, 1200)
[node name="Road" type="Sprite2D" parent="ParallaxBackground/ParallaxLayer"]
position = Vector2(351, 643)
texture = ExtResource("3_spre1")
[node name="Player" parent="." instance=ExtResource("3_foi4r")]
position = Vector2(385, 826)
[node name="EnemySpawnTimer" type="Timer" parent="."]
autostart = true
[node name="MobPath" type="Path2D" parent="."]
position = Vector2(17, 2)
curve = SubResource("Curve2D_8atcv")
[node name="MobSpawning" type="PathFollow2D" parent="MobPath"]
position = Vector2(75, -320)
rotation = -0.00566032
[node name="EnemyContainer" type="Node2D" parent="."]
[node name="EventTimer" type="Timer" parent="."]
wait_time = 7.0
autostart = true
[node name="EventsMsgs" parent="." instance=ExtResource("5_wichx")]
[node name="WigglingTimer" type="Timer" parent="."]
wait_time = 0.5
[node name="DoomTimer" type="Timer" parent="."]
[connection signal="timeout" from="EnemySpawnTimer" to="." method="_on_enemy_spawn_timer_timeout"]
[connection signal="timeout" from="EventTimer" to="." method="_on_event_timer_timeout"]
[connection signal="timeout" from="WigglingTimer" to="." method="_on_wiggling_timer_timeout"]
[connection signal="timeout" from="DoomTimer" to="." method="_on_doom_timer_timeout"]