mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-22 08:04:23 +00:00
44 lines
1.6 KiB
Text
44 lines
1.6 KiB
Text
[gd_scene load_steps=6 format=3 uid="uid://ddpo03rb6068c"]
|
|
|
|
[ext_resource type="Script" path="res://entities/sacrifice_stone.gd" id="1_sgl1t"]
|
|
[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"]
|
|
radius = 8.0
|
|
|
|
[node name="SacrificeStone" type="Node2D"]
|
|
script = ExtResource("1_sgl1t")
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
scale = Vector2(2, 2)
|
|
texture = ExtResource("2_rbklw")
|
|
offset = Vector2(0, -8)
|
|
|
|
[node name="StoneArea" type="Area2D" parent="."]
|
|
position = Vector2(0, -45)
|
|
collision_layer = 8
|
|
collision_mask = 0
|
|
monitoring = false
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="StoneArea"]
|
|
z_index = 1
|
|
shape = SubResource("CircleShape2D_yv6hf")
|
|
one_way_collision_margin = 27.5
|
|
debug_color = Color(1, 1, 1, 0.294118)
|
|
|
|
[node name="Edible" parent="StoneArea" instance=ExtResource("1_y58y4")]
|
|
diet = &"Trap"
|
|
|
|
[node name="SacrificeTracker" parent="StoneArea" instance=ExtResource("2_6m7pn")]
|
|
collision_mask = 8
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="StoneArea/SacrificeTracker"]
|
|
z_index = 1
|
|
shape = SubResource("CircleShape2D_yv6hf")
|
|
one_way_collision_margin = 27.5
|
|
debug_color = Color(1, 1, 0, 0.294118)
|
|
|
|
[connection signal="tracked" from="StoneArea/SacrificeTracker" to="." method="_on_tracked"]
|
|
[connection signal="untracked" from="StoneArea/SacrificeTracker" to="." method="_on_untracked"]
|