You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.3 KiB
70 lines
3.3 KiB
[gd_scene load_steps=11 format=3 uid="uid://b1d2e7ely6hyw"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="1_femni"]
|
|
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="2_femni"]
|
|
[ext_resource type="Texture2D" uid="uid://cgmu3qlovdr22" path="res://art/masks/field_outline_1.png" id="3_cus02"]
|
|
[ext_resource type="Texture2D" uid="uid://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="4_msuq8"]
|
|
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="5_21et0"]
|
|
[ext_resource type="PackedScene" uid="uid://c3hwbwo423nbm" path="res://prefabs/farm/base_plant_2d.tscn" id="5_femni"]
|
|
[ext_resource type="Texture2D" uid="uid://c2pirgay3jfnn" path="res://art/farm/tilable grounds/böden/trockene farming erde.png" id="6_4k6eh"]
|
|
[ext_resource type="Texture2D" uid="uid://ctvdxwgmfaj5c" path="res://art/farm/tilable grounds/böden/nasse farming erde.png" id="7_rrmd3"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_yi42k"]
|
|
resource_local_to_scene = true
|
|
radius = 201.345
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_femni"]
|
|
resource_local_to_scene = true
|
|
radius = 194.926
|
|
|
|
[node name="BaseField" type="Node2D"]
|
|
|
|
[node name="InteractionArea2" parent="." instance=ExtResource("1_femni")]
|
|
visible = false
|
|
z_index = 1
|
|
scale = Vector2(2.225, 2.225)
|
|
|
|
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "_growingCollider")]
|
|
z_index = -1
|
|
scale = Vector2(0.9, 1)
|
|
script = ExtResource("2_femni")
|
|
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
|
_maskSprite = NodePath("MaskedField")
|
|
_maskTexture = Array[Texture2D]([ExtResource("3_cus02"), ExtResource("4_msuq8"), ExtResource("5_21et0")])
|
|
Tilled = ExtResource("6_4k6eh")
|
|
Watered = ExtResource("7_rrmd3")
|
|
_growingCollider = NodePath("BasePlant/InteractionArea")
|
|
|
|
[node name="BasePlant" parent="FieldBehaviour" node_paths=PackedStringArray("_field") instance=ExtResource("5_femni")]
|
|
_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="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
|
clip_children = 1
|
|
scale = Vector2(1.5, 1.5)
|
|
texture = ExtResource("4_msuq8")
|
|
|
|
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
|
texture = ExtResource("6_4k6eh")
|
|
|
|
[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"]
|