|
@@ -1,12 +1,14 @@
|
|
|
-[gd_scene load_steps=3 format=2]
|
|
|
+[gd_scene load_steps=4 format=2]
|
|
|
|
|
|
[ext_resource path="res://enemie/newai.gd" type="Script" id=1]
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=23]
|
|
|
extents = Vector2( 128.34, 81.3173 )
|
|
|
|
|
|
+[sub_resource type="RectangleShape2D" id=24]
|
|
|
+extents = Vector2( 94.6445, 48.9112 )
|
|
|
+
|
|
|
[node name="tank" type="KinematicBody2D" groups=["enemy", "ennemy"]]
|
|
|
-position = Vector2( 689.688, 214.579 )
|
|
|
collision_layer = 12
|
|
|
collision_mask = 0
|
|
|
script = ExtResource( 1 )
|
|
@@ -19,3 +21,13 @@ shape = SubResource( 23 )
|
|
|
|
|
|
[node name="canonpoint" type="Position2D" parent="."]
|
|
|
position = Vector2( -23.973, -127.356 )
|
|
|
+
|
|
|
+[node name="Area2D" type="Area2D" parent="."]
|
|
|
+collision_layer = 2
|
|
|
+collision_mask = 2
|
|
|
+
|
|
|
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
+position = Vector2( 22, 39 )
|
|
|
+shape = SubResource( 24 )
|
|
|
+
|
|
|
+[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered_2"]
|