Prevent overlapping buildings
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://uqxd2lii1xba"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://uqxd2lii1xba"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dil41a1ymo0ua" path="res://Game/Towers/towers.gd" id="1_bhlym"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkgih7tl654v1" path="res://Assets/Towers/Mortar part (3).png" id="1_sq58r"]
|
||||
@ -12,6 +12,10 @@ height = 88.0
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_bhlym"]
|
||||
size = Vector2(367.125, 172.25)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bhlym"]
|
||||
radius = 29.0
|
||||
height = 88.0
|
||||
|
||||
[node name="MortarTower" type="Node2D"]
|
||||
script = ExtResource("1_bhlym")
|
||||
|
||||
@ -46,3 +50,10 @@ texture = ExtResource("3_82ftk")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, 17)
|
||||
shape = SubResource("CapsuleShape2D_bhlym")
|
||||
debug_color = Color(0.862152, 0.144907, 0.800391, 0.42)
|
||||
|
Reference in New Issue
Block a user