2024-04-30 04:00:53 +00:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://ddpo03rb6068c"]
|
2024-04-27 13:32:57 +00:00
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[ext_resource type="Script" path="res://entities/sacrifice_stone.gd" id="1_sgl1t"]
|
2024-04-27 13:32:57 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dfdr3e32lohq" path="res://behaviours/edible.tscn" id="1_y58y4"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c5pyp5hvthdof" path="res://behaviours/tracker_tracker.tscn" id="2_6m7pn"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d3pn6wuykchoa" path="res://entities/sacrifice_stone.png" id="2_rbklw"]
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_yv6hf"]
|
2024-04-29 01:20:27 +00:00
|
|
|
radius = 8.0
|
2024-04-27 13:32:57 +00:00
|
|
|
|
2024-04-30 04:00:53 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_55alx"]
|
|
|
|
size = Vector2(150, 150)
|
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="SacrificeStone" type="Node2D"]
|
2024-04-29 01:20:27 +00:00
|
|
|
y_sort_enabled = true
|
2024-04-27 18:12:03 +00:00
|
|
|
script = ExtResource("1_sgl1t")
|
|
|
|
|
2024-04-28 15:12:41 +00:00
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
2024-04-29 01:20:27 +00:00
|
|
|
y_sort_enabled = true
|
2024-04-28 15:12:41 +00:00
|
|
|
scale = Vector2(2, 2)
|
|
|
|
texture = ExtResource("2_rbklw")
|
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="StoneArea" type="Area2D" parent="."]
|
2024-04-29 01:20:27 +00:00
|
|
|
position = Vector2(0, -29)
|
2024-04-27 13:32:57 +00:00
|
|
|
collision_layer = 8
|
2024-04-28 23:42:13 +00:00
|
|
|
collision_mask = 0
|
2024-04-27 13:32:57 +00:00
|
|
|
monitoring = false
|
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="Shape" type="CollisionShape2D" parent="StoneArea"]
|
2024-04-29 03:38:35 +00:00
|
|
|
z_index = 1
|
2024-04-27 13:32:57 +00:00
|
|
|
shape = SubResource("CircleShape2D_yv6hf")
|
|
|
|
one_way_collision_margin = 27.5
|
2024-04-28 09:15:18 +00:00
|
|
|
debug_color = Color(1, 0, 0, 0.419608)
|
2024-04-27 13:32:57 +00:00
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="Edible" parent="StoneArea" instance=ExtResource("1_y58y4")]
|
2024-04-27 13:32:57 +00:00
|
|
|
diet = &"Trap"
|
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="SacrificeTracker" parent="StoneArea" instance=ExtResource("2_6m7pn")]
|
2024-04-28 23:42:13 +00:00
|
|
|
collision_mask = 8
|
2024-04-27 13:32:57 +00:00
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[node name="Shape" type="CollisionShape2D" parent="StoneArea/SacrificeTracker"]
|
2024-04-29 03:38:35 +00:00
|
|
|
z_index = 1
|
2024-04-27 13:32:57 +00:00
|
|
|
shape = SubResource("CircleShape2D_yv6hf")
|
|
|
|
one_way_collision_margin = 27.5
|
2024-04-28 09:15:18 +00:00
|
|
|
debug_color = Color(1, 0, 0, 0)
|
2024-04-27 18:12:03 +00:00
|
|
|
|
2024-04-30 04:00:53 +00:00
|
|
|
[node name="ForbidSpawn" type="Area2D" parent="."]
|
|
|
|
position = Vector2(0, -29)
|
|
|
|
collision_layer = 64
|
|
|
|
collision_mask = 0
|
|
|
|
monitoring = false
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="ForbidSpawn"]
|
|
|
|
shape = SubResource("RectangleShape2D_55alx")
|
|
|
|
debug_color = Color(0.733333, 0.447059, 0.411765, 0.419608)
|
|
|
|
|
2024-04-27 18:12:03 +00:00
|
|
|
[connection signal="tracked" from="StoneArea/SacrificeTracker" to="." method="_on_tracked"]
|
|
|
|
[connection signal="untracked" from="StoneArea/SacrificeTracker" to="." method="_on_untracked"]
|