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.
41 lines
2.2 KiB
41 lines
2.2 KiB
[gd_scene load_steps=8 format=3 uid="uid://b1d2e7ely6hyw"]
|
|
|
|
[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://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="3_c014y"]
|
|
[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"]
|
|
|
|
[node name="BaseField" type="Node2D"]
|
|
|
|
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "PlantingInteraction", "PlantingPlaceholder")]
|
|
z_index = -1
|
|
scale = Vector2(0.9, 1)
|
|
script = ExtResource("1_qa01x")
|
|
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
|
_maskSprite = NodePath("MaskedField")
|
|
_maskTexture = Array[Texture2D]([ExtResource("2_w8caw"), ExtResource("3_c014y"), ExtResource("4_teirr")])
|
|
Tilled = ExtResource("5_wx561")
|
|
Watered = ExtResource("6_7m4xq")
|
|
PlantingInteraction = NodePath("../InteractionArea")
|
|
PlantingPlaceholder = NodePath("PlantPlaceholder")
|
|
|
|
[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="." node_paths=PackedStringArray("_spriteToOutline") instance=ExtResource("7_2eegd")]
|
|
position = Vector2(-16, -54)
|
|
_active = false
|
|
_spriteToOutline = NodePath("../FieldBehaviour/MaskedField/FieldTexture")
|
|
|
|
[connection signal="Interacted" from="InteractionArea" to="FieldBehaviour" method="Farm"]
|