Files
Babushka/prefabs/farm/tomato_field.tscn
T

55 lines
2.7 KiB
Plaintext
Raw Normal View History

2025-07-11 03:55:36 +02:00
[gd_scene load_steps=10 format=3 uid="uid://b1d2e7ely6hyw"]
2025-05-12 00:16:13 +02:00
2025-07-11 03:00:43 +02:00
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="2_vl3uw"]
[ext_resource type="Texture2D" uid="uid://cgmu3qlovdr22" path="res://art/masks/field_outline_1.png" id="3_uqkef"]
[ext_resource type="Texture2D" uid="uid://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="4_di17a"]
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="5_4a8nv"]
[ext_resource type="Texture2D" uid="uid://c2pirgay3jfnn" path="res://art/farm/tilable grounds/böden/trockene farming erde.png" id="6_l7j4c"]
[ext_resource type="Texture2D" uid="uid://ctvdxwgmfaj5c" path="res://art/farm/tilable grounds/böden/nasse farming erde.png" id="7_f504p"]
2025-07-11 03:55:36 +02:00
[ext_resource type="PackedScene" uid="uid://gishbn0a8eke" path="res://prefabs/farm/tomato_plant.tscn" id="8_jrdc4"]
2025-05-12 00:16:13 +02:00
2025-07-17 20:44:28 +02:00
[sub_resource type="CircleShape2D" id="CircleShape2D_jrdc4"]
resource_local_to_scene = true
2025-07-11 03:55:36 +02:00
radius = 300.0
2025-05-28 15:37:04 +02:00
2025-07-17 20:44:28 +02:00
[sub_resource type="CircleShape2D" id="CircleShape2D_l0vvv"]
resource_local_to_scene = true
radius = 300.0
2025-05-12 00:16:13 +02:00
2025-07-17 20:44:28 +02:00
[node name="BaseField" type="Node2D"]
2025-05-12 00:16:13 +02:00
2025-07-06 23:48:01 +02:00
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "_growingCollider")]
2025-05-20 00:18:49 +02:00
z_index = -1
scale = Vector2(0.9, 1)
2025-07-11 03:00:43 +02:00
script = ExtResource("2_vl3uw")
2025-07-06 23:48:01 +02:00
_fieldSprite = NodePath("MaskedField/FieldTexture")
_maskSprite = NodePath("MaskedField")
2025-07-11 03:00:43 +02:00
_maskTexture = Array[Texture2D]([ExtResource("3_uqkef"), ExtResource("4_di17a"), ExtResource("5_4a8nv")])
Tilled = ExtResource("6_l7j4c")
Watered = ExtResource("7_f504p")
2025-07-17 20:44:28 +02:00
_growingCollider = NodePath("BasePlant2/GrowingInteractionArea")
2025-05-12 00:16:13 +02:00
2025-07-11 03:55:36 +02:00
[node name="BasePlant2" parent="FieldBehaviour" node_paths=PackedStringArray("_field") groups=["PlantGrowing"] instance=ExtResource("8_jrdc4")]
visible = false
2025-05-18 12:32:56 +02:00
_field = NodePath("..")
2025-07-17 20:44:28 +02:00
_magicWordNeeded = false
[node name="CollisionShape3D" parent="FieldBehaviour/BasePlant2/GrowingInteractionArea/Area2D" index="0"]
shape = SubResource("CircleShape2D_jrdc4")
[node name="CollisionShape3D" parent="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem/PickupInteractionArea/Area2D" index="0"]
shape = SubResource("CircleShape2D_l0vvv")
2025-07-06 23:48:01 +02:00
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
clip_children = 1
scale = Vector2(1.5, 1.5)
2025-07-11 03:00:43 +02:00
texture = ExtResource("4_di17a")
2025-07-06 23:48:01 +02:00
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
2025-07-11 03:00:43 +02:00
texture = ExtResource("6_l7j4c")
2025-07-06 23:48:01 +02:00
2025-07-11 03:55:36 +02:00
[editable path="FieldBehaviour/BasePlant2"]
2025-07-17 20:44:28 +02:00
[editable path="FieldBehaviour/BasePlant2/GrowingInteractionArea"]
2025-07-11 03:55:36 +02:00
[editable path="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem"]
2025-07-17 20:44:28 +02:00
[editable path="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem/PickupInteractionArea"]