2024-04-26 00:15:39 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://col1q3elvkfwk"]
|
2024-04-15 23:44:06 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scenes/game/cursor.gd" id="1_1og6v"]
|
2024-04-24 02:56:44 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cu750c7yd57qa" path="res://scenes/game/gold_display.tscn" id="2_5c4iq"]
|
2024-04-26 00:15:39 +00:00
|
|
|
[ext_resource type="Script" path="res://behaviours/spawner.gd" id="3_tutfd"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bc2bm8lbol18w" path="res://entities/sheep.tscn" id="4_7isfg"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://8jkesanu4hrn" path="res://behaviours/tracker.tscn" id="5_ewy4o"]
|
2024-04-15 23:44:06 +00:00
|
|
|
|
2024-04-30 02:38:27 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_6ky4x"]
|
|
|
|
radius = 8.0
|
2024-04-26 00:15:39 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_dc2ul"]
|
|
|
|
radius = 8.0
|
2024-04-17 03:26:13 +00:00
|
|
|
|
2024-04-20 00:23:01 +00:00
|
|
|
[node name="Cursor" type="Area2D" groups=["cursor"]]
|
2024-04-21 22:56:35 +00:00
|
|
|
z_index = 100
|
2024-04-30 04:00:53 +00:00
|
|
|
collision_layer = 128
|
2024-04-30 01:06:20 +00:00
|
|
|
collision_mask = 56
|
2024-04-15 23:44:06 +00:00
|
|
|
script = ExtResource("1_1og6v")
|
2024-04-17 03:26:13 +00:00
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
2024-04-30 02:38:27 +00:00
|
|
|
shape = SubResource("CircleShape2D_6ky4x")
|
2024-04-26 00:15:39 +00:00
|
|
|
debug_color = Color(0, 0.411765, 0, 0)
|
2024-04-24 02:55:31 +00:00
|
|
|
|
2024-04-24 02:56:44 +00:00
|
|
|
[node name="GoldDisplay" parent="." instance=ExtResource("2_5c4iq")]
|
2024-04-24 02:55:31 +00:00
|
|
|
unique_name_in_owner = true
|
2024-04-26 00:15:39 +00:00
|
|
|
|
2024-04-30 03:49:36 +00:00
|
|
|
[node name="SheepSpawner" type="Node2D" parent="."]
|
2024-04-26 00:15:39 +00:00
|
|
|
unique_name_in_owner = true
|
|
|
|
script = ExtResource("3_tutfd")
|
|
|
|
scene = ExtResource("4_7isfg")
|
|
|
|
|
|
|
|
[node name="Tracker" parent="SheepSpawner" instance=ExtResource("5_ewy4o")]
|
2024-04-30 04:00:53 +00:00
|
|
|
collision_mask = 64
|
2024-04-26 00:15:39 +00:00
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="SheepSpawner/Tracker"]
|
|
|
|
shape = SubResource("CircleShape2D_dc2ul")
|
2024-04-30 03:49:36 +00:00
|
|
|
|
2024-04-30 04:00:53 +00:00
|
|
|
[connection signal="area_entered" from="SheepSpawner/Tracker" to="SheepSpawner/Tracker" method="track"]
|
|
|
|
[connection signal="area_exited" from="SheepSpawner/Tracker" to="SheepSpawner/Tracker" method="untrack"]
|
2024-04-30 03:49:36 +00:00
|
|
|
[connection signal="empty" from="SheepSpawner/Tracker" to="SheepSpawner" method="enable"]
|
2024-04-30 04:00:53 +00:00
|
|
|
[connection signal="tracked" from="SheepSpawner/Tracker" to="SheepSpawner/Tracker" method="log_tracked"]
|
2024-04-30 03:49:36 +00:00
|
|
|
[connection signal="tracked" from="SheepSpawner/Tracker" to="SheepSpawner" method="disable" unbinds=1]
|