Alternative way to place tovers and enemies

This commit is contained in:
2025-04-30 21:29:28 +02:00
parent fee9cb99cf
commit 9859ddfe87
6 changed files with 110 additions and 9 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=134 format=4 uid="uid://bgme05i7taycc"]
[gd_scene load_steps=141 format=4 uid="uid://bgme05i7taycc"]
[ext_resource type="Texture2D" uid="uid://f1npbjsw71nk" path="res://Assets/Tiles/Fields/FieldsTile_01.png" id="1_fdpq6"]
[ext_resource type="Script" uid="uid://xo6vbicdva8d" path="res://Game/Maps/map_1.gd" id="1_rec5e"]
@ -461,6 +461,27 @@ _data = {
}
point_count = 15
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rec5e"]
size = Vector2(864, 22)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hg5c4"]
size = Vector2(861, 23)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h3dak"]
size = Vector2(992, 24)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6egdt"]
size = Vector2(1163, 13)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_n3ya7"]
size = Vector2(850.25, 5.375)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4tlg5"]
size = Vector2(1161, 9.5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sglle"]
size = Vector2(185, 319)
[node name="Map1" type="Node2D"]
script = ExtResource("1_rec5e")
@ -493,4 +514,43 @@ offset_top = 583.0
offset_right = 1152.0
offset_bottom = 647.0
[node name="TrapArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrapArea"]
position = Vector2(434, 163)
shape = SubResource("RectangleShape2D_rec5e")
debug_color = Color(0.798903, 0.0385002, 1, 0.42)
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TrapArea"]
position = Vector2(497.5, 317.5)
shape = SubResource("RectangleShape2D_hg5c4")
debug_color = Color(0.798903, 0.0385002, 1, 0.42)
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TrapArea"]
position = Vector2(498, 479)
shape = SubResource("RectangleShape2D_h3dak")
debug_color = Color(0.798903, 0.0385002, 1, 0.42)
[node name="TowerArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(582, 58.5)
shape = SubResource("RectangleShape2D_6egdt")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(416, 237)
shape = SubResource("RectangleShape2D_n3ya7")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(527.125, 391.313)
shape = SubResource("RectangleShape2D_n3ya7")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(579, 559)
shape = SubResource("RectangleShape2D_4tlg5")
[node name="CollisionShape2D5" type="CollisionShape2D" parent="TowerArea"]
position = Vector2(1061.5, 285.5)
shape = SubResource("RectangleShape2D_sglle")
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]