Prevent overlapping buildings

This commit is contained in:
2025-04-30 11:21:34 +02:00
parent 7d79d3f60f
commit fee9cb99cf
8 changed files with 82 additions and 11 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://b4e605q60lde4"]
[gd_scene load_steps=13 format=3 uid="uid://b4e605q60lde4"]
[ext_resource type="Script" uid="uid://dil41a1ymo0ua" path="res://Game/Towers/towers.gd" id="1_grwc8"]
[ext_resource type="Texture2D" uid="uid://dngrpwmj4oedg" path="res://Assets/Towers/S_Fly.png" id="2_grwc8"]
@ -60,6 +60,10 @@ height = 88.0
[sub_resource type="CircleShape2D" id="CircleShape2D_c5q70"]
radius = 183.044
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_grwc8"]
radius = 29.0
height = 88.0
[node name="WizardTower" type="Node2D"]
script = ExtResource("1_grwc8")
@ -87,3 +91,10 @@ shape = SubResource("CircleShape2D_c5q70")
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
autostart = true
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, 17)
shape = SubResource("CapsuleShape2D_grwc8")
debug_color = Color(0.862152, 0.144907, 0.800391, 0.42)