-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.tscn
70 lines (53 loc) · 2.41 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
[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://Enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://Menu.tscn" type="PackedScene" id=4]
[ext_resource path="res://Background.tscn" type="PackedScene" id=5]
[ext_resource path="res://Coin.tscn" type="PackedScene" id=6]
[ext_resource path="res://Boss.tscn" type="PackedScene" id=7]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 1920, 128, 0, 0, 0, 0, 1920, 896 )
}
[sub_resource type="Curve2D" id=2]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 1920, 896, 0, 0, 0, 0, 1920, 128 )
}
[node name="Main" type="Node"]
script = ExtResource( 2 )
Enemy = ExtResource( 3 )
Coin = ExtResource( 6 )
Boss = ExtResource( 7 )
[node name="Background" parent="." instance=ExtResource( 5 )]
[node name="EnemySpawnTimer" type="Timer" parent="."]
wait_time = 3.0
[node name="StartDelay" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="PlayerPosition" type="Position2D" parent="."]
position = Vector2( 100, 540 )
[node name="EnemyPath" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="EnemySpawnLocation" type="PathFollow2D" parent="EnemyPath"]
position = Vector2( 1920, 128 )
rotation = 1.5708
[node name="Player" parent="." instance=ExtResource( 1 )]
[node name="Menu" parent="." instance=ExtResource( 4 )]
[node name="CoinsPath" type="Path2D" parent="."]
curve = SubResource( 2 )
[node name="CoinsSpawnLocation" type="PathFollow2D" parent="CoinsPath"]
position = Vector2( 1920, 896 )
rotation = -1.5708
[node name="CoinsSpawnTimer" type="Timer" parent="."]
wait_time = 5.0
[node name="BossSpawnTimer" type="Timer" parent="."]
wait_time = 100.0
[connection signal="timeout" from="EnemySpawnTimer" to="." method="_on_EnemySpawnTimer_timeout"]
[connection signal="timeout" from="StartDelay" to="." method="_on_StartDelay_timeout"]
[connection signal="empty" from="Player" to="." method="game_over"]
[connection signal="hit" from="Player" to="." method="game_over"]
[connection signal="shooting" from="Player" to="." method="_on_Player_shooting"]
[connection signal="start_game" from="Menu" to="." method="new_game"]
[connection signal="timeout" from="CoinsSpawnTimer" to="." method="_on_CoinsSpawnTimer_timeout"]
[connection signal="timeout" from="BossSpawnTimer" to="." method="_on_BossSpawnTimer_timeout"]