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.
139 lines
7.5 KiB
139 lines
7.5 KiB
[gd_scene load_steps=25 format=3 uid="uid://b1d2e7ely6hyw"]
|
|
|
|
[ext_resource type="Script" uid="uid://j2mhvb45egej" path="res://scripts/CSharp/Low Code/Variables/VariableNode.cs" id="1_4mg73"]
|
|
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="1_qa01x"]
|
|
[ext_resource type="Texture2D" uid="uid://cgmu3qlovdr22" path="res://art/masks/field_outline_1.png" id="2_w8caw"]
|
|
[ext_resource type="Texture2D" uid="uid://50qn027e5lvh" path="res://art/masks/field_outline_2_outline.png" id="3_2eegd"]
|
|
[ext_resource type="Texture2D" uid="uid://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="3_c014y"]
|
|
[ext_resource type="Texture2D" uid="uid://wjtvno2jj4nl" path="res://art/masks/field_outline_3_outline.png" id="4_svbd7"]
|
|
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="4_teirr"]
|
|
[ext_resource type="Texture2D" uid="uid://c2pirgay3jfnn" path="res://art/farm/tilable grounds/böden/trockene farming erde.png" id="5_wx561"]
|
|
[ext_resource type="Texture2D" uid="uid://ctvdxwgmfaj5c" path="res://art/farm/tilable grounds/böden/nasse farming erde.png" id="6_7m4xq"]
|
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="7_2eegd"]
|
|
[ext_resource type="Resource" uid="uid://d284vxftxhym0" path="res://resources/itemRepository.tres" id="7_w8caw"]
|
|
[ext_resource type="Script" uid="uid://b5dotkx17gvxg" path="res://scripts/CSharp/Low Code/Events/EventRaiser.cs" id="9_teirr"]
|
|
[ext_resource type="Texture2D" uid="uid://bovypw2hsn2nq" path="res://art/masks/field_outline_1_outline.png" id="9_wx561"]
|
|
[ext_resource type="Resource" uid="uid://b4hawvsc7cmkn" path="res://resources/low code/farming/event_newPlantCreated.tres" id="10_wx561"]
|
|
[ext_resource type="Resource" uid="uid://tt3d166mntmi" path="res://resources/low code/farming/var_sceneNameProvider.tres" id="11_cjahb"]
|
|
[ext_resource type="Resource" uid="uid://cmqapbvv0hev2" path="res://resources/low code/farming/event_watering.tres" id="14_57jmp"]
|
|
[ext_resource type="Script" uid="uid://3t0af586fimq" path="res://scripts/CSharp/Common/Inventory/InventoryListener.cs" id="14_w08sx"]
|
|
[ext_resource type="Resource" uid="uid://d1uuxp1lp4aro" path="res://resources/items/tomato_seed.tres" id="15_i4qwg"]
|
|
[ext_resource type="Resource" uid="uid://duq7tshxv6uhp" path="res://resources/items/beet_seed.tres" id="16_i4qwg"]
|
|
[ext_resource type="Resource" uid="uid://cndd64batns31" path="res://resources/items/wateringcan.tres" id="17_1mi0u"]
|
|
[ext_resource type="Texture2D" uid="uid://l5ym7gi82l1b" path="res://art/ui/UI/Watercan-ui/Tropfen-ui-6.png" id="21_4mg73"]
|
|
[ext_resource type="Resource" uid="uid://dlcmqfjvgphqu" path="res://resources/items/rake.tres" id="21_68xcd"]
|
|
[ext_resource type="Script" uid="uid://dlbjjgbs0n4b0" path="res://scripts/CSharp/Common/Farming/FieldActivator.cs" id="22_57jmp"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_57jmp"]
|
|
resource_local_to_scene = true
|
|
radius = 325.2599
|
|
|
|
[node name="BaseField" type="Node2D"]
|
|
script = ExtResource("1_4mg73")
|
|
Payload = 0
|
|
|
|
[node name="OutlineSprite" type="Sprite2D" parent="."]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
z_index = 1
|
|
scale = Vector2(1.3499999, 1.5)
|
|
texture = ExtResource("9_wx561")
|
|
|
|
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldIndex", "_fieldSprite", "_maskSprite", "_outlineSprite", "PlantingInteraction", "FieldInteractionArea", "PlantingPlaceholder", "_wateringParticles")]
|
|
visible = false
|
|
z_index = -1
|
|
scale = Vector2(0.9, 1)
|
|
script = ExtResource("1_qa01x")
|
|
SaveId = "field"
|
|
_fieldIndex = NodePath("..")
|
|
_sceneKeyProvider = ExtResource("11_cjahb")
|
|
FieldState = 0
|
|
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
|
_maskSprite = NodePath("MaskedField")
|
|
_outlineSprite = NodePath("../OutlineSprite")
|
|
_maskOutlineTextures = Array[Texture2D]([ExtResource("9_wx561"), ExtResource("3_2eegd"), ExtResource("4_svbd7")])
|
|
_maskTexture = Array[Texture2D]([ExtResource("2_w8caw"), ExtResource("3_c014y"), ExtResource("4_teirr")])
|
|
Tilled = ExtResource("5_wx561")
|
|
Watered = ExtResource("6_7m4xq")
|
|
PlantingInteraction = NodePath("InteractionArea")
|
|
FieldInteractionArea = NodePath("InteractionArea")
|
|
PlantingPlaceholder = NodePath("PlantPlaceholder")
|
|
ItemRepository = ExtResource("7_w8caw")
|
|
_wateringParticles = NodePath("../pouring water vfx")
|
|
_wateringEvent = ExtResource("14_57jmp")
|
|
|
|
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
|
clip_children = 1
|
|
scale = Vector2(1.5, 1.5)
|
|
texture = ExtResource("3_c014y")
|
|
|
|
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
|
texture = ExtResource("5_wx561")
|
|
|
|
[node name="PlantPlaceholder" type="Node2D" parent="FieldBehaviour"]
|
|
|
|
[node name="InteractionArea" parent="FieldBehaviour" node_paths=PackedStringArray("_spritesToOutline") instance=ExtResource("7_2eegd")]
|
|
position = Vector2(-28.88889, -57)
|
|
scale = Vector2(1.1111112, 1)
|
|
_active = false
|
|
_spritesToOutline = [NodePath("../../OutlineSprite")]
|
|
_showLabel = false
|
|
|
|
[node name="PlantCreationEventRaiser" type="Node" parent="."]
|
|
script = ExtResource("9_teirr")
|
|
_eventResources = Array[Object]([ExtResource("10_wx561")])
|
|
|
|
[node name="InventoryListener Seeds" type="Node" parent="."]
|
|
script = ExtResource("14_w08sx")
|
|
_itemResourcesToListenFor = Array[Object]([ExtResource("15_i4qwg"), ExtResource("16_i4qwg")])
|
|
|
|
[node name="InventoryListener watering can" type="Node" parent="."]
|
|
script = ExtResource("14_w08sx")
|
|
_itemResourcesToListenFor = Array[Object]([ExtResource("17_1mi0u")])
|
|
|
|
[node name="InventoryListener rake" type="Node" parent="."]
|
|
script = ExtResource("14_w08sx")
|
|
_itemResourcesToListenFor = Array[Object]([ExtResource("21_68xcd")])
|
|
|
|
[node name="pouring water vfx" type="CPUParticles2D" parent="."]
|
|
position = Vector2(0, -300)
|
|
emitting = false
|
|
amount = 25
|
|
texture = ExtResource("21_4mg73")
|
|
one_shot = true
|
|
randomness = 1.0
|
|
local_coords = true
|
|
draw_order = 1
|
|
emission_shape = 2
|
|
emission_sphere_radius = 128.0
|
|
gravity = Vector2(0, 500)
|
|
linear_accel_min = 44.07
|
|
linear_accel_max = 78.81
|
|
scale_amount_min = 0.4
|
|
scale_amount_max = 0.8
|
|
color = Color(0.400601, 0.62444, 0.791217, 1)
|
|
hue_variation_max = 0.4
|
|
|
|
[node name="FieldActivator" type="Node2D" parent="." node_paths=PackedStringArray("_field", "_activatorArea")]
|
|
script = ExtResource("22_57jmp")
|
|
_field = NodePath("../FieldBehaviour")
|
|
_activatorArea = NodePath("InteractionArea")
|
|
|
|
[node name="InteractionArea" parent="FieldActivator" node_paths=PackedStringArray("_spritesToOutline") instance=ExtResource("7_2eegd")]
|
|
_spritesToOutline = [NodePath("../../OutlineSprite")]
|
|
|
|
[node name="CollisionShape3D" parent="FieldActivator/InteractionArea/Area2D" index="0"]
|
|
shape = SubResource("CircleShape2D_57jmp")
|
|
|
|
[node name="Marker2D" type="Marker2D" parent="."]
|
|
gizmo_extents = 157.0
|
|
|
|
[connection signal="Planted" from="FieldBehaviour" to="PlantCreationEventRaiser" method="RaiseEvents"]
|
|
[connection signal="Interacted" from="FieldBehaviour/InteractionArea" to="FieldBehaviour" method="Farm"]
|
|
[connection signal="ItemInstanceActivated" from="InventoryListener Seeds" to="FieldBehaviour" method="ActivatedSeedInInventory"]
|
|
[connection signal="ItemInstanceActivated" from="InventoryListener watering can" to="FieldBehaviour" method="ActivateWateringCanInInventory"]
|
|
[connection signal="ItemInstanceActivated" from="InventoryListener rake" to="FieldActivator" method="RakeActivated"]
|
|
[connection signal="Interacted" from="FieldActivator/InteractionArea" to="FieldActivator" method="ActivateField"]
|
|
[connection signal="Interacted" from="FieldActivator/InteractionArea" to="FieldActivator/InteractionArea" method="ToggleActive"]
|
|
|
|
[editable path="FieldActivator/InteractionArea"]
|