1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00

Make the SacrificeStone capture area visible with visible collision shapes

This commit is contained in:
Steffo 2024-04-28 11:15:18 +02:00
parent 9a37e4676f
commit efe93de640
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -6,7 +6,7 @@
[ext_resource type="Texture2D" uid="uid://d3pn6wuykchoa" path="res://entities/sacrifice_stone.png" id="2_rbklw"] [ext_resource type="Texture2D" uid="uid://d3pn6wuykchoa" path="res://entities/sacrifice_stone.png" id="2_rbklw"]
[sub_resource type="CircleShape2D" id="CircleShape2D_yv6hf"] [sub_resource type="CircleShape2D" id="CircleShape2D_yv6hf"]
radius = 0.01 radius = 4.0
[node name="SacrificeStone" type="Node2D"] [node name="SacrificeStone" type="Node2D"]
script = ExtResource("1_sgl1t") script = ExtResource("1_sgl1t")
@ -19,6 +19,7 @@ monitoring = false
[node name="Shape" type="CollisionShape2D" parent="StoneArea"] [node name="Shape" type="CollisionShape2D" parent="StoneArea"]
shape = SubResource("CircleShape2D_yv6hf") shape = SubResource("CircleShape2D_yv6hf")
one_way_collision_margin = 27.5 one_way_collision_margin = 27.5
debug_color = Color(1, 0, 0, 0.419608)
[node name="Edible" parent="StoneArea" instance=ExtResource("1_y58y4")] [node name="Edible" parent="StoneArea" instance=ExtResource("1_y58y4")]
diet = &"Trap" diet = &"Trap"
@ -34,6 +35,7 @@ texture = ExtResource("2_rbklw")
[node name="Shape" type="CollisionShape2D" parent="StoneArea/SacrificeTracker"] [node name="Shape" type="CollisionShape2D" parent="StoneArea/SacrificeTracker"]
shape = SubResource("CircleShape2D_yv6hf") shape = SubResource("CircleShape2D_yv6hf")
one_way_collision_margin = 27.5 one_way_collision_margin = 27.5
debug_color = Color(1, 0, 0, 0)
[connection signal="tracked" from="StoneArea/SacrificeTracker" to="." method="_on_tracked"] [connection signal="tracked" from="StoneArea/SacrificeTracker" to="." method="_on_tracked"]
[connection signal="untracked" from="StoneArea/SacrificeTracker" to="." method="_on_untracked"] [connection signal="untracked" from="StoneArea/SacrificeTracker" to="." method="_on_untracked"]