-
Notifications
You must be signed in to change notification settings - Fork 0
/
Field.tscn
113 lines (87 loc) · 3.66 KB
/
Field.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Field.gd" type="Script" id=1]
[ext_resource path="res://Tank.tscn" type="PackedScene" id=2]
[ext_resource path="res://Aircraft.tscn" type="PackedScene" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 508.316, 365.276 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 512.372, 16.5424 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 11.2731, 298.849 )
[sub_resource type="RectangleShape2D" id=4]
extents = Vector2( 13.3929, 299.584 )
[sub_resource type="Curve2D" id=5]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 296.219, -97.4863, 0, 0, 0, 0, 751.939, -97.4863 )
}
[sub_resource type="Curve2D" id=6]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 736.224, 683.747, 0, 0, 0, 0, 489.47, 684.874, 0, 0, 0, 0, 347.852, 685.992 )
}
[node name="Field" type="Area2D"]
position = Vector2( 3.41637, -0.172768 )
collision_layer = 1024
collision_mask = 1024
script = ExtResource( 1 )
Aircraft = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 509.627, 299.821 )
scale = Vector2( 1.00806, 0.818918 )
shape = SubResource( 1 )
[node name="Tank1" parent="." instance=ExtResource( 2 )]
position = Vector2( 31.665, 37.2096 )
rotation = 1.57246
player = 1
[node name="Tank2" parent="." instance=ExtResource( 2 )]
position = Vector2( 989.641, 90.0801 )
rotation = -1.56868
player = 2
[node name="Tank3" parent="." instance=ExtResource( 2 )]
position = Vector2( 369.086, 566.957 )
player = 3
[node name="Wall1" type="StaticBody2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall1"]
position = Vector2( 509.65, -16.0308 )
shape = SubResource( 2 )
[node name="Wall2" type="StaticBody2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall2"]
position = Vector2( 509.591, 615.907 )
shape = SubResource( 2 )
[node name="Wall3" type="StaticBody2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall3"]
position = Vector2( -14.1699, 299.525 )
shape = SubResource( 3 )
[node name="Wall4" type="StaticBody2D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Wall4"]
position = Vector2( 1035.76, 300.097 )
shape = SubResource( 4 )
[node name="Airfcrafts" type="Timer" parent="."]
wait_time = 14.0
autostart = true
[node name="UpperAircraftSpawner" type="Path2D" parent="Airfcrafts"]
curve = SubResource( 5 )
[node name="PathFollow2D" type="PathFollow2D" parent="Airfcrafts/UpperAircraftSpawner"]
position = Vector2( 296.219, -97.4863 )
[node name="LowerAircraftSpawner" type="Path2D" parent="Airfcrafts"]
curve = SubResource( 6 )
[node name="PathFollow2D" type="PathFollow2D" parent="Airfcrafts/LowerAircraftSpawner"]
position = Vector2( 736.224, 683.747 )
rotation = 3.13704
[connection signal="dead" from="Tank1" to="." method="_on_Tank1_dead"]
[connection signal="robot" from="Tank1" to="." method="_on_Tank1_robot"]
[connection signal="zero" from="Tank1" to="." method="_on_Tank1_zero"]
[connection signal="dead" from="Tank2" to="." method="_on_Tank2_dead"]
[connection signal="robot" from="Tank2" to="." method="_on_Tank2_robot"]
[connection signal="zero" from="Tank2" to="." method="_on_Tank2_zero"]
[connection signal="dead" from="Tank3" to="." method="_on_Tank3_dead"]
[connection signal="robot" from="Tank3" to="." method="_on_Tank3_robot"]
[connection signal="zero" from="Tank3" to="." method="_on_Tank3_zero"]
[connection signal="timeout" from="Airfcrafts" to="." method="_on_Airfcrafts_timeout"]