1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-24 17:14:23 +00:00
hella-farm/entities/chupacabra.tscn

607 lines
22 KiB
Text
Raw Normal View History

2024-05-01 03:11:17 +00:00
[gd_scene load_steps=41 format=3 uid="uid://cmemgijh6nfmk"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://bxbjfev0lhwws" path="res://behaviours/sprite_left_right.tscn" id="1_11voy"]
[ext_resource type="Script" path="res://entities/chupacabra.gd" id="1_s4qg1"]
[ext_resource type="Texture2D" uid="uid://dcm4txm5gxogt" path="res://entities/chupacabra_left.png" id="2_3kvme"]
[ext_resource type="Texture2D" uid="uid://ba01u171xjl7" path="res://entities/chupacabra_right.png" id="3_rolht"]
2024-04-30 03:17:57 +00:00
[ext_resource type="Texture2D" uid="uid://d3tb6ypb36v8e" path="res://entities/monocle.png" id="5_bcm2q"]
2024-04-25 23:56:04 +00:00
[ext_resource type="Texture2D" uid="uid://bpg0do7wlvqdj" path="res://entities/chupacabra_drag_left.png" id="5_hxrq2"]
2024-04-30 03:17:57 +00:00
[ext_resource type="Texture2D" uid="uid://deqvgvf66grr4" path="res://entities/top_hat.png" id="5_qjgou"]
2024-04-25 23:56:04 +00:00
[ext_resource type="Texture2D" uid="uid://do1nfcfcs6jgx" path="res://entities/chupacabra_drag_right.png" id="6_kmadh"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://g8t6dt0ye6n3" path="res://behaviours/timer_stddev.tscn" id="6_qsds3"]
2024-04-30 03:49:36 +00:00
[ext_resource type="PackedScene" uid="uid://tx1qi6ahlxjp" path="res://behaviours/spawner.tscn" id="7_hdgjp"]
[ext_resource type="PackedScene" uid="uid://ccul07w0h36nu" path="res://behaviours/sacrificable.tscn" id="7_igror"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://djcwis8ycrq85" path="res://behaviours/sampler_priority.tscn" id="7_nq78n"]
[ext_resource type="PackedScene" uid="uid://dk1ipq7dhkhf3" path="res://behaviours/move_straight.tscn" id="8_7fxrt"]
2024-04-30 03:49:36 +00:00
[ext_resource type="PackedScene" uid="uid://8ejgwtkpaa44" path="res://entities/top_hat.tscn" id="8_fa8aq"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://cm67ko1k6kn4u" path="res://behaviours/priority.tscn" id="9_7i81t"]
[ext_resource type="PackedScene" uid="uid://cbg5kgwxusvxf" path="res://behaviours/cursor_detector.tscn" id="10_3wu3x"]
2024-04-30 03:49:36 +00:00
[ext_resource type="PackedScene" uid="uid://b04xhv32ypi42" path="res://entities/monocle.tscn" id="10_k033w"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://rx24bppccih7" path="res://behaviours/move_physics.tscn" id="12_oildi"]
2024-05-01 03:11:17 +00:00
[ext_resource type="PackedScene" uid="uid://dfdr3e32lohq" path="res://behaviours/edible.tscn" id="13_het3n"]
[ext_resource type="PackedScene" uid="uid://cml7rqvyfuagx" path="res://behaviours/move_towards.tscn" id="13_vh42q"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="13_wcydr"]
[ext_resource type="PackedScene" uid="uid://ctpn4hvkhxoi3" path="res://behaviours/tracker_edible.tscn" id="14_mk76g"]
2024-04-30 03:49:36 +00:00
[ext_resource type="PackedScene" uid="uid://uoxwjpmgg27a" path="res://entities/gold.tscn" id="14_nw8pn"]
2024-04-24 03:26:50 +00:00
[ext_resource type="AudioStream" uid="uid://d0feiq5s6fnux" path="res://entities/imp_drag.wav" id="14_u2uf4"]
[ext_resource type="AudioStream" uid="uid://cwsg776c11xfc" path="res://entities/fall.ogg" id="15_q7bw3"]
[ext_resource type="PackedScene" uid="uid://dti7l0d40hhgt" path="res://behaviours/target_picker.tscn" id="15_xay6p"]
2024-04-24 03:26:50 +00:00
[ext_resource type="PackedScene" uid="uid://jg7qkbswgqjc" path="res://behaviours/eater.tscn" id="16_ltvqn"]
[ext_resource type="AudioStream" uid="uid://c1yuksnjdd6g2" path="res://entities/imp_eat.ogg" id="17_ccla5"]
2024-04-30 03:17:57 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_binyt"]
radius = 40.0
2024-04-24 03:26:50 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_mnexs"]
radius = 32.0
[sub_resource type="Animation" id="Animation_gokbg"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(2, 2)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
2024-04-25 23:56:04 +00:00
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite:left_texture")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_3kvme")]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Sprite:right_texture")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("3_rolht")]
}
2024-04-24 03:26:50 +00:00
[sub_resource type="Animation" id="Animation_5yt72"]
resource_name = "drag_loop"
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(2.4, 2.4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite:rotation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(-2, -2), Vector2(1, -1), Vector2(-1, 1), Vector2(1, 1), Vector2(-2, 0), Vector2(1, 1), Vector2(1, -1), Vector2(-1, 1), Vector2(2, 0), Vector2(-1, -1), Vector2(0, 0)]
}
2024-04-25 23:56:04 +00:00
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite:left_texture")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("5_hxrq2")]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Sprite:right_texture")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("6_kmadh")]
}
2024-04-24 03:26:50 +00:00
[sub_resource type="Animation" id="Animation_2igbw"]
resource_name = "drag_start"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(2, 2), Vector2(2.4, 2.4)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
2024-04-25 23:56:04 +00:00
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite:left_texture")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("5_hxrq2")]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite:right_texture")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("6_kmadh")]
}
2024-04-24 03:26:50 +00:00
[sub_resource type="Animation" id="Animation_3namd"]
resource_name = "run"
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(2, 2)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite:left_texture")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_3kvme")]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Sprite:right_texture")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("3_rolht")]
}
[sub_resource type="Animation" id="Animation_fsmcn"]
resource_name = "sit"
2024-04-26 01:57:07 +00:00
length = 0.5
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(2, 2)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite:rotation")
2024-04-26 01:57:07 +00:00
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
2024-04-26 01:57:07 +00:00
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
2024-04-26 01:57:07 +00:00
"values": [0.0349066, -0.0349066]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Sprite:position")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Sprite:left_texture")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_3kvme")]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Sprite:right_texture")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("3_rolht")]
}
2024-04-24 03:26:50 +00:00
[sub_resource type="AnimationLibrary" id="AnimationLibrary_okyam"]
_data = {
"RESET": SubResource("Animation_gokbg"),
"drag_loop": SubResource("Animation_5yt72"),
"drag_start": SubResource("Animation_2igbw"),
"run": SubResource("Animation_3namd"),
"sit": SubResource("Animation_fsmcn")
2024-04-24 03:26:50 +00:00
}
2024-04-30 02:38:27 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_wya3j"]
radius = 320.0
2024-04-24 03:26:50 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_dcrcb"]
radius = 48.0
2024-05-02 01:36:23 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_7g5uo"]
radius = 32.0
2024-04-24 03:26:50 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_vm5g3"]
radius = 32.0
[node name="Chupacabra" type="CharacterBody2D"]
2024-04-29 01:20:27 +00:00
y_sort_enabled = true
collision_layer = 8
collision_mask = 8
2024-04-24 03:26:50 +00:00
motion_mode = 1
script = ExtResource("1_s4qg1")
skitter_directions = Array[Vector2]([Vector2(-1, 0), Vector2(1, 0)])
[node name="Sprite" parent="." instance=ExtResource("1_11voy")]
unique_name_in_owner = true
2024-04-29 01:20:27 +00:00
y_sort_enabled = true
2024-04-24 03:26:50 +00:00
scale = Vector2(2, 2)
texture = ExtResource("2_3kvme")
2024-05-02 01:36:23 +00:00
offset = Vector2(0, -15.5)
2024-04-24 03:26:50 +00:00
left_texture = ExtResource("2_3kvme")
right_texture = ExtResource("3_rolht")
2024-04-30 03:17:57 +00:00
[node name="TopHatter" parent="Sprite" instance=ExtResource("16_ltvqn")]
unique_name_in_owner = true
2024-05-02 01:36:23 +00:00
position = Vector2(0, -15.5)
2024-04-30 03:17:57 +00:00
acceptable_diets = Array[StringName]([&"TopHat"])
target = 1
[node name="Sprite" type="Sprite2D" parent="Sprite/TopHatter"]
visible = false
2024-04-30 03:17:57 +00:00
z_index = 1
2024-05-02 01:36:23 +00:00
position = Vector2(-3.5, -20)
2024-04-30 03:17:57 +00:00
texture = ExtResource("5_qjgou")
[node name="Shape" type="CollisionShape2D" parent="Sprite/TopHatter"]
shape = SubResource("CircleShape2D_binyt")
2024-05-02 01:36:23 +00:00
debug_color = Color(1, 0, 0, 0.294118)
2024-04-30 03:17:57 +00:00
2024-04-30 03:49:36 +00:00
[node name="Spawner" parent="Sprite/TopHatter" instance=ExtResource("7_hdgjp")]
scene = ExtResource("8_fa8aq")
enabled = false
2024-05-01 04:26:30 +00:00
[node name="Sacrificable" parent="Sprite/TopHatter" instance=ExtResource("7_igror")]
2024-04-30 03:17:57 +00:00
[node name="Monocler" parent="Sprite" instance=ExtResource("16_ltvqn")]
unique_name_in_owner = true
2024-05-02 01:36:23 +00:00
position = Vector2(0, -15.5)
2024-04-30 03:17:57 +00:00
acceptable_diets = Array[StringName]([&"Monocle"])
target = 1
[node name="Sprite" type="Sprite2D" parent="Sprite/Monocler"]
visible = false
2024-04-30 03:17:57 +00:00
z_index = 1
2024-05-02 01:36:23 +00:00
position = Vector2(-4, -8)
2024-04-30 03:17:57 +00:00
texture = ExtResource("5_bcm2q")
[node name="Shape" type="CollisionShape2D" parent="Sprite/Monocler"]
shape = SubResource("CircleShape2D_binyt")
2024-05-02 01:36:23 +00:00
debug_color = Color(1, 0, 0, 0.294118)
2024-04-30 03:17:57 +00:00
2024-04-30 03:49:36 +00:00
[node name="Spawner" parent="Sprite/Monocler" instance=ExtResource("7_hdgjp")]
scene = ExtResource("10_k033w")
enabled = false
2024-05-01 04:26:30 +00:00
[node name="Sacrificable" parent="Sprite/Monocler" instance=ExtResource("7_igror")]
2024-04-24 03:26:50 +00:00
[node name="Shape" type="CollisionShape2D" parent="."]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-24 03:26:50 +00:00
shape = SubResource("CircleShape2D_mnexs")
[node name="Animator" type="AnimationPlayer" parent="."]
unique_name_in_owner = true
libraries = {
"": SubResource("AnimationLibrary_okyam")
}
next/drag_loop = &"drag_loop"
next/drag_start = &"drag_loop"
next/run = &"run"
next/sit = &"sit"
2024-04-24 03:26:50 +00:00
2024-05-01 03:11:17 +00:00
[node name="Edible" parent="." instance=ExtResource("13_het3n")]
diet = &"Demon"
[node name="Sacrificable" parent="." instance=ExtResource("7_igror")]
kind = &"Chupacabra"
2024-04-30 03:49:36 +00:00
[node name="GoldSpawner" parent="." instance=ExtResource("7_hdgjp")]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-30 03:49:36 +00:00
scene = ExtResource("14_nw8pn")
[node name="SpawnTimer" parent="GoldSpawner" instance=ExtResource("6_qsds3")]
autostart = true
2024-05-02 23:47:54 +00:00
mean_secs = 0.3
2024-05-02 03:42:45 +00:00
min_secs = 0.1
2024-05-02 23:47:54 +00:00
max_secs = 0.5
2024-04-30 03:49:36 +00:00
2024-04-24 03:26:50 +00:00
[node name="MovementSampler" parent="." instance=ExtResource("7_nq78n")]
2024-04-30 02:38:27 +00:00
[node name="MovementIdle" parent="." instance=ExtResource("8_7fxrt")]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-30 02:38:27 +00:00
speed = 0.0
2024-04-24 03:26:50 +00:00
enabled = false
2024-04-30 02:38:27 +00:00
[node name="IdlePriority" parent="MovementIdle" instance=ExtResource("9_7i81t")]
2024-04-24 03:26:50 +00:00
default_priority = 10
alternative_priority = 10
2024-04-30 02:38:27 +00:00
[node name="BoredTimer" parent="MovementIdle" instance=ExtResource("6_qsds3")]
one_shot = true
autostart = true
2024-04-30 02:38:27 +00:00
mean_secs = 5.0
min_secs = 1.0
2024-04-30 02:38:27 +00:00
max_secs = 9.0
2024-04-30 02:38:27 +00:00
[node name="MovementWander" parent="." instance=ExtResource("8_7fxrt")]
2024-04-24 03:26:50 +00:00
unique_name_in_owner = true
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-30 02:38:27 +00:00
speed = 333.0
2024-04-24 03:26:50 +00:00
enabled = false
2024-04-30 02:38:27 +00:00
[node name="WanderPriority" parent="MovementWander" instance=ExtResource("9_7i81t")]
2024-04-24 03:26:50 +00:00
alternative_priority = 20
2024-04-30 02:38:27 +00:00
[node name="TiredTimer" parent="MovementWander" instance=ExtResource("6_qsds3")]
one_shot = true
2024-05-02 23:47:54 +00:00
mean_secs = 0.4
2024-04-30 02:38:27 +00:00
deviation = 0.5
2024-05-02 23:47:54 +00:00
min_secs = 0.1
max_secs = 0.9
2024-04-24 03:26:50 +00:00
2024-04-30 02:38:27 +00:00
[node name="TrackerMeat" parent="MovementWander" instance=ExtResource("14_mk76g")]
collision_mask = 8
acceptable_diets = Array[StringName]([&"Meat"])
[node name="Shape" type="CollisionShape2D" parent="MovementWander/TrackerMeat"]
shape = SubResource("CircleShape2D_wya3j")
2024-05-02 01:36:23 +00:00
debug_color = Color(1, 1, 0, 0.294118)
2024-04-30 02:38:27 +00:00
[node name="TargetPicker" parent="MovementWander/TrackerMeat" node_paths=PackedStringArray("tracker") instance=ExtResource("15_xay6p")]
tracker = NodePath("..")
[node name="CursorSense" parent="MovementWander" instance=ExtResource("10_3wu3x")]
[node name="Shape" type="CollisionShape2D" parent="MovementWander/CursorSense"]
2024-04-24 03:26:50 +00:00
shape = SubResource("CircleShape2D_dcrcb")
2024-05-02 01:36:23 +00:00
debug_color = Color(0, 1, 0.701961, 0.294118)
2024-04-24 03:26:50 +00:00
[node name="MovementTrap" parent="." instance=ExtResource("13_vh42q")]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
speed = 600.0
enabled = false
[node name="TrapPriority" parent="MovementTrap" instance=ExtResource("9_7i81t")]
alternative_priority = 45
[node name="TrackerTrap" parent="MovementTrap" instance=ExtResource("14_mk76g")]
collision_mask = 8
acceptable_diets = Array[StringName]([&"Trap"])
[node name="Shape" type="CollisionShape2D" parent="MovementTrap/TrackerTrap"]
2024-05-02 01:36:23 +00:00
shape = SubResource("CircleShape2D_7g5uo")
debug_color = Color(1, 1, 0, 0.294118)
[node name="TargetPicker" parent="MovementTrap/TrackerTrap" node_paths=PackedStringArray("tracker") instance=ExtResource("15_xay6p")]
tracker = NodePath("..")
2024-04-24 03:26:50 +00:00
[node name="MovementDrag" parent="." instance=ExtResource("12_oildi")]
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-24 03:26:50 +00:00
enabled = false
[node name="DragPriority" parent="MovementDrag" instance=ExtResource("9_7i81t")]
alternative_priority = 50
[node name="Draggable" parent="MovementDrag" instance=ExtResource("13_wcydr")]
[node name="Shape" type="CollisionShape2D" parent="MovementDrag/Draggable"]
shape = SubResource("CircleShape2D_vm5g3")
2024-05-02 01:36:23 +00:00
debug_color = Color(0, 1, 0.701961, 0.294118)
2024-04-24 03:26:50 +00:00
[node name="DragSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
stream = ExtResource("14_u2uf4")
2024-04-29 01:33:43 +00:00
bus = &"DragSounds"
2024-04-24 03:26:50 +00:00
[node name="FallSound" type="AudioStreamPlayer2D" parent="MovementDrag"]
stream = ExtResource("15_q7bw3")
2024-04-29 01:33:43 +00:00
bus = &"FallSounds"
2024-04-24 03:26:50 +00:00
[node name="Eater" parent="." instance=ExtResource("16_ltvqn")]
unique_name_in_owner = true
2024-05-02 01:36:23 +00:00
position = Vector2(0, -31)
2024-04-24 03:26:50 +00:00
acceptable_diets = Array[StringName]([&"Meat"])
[node name="Shape" type="CollisionShape2D" parent="Eater"]
shape = SubResource("CircleShape2D_binyt")
2024-05-02 01:36:23 +00:00
debug_color = Color(1, 0, 0, 0.294118)
2024-04-24 03:26:50 +00:00
[node name="EatSound" type="AudioStreamPlayer2D" parent="Eater"]
stream = ExtResource("17_ccla5")
2024-04-29 01:33:43 +00:00
bus = &"KillSounds"
2024-04-24 03:26:50 +00:00
2024-05-02 23:37:20 +00:00
[connection signal="eaten" from="Edible" to="." method="queue_free"]
2024-04-29 04:22:15 +00:00
[connection signal="sacrificed" from="Sacrificable" to="." method="queue_free"]
2024-05-02 23:37:20 +00:00
[connection signal="spawned" from="GoldSpawner" to="." method="_on_gold_spawner_spawned"]
2024-04-30 03:49:36 +00:00
[connection signal="timeout" from="GoldSpawner/SpawnTimer" to="GoldSpawner" method="spawn"]
2024-05-02 23:37:20 +00:00
[connection signal="timeout" from="GoldSpawner/SpawnTimer" to="GoldSpawner/SpawnTimer" method="randomize_wait_time"]
2024-04-30 02:38:27 +00:00
[connection signal="move" from="MovementIdle" to="." method="_on_move"]
[connection signal="move_disabled" from="MovementIdle" to="MovementIdle/BoredTimer" method="stop"]
[connection signal="move_enabled" from="MovementIdle" to="MovementIdle/BoredTimer" method="start"]
[connection signal="move_enabled" from="MovementIdle" to="Animator" method="play" binds= [&"sit"]]
[connection signal="timeout" from="MovementIdle/BoredTimer" to="MovementIdle/BoredTimer" method="randomize_wait_time"]
[connection signal="timeout" from="MovementIdle/BoredTimer" to="MovementWander/WanderPriority" method="priority_alternative"]
[connection signal="move" from="MovementWander" to="." method="_on_move"]
2024-04-30 02:38:27 +00:00
[connection signal="move_disabled" from="MovementWander" to="MovementWander/TiredTimer" method="stop"]
[connection signal="move_enabled" from="MovementWander" to="." method="_on_wander_enabled"]
[connection signal="move_enabled" from="MovementWander" to="MovementWander/TiredTimer" method="start"]
[connection signal="move_enabled" from="MovementWander" to="Animator" method="play" binds= [&"run"]]
[connection signal="timeout" from="MovementWander/TiredTimer" to="MovementWander/WanderPriority" method="priority_default"]
[connection signal="timeout" from="MovementWander/TiredTimer" to="MovementWander/TiredTimer" method="randomize_wait_time"]
[connection signal="area_entered" from="MovementWander/TrackerMeat" to="MovementWander/TrackerMeat" method="check_diet_then_track"]
[connection signal="area_exited" from="MovementWander/TrackerMeat" to="MovementWander/TrackerMeat" method="untrack"]
[connection signal="tracked" from="MovementWander/TrackerMeat" to="MovementWander/TrackerMeat/TargetPicker" method="sample_target_if_null" unbinds=1]
[connection signal="untracked" from="MovementWander/TrackerMeat" to="MovementWander/TrackerMeat/TargetPicker" method="clear_if_target"]
[connection signal="target_changed" from="MovementWander/TrackerMeat/TargetPicker" to="MovementWander/TrackerMeat/TargetPicker" method="sample_target_if_null" unbinds=2]
[connection signal="cursor_entered" from="MovementWander/CursorSense" to="MovementWander/WanderPriority" method="priority_alternative" unbinds=1]
[connection signal="changed_target" from="MovementTrap" to="MovementTrap/TrapPriority" method="priority_conditional"]
[connection signal="move" from="MovementTrap" to="." method="_on_move"]
2024-04-29 01:33:43 +00:00
[connection signal="move_disabled" from="MovementTrap" to="." method="_on_freed"]
[connection signal="move_enabled" from="MovementTrap" to="." method="_on_trapped"]
[connection signal="area_entered" from="MovementTrap/TrackerTrap" to="MovementTrap/TrackerTrap" method="check_diet_then_track"]
[connection signal="area_exited" from="MovementTrap/TrackerTrap" to="MovementTrap/TrackerTrap" method="untrack"]
[connection signal="tracked" from="MovementTrap/TrackerTrap" to="MovementTrap/TrackerTrap/TargetPicker" method="sample_target_if_null" unbinds=1]
[connection signal="untracked" from="MovementTrap/TrackerTrap" to="MovementTrap/TrackerTrap/TargetPicker" method="clear_if_target"]
[connection signal="target_changed" from="MovementTrap/TrackerTrap/TargetPicker" to="MovementTrap" method="set_target" unbinds=1]
[connection signal="target_changed" from="MovementTrap/TrackerTrap/TargetPicker" to="MovementTrap/TrackerTrap/TargetPicker" method="sample_target_if_null" unbinds=2]
2024-04-24 03:26:50 +00:00
[connection signal="dragged" from="MovementDrag" to="." method="_on_dragged"]
[connection signal="dragged" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_alternative" unbinds=1]
[connection signal="dragged" from="MovementDrag" to="MovementDrag/DragSound" method="play" unbinds=1]
[connection signal="fallen" from="MovementDrag" to="." method="_on_fallen"]
[connection signal="fallen" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_default"]
[connection signal="fallen" from="MovementDrag" to="MovementDrag/FallSound" method="play"]
[connection signal="move" from="MovementDrag" to="." method="_on_move"]
[connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"]
[connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"]
[connection signal="eaten" from="Eater" to="." method="_on_eater_eaten"]
[connection signal="eaten" from="Eater" to="Eater/EatSound" method="play" unbinds=1]