|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://b1d2e7ely6hyw"]
|
|
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://b1d2e7ely6hyw"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="1_jrdc4"]
|
|
|
|
|
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="2_vl3uw"]
|
|
|
|
|
@ -7,15 +7,11 @@
|
|
|
|
|
[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"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c3hwbwo423nbm" path="res://prefabs/farm/beet_plant.tscn" id="8_pa15t"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://gishbn0a8eke" path="res://prefabs/farm/tomato_plant.tscn" id="8_jrdc4"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_yi42k"]
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_vl3uw"]
|
|
|
|
|
resource_local_to_scene = true
|
|
|
|
|
radius = 201.345
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_femni"]
|
|
|
|
|
resource_local_to_scene = true
|
|
|
|
|
radius = 194.926
|
|
|
|
|
radius = 300.0
|
|
|
|
|
|
|
|
|
|
[node name="BaseField" type="Node2D"]
|
|
|
|
|
|
|
|
|
|
@ -33,26 +29,13 @@ _maskSprite = NodePath("MaskedField")
|
|
|
|
|
_maskTexture = Array[Texture2D]([ExtResource("3_uqkef"), ExtResource("4_di17a"), ExtResource("5_4a8nv")])
|
|
|
|
|
Tilled = ExtResource("6_l7j4c")
|
|
|
|
|
Watered = ExtResource("7_f504p")
|
|
|
|
|
_growingCollider = NodePath("BasePlant/InteractionArea")
|
|
|
|
|
_growingCollider = NodePath("BasePlant2/InteractionArea")
|
|
|
|
|
|
|
|
|
|
[node name="BasePlant" parent="FieldBehaviour" node_paths=PackedStringArray("_smallPlants", "_field") instance=ExtResource("8_pa15t")]
|
|
|
|
|
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), null, null]
|
|
|
|
|
[node name="BasePlant2" parent="FieldBehaviour" node_paths=PackedStringArray("_field") groups=["PlantGrowing"] instance=ExtResource("8_jrdc4")]
|
|
|
|
|
_field = NodePath("..")
|
|
|
|
|
|
|
|
|
|
[node name="BigPlant" parent="FieldBehaviour/BasePlant" index="2"]
|
|
|
|
|
position = Vector2(6, -161)
|
|
|
|
|
|
|
|
|
|
[node name="InteractionArea" parent="FieldBehaviour/BasePlant" index="3"]
|
|
|
|
|
z_index = 3
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" parent="FieldBehaviour/BasePlant/InteractionArea/Area2D" index="0"]
|
|
|
|
|
shape = SubResource("CircleShape2D_yi42k")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" parent="FieldBehaviour/BasePlant/ReadyPlantInventoryItem/InteractionArea2/Area2D" index="0"]
|
|
|
|
|
shape = SubResource("CircleShape2D_femni")
|
|
|
|
|
|
|
|
|
|
[node name="ReadyPlant" parent="FieldBehaviour/BasePlant/ReadyPlantInventoryItem" index="5"]
|
|
|
|
|
position = Vector2(0, -291.3)
|
|
|
|
|
[node name="CollisionShape3D" parent="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem/InteractionArea2/Area2D" index="0"]
|
|
|
|
|
shape = SubResource("CircleShape2D_vl3uw")
|
|
|
|
|
|
|
|
|
|
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
|
|
|
|
clip_children = 1
|
|
|
|
|
@ -62,9 +45,6 @@ texture = ExtResource("4_di17a")
|
|
|
|
|
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
|
|
|
|
texture = ExtResource("6_l7j4c")
|
|
|
|
|
|
|
|
|
|
[connection signal="Interacted" from="InteractionArea2" to="FieldBehaviour/BasePlant" method="Grow"]
|
|
|
|
|
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant/InteractionArea"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant/ReadyPlantInventoryItem"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant/ReadyPlantInventoryItem/InteractionArea2"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant2"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem"]
|
|
|
|
|
[editable path="FieldBehaviour/BasePlant2/ReadyPlantInventoryItem/InteractionArea2"]
|
|
|
|
|
|