WIP Beetroot
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b5ade1s2ijunu"
|
||||||
|
path="res://.godot/imported/beetroot_icon.png-aef760d681bd7ef4c12802c6da8d93f5.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/farm/farming/farmobjekte/beetroot/beetroot_icon.png"
|
||||||
|
dest_files=["res://.godot/imported/beetroot_icon.png-aef760d681bd7ef4c12802c6da8d93f5.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 123 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://xtci0n8tquc0"
|
||||||
|
path="res://.godot/imported/beetroot_00.png-0c2234fc9109ef4b2bb1c7f568ee2fc7.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://art/farm/farming/farmobjekte/beetroot_00.png"
|
||||||
|
dest_files=["res://.godot/imported/beetroot_00.png-0c2234fc9109ef4b2bb1c7f568ee2fc7.ctex"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/high_quality=false
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_compression=1
|
||||||
|
compress/normal_map=0
|
||||||
|
compress/channel_pack=0
|
||||||
|
mipmaps/generate=false
|
||||||
|
mipmaps/limit=-1
|
||||||
|
roughness/mode=0
|
||||||
|
roughness/src_normal=""
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/normal_map_invert_y=false
|
||||||
|
process/hdr_as_srgb=false
|
||||||
|
process/hdr_clamp_exposure=false
|
||||||
|
process/size_limit=0
|
||||||
|
detect_3d/compress_to=1
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 6.5 KiB |
@@ -8,8 +8,8 @@ Vesna2: What?
|
|||||||
Domovoi: Just say it!
|
Domovoi: Just say it!
|
||||||
Vesna2: Rosty…rosty?
|
Vesna2: Rosty…rosty?
|
||||||
# Hier wächst die rote Beete magisch. Mit einem Signal/Ereignis?
|
# Hier wächst die rote Beete magisch. Mit einem Signal/Ereignis?
|
||||||
[signal]
|
[signal arg="MagicWord"]
|
||||||
Vesna2: It worked! How did it work?
|
Vesna2: It worked! How did it work?
|
||||||
Vesna2: Thank y…and he’s gone.
|
Vesna2: Thank y…and he’s gone.
|
||||||
What a truly quirky individual.
|
What a truly quirky individual.
|
||||||
[end_timeline]
|
[end_timeline]
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
join vesna center
|
||||||
|
[text_input text="What shold I say?" var="MAGICWORD" placeholder="Expelliarmus!" allow_empty="true"]
|
||||||
|
if {MAGICWORD} == "Rosty Rosty":
|
||||||
|
vesna: That did the trick!
|
||||||
|
[signal arg="MagicWord"]
|
||||||
|
else:
|
||||||
|
vesna: Didn't seem to work...
|
||||||
|
[end_timeline]
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://dtcypgqal1ids
|
||||||
@@ -471,7 +471,7 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://3pj2q7wtuion" path="res://art/farm/farming/farmobjekte/hoe.png" id="815_1ia2b"]
|
[ext_resource type="Texture2D" uid="uid://3pj2q7wtuion" path="res://art/farm/farming/farmobjekte/hoe.png" id="815_1ia2b"]
|
||||||
[ext_resource type="Texture2D" uid="uid://x8hr8287ff2n" path="res://art/farm/farming/farmobjekte/tools atlas.png" id="816_1a3c1"]
|
[ext_resource type="Texture2D" uid="uid://x8hr8287ff2n" path="res://art/farm/farming/farmobjekte/tools atlas.png" id="816_1a3c1"]
|
||||||
[ext_resource type="Script" uid="uid://bcskt5ckh3rqa" path="res://scripts/CSharp/Common/Farming/FarmingControls2D.cs" id="817_6nrw3"]
|
[ext_resource type="Script" uid="uid://bcskt5ckh3rqa" path="res://scripts/CSharp/Common/Farming/FarmingControls2D.cs" id="817_6nrw3"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b1d2e7ely6hyw" path="res://prefabs/farm/base_field_2d.tscn" id="818_16w6h"]
|
[ext_resource type="PackedScene" uid="uid://b1d2e7ely6hyw" path="res://prefabs/farm/tomato_field.tscn" id="818_16w6h"]
|
||||||
[ext_resource type="Script" uid="uid://cvkw4qd2hxksi" path="res://scripts/GdScript/dialogic_toggle.gd" id="819_4na52"]
|
[ext_resource type="Script" uid="uid://cvkw4qd2hxksi" path="res://scripts/GdScript/dialogic_toggle.gd" id="819_4na52"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ssqtd"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_ssqtd"]
|
||||||
|
|||||||
@@ -0,0 +1,87 @@
|
|||||||
|
[gd_scene load_steps=13 format=3 uid="uid://d4m5iy5mwqpq3"]
|
||||||
|
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="1_tp1yj"]
|
||||||
|
[ext_resource type="Script" uid="uid://bdffon388rkty" path="res://scripts/CSharp/Common/Farming/FieldBehaviour2D.cs" id="2_c6u1a"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://cgmu3qlovdr22" path="res://art/masks/field_outline_1.png" id="3_b5av1"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://eg5ej0mtuac" path="res://art/masks/field_outline_2.png" id="4_yav45"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="5_pdgar"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://c2pirgay3jfnn" path="res://art/farm/tilable grounds/böden/trockene farming erde.png" id="6_a35l4"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://ctvdxwgmfaj5c" path="res://art/farm/tilable grounds/böden/nasse farming erde.png" id="7_us3kg"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://c3hwbwo423nbm" path="res://prefabs/farm/beet_plant.tscn" id="8_tgwxi"]
|
||||||
|
[ext_resource type="Script" uid="uid://d2486x6upmwqq" path="res://scripts/GdScript/dialogic_starter.gd" id="9_b5av1"]
|
||||||
|
[ext_resource type="Script" uid="uid://dnipeibppjirs" path="res://scripts/CSharp/Common/NPC/DialogicOverlayStarter.cs" id="10_yav45"]
|
||||||
|
[ext_resource type="Script" uid="uid://drle5aies8ye4" path="res://scripts/GdScript/dialogic_event_forward.gd" id="11_yav45"]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_tp1yj"]
|
||||||
|
resource_local_to_scene = true
|
||||||
|
radius = 300.0
|
||||||
|
|
||||||
|
[node name="BaseField" type="Node2D"]
|
||||||
|
|
||||||
|
[node name="InteractionArea2" parent="." instance=ExtResource("1_tp1yj")]
|
||||||
|
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_c6u1a")
|
||||||
|
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
||||||
|
_maskSprite = NodePath("MaskedField")
|
||||||
|
_maskTexture = Array[Texture2D]([ExtResource("3_b5av1"), ExtResource("4_yav45"), ExtResource("5_pdgar")])
|
||||||
|
Tilled = ExtResource("6_a35l4")
|
||||||
|
Watered = ExtResource("7_us3kg")
|
||||||
|
_growingCollider = NodePath("../InteractionArea2")
|
||||||
|
|
||||||
|
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
||||||
|
clip_children = 1
|
||||||
|
scale = Vector2(1.5, 1.5)
|
||||||
|
texture = ExtResource("4_yav45")
|
||||||
|
|
||||||
|
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
||||||
|
texture = ExtResource("6_a35l4")
|
||||||
|
|
||||||
|
[node name="BeetRoot" parent="FieldBehaviour" node_paths=PackedStringArray("_smallPlants", "_field") instance=ExtResource("8_tgwxi")]
|
||||||
|
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), null, null]
|
||||||
|
_state = 2
|
||||||
|
_field = NodePath("..")
|
||||||
|
|
||||||
|
[node name="01" parent="FieldBehaviour/BeetRoot/BigPlant" index="0"]
|
||||||
|
visible = true
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/InteractionArea2/Area2D" index="0"]
|
||||||
|
shape = SubResource("CircleShape2D_tp1yj")
|
||||||
|
|
||||||
|
[node name="01" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/ReadyPlant" index="0"]
|
||||||
|
scale = Vector2(3, 3)
|
||||||
|
|
||||||
|
[node name="02" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/ReadyPlant" index="1"]
|
||||||
|
scale = Vector2(3, 3)
|
||||||
|
|
||||||
|
[node name="03" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/ReadyPlant" index="2"]
|
||||||
|
scale = Vector2(3, 3)
|
||||||
|
|
||||||
|
[node name="04" parent="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/ReadyPlant" index="3"]
|
||||||
|
scale = Vector2(3, 3)
|
||||||
|
|
||||||
|
[node name="dialogic-starter" type="Node2D" parent="."]
|
||||||
|
script = ExtResource("9_b5av1")
|
||||||
|
|
||||||
|
[node name="DialogicOverlay" type="Node2D" parent="dialogic-starter"]
|
||||||
|
script = ExtResource("10_yav45")
|
||||||
|
_timelinesToPlay = PackedStringArray("talk_to_plant")
|
||||||
|
_startOnReady = false
|
||||||
|
|
||||||
|
[node name="DialogicEventListener" type="Node" parent="dialogic-starter"]
|
||||||
|
script = ExtResource("11_yav45")
|
||||||
|
eventName = "MagicWord"
|
||||||
|
|
||||||
|
[connection signal="Interacted" from="InteractionArea2" to="dialogic-starter/DialogicOverlay" method="ToggleDialogue"]
|
||||||
|
[connection signal="Interacted" from="InteractionArea2" to="dialogic-starter/DialogicEventListener" method="_register"]
|
||||||
|
[connection signal="Dialogue" from="dialogic-starter/DialogicOverlay" to="dialogic-starter" method="open"]
|
||||||
|
[connection signal="dialogicEventTriggered" from="dialogic-starter/DialogicEventListener" to="FieldBehaviour/BeetRoot" method="SayMagicWord"]
|
||||||
|
|
||||||
|
[editable path="FieldBehaviour/BeetRoot"]
|
||||||
|
[editable path="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem"]
|
||||||
|
[editable path="FieldBehaviour/BeetRoot/ReadyPlantInventoryItem/InteractionArea2"]
|
||||||
@@ -0,0 +1,205 @@
|
|||||||
|
[gd_scene load_steps=10 format=3 uid="uid://c3hwbwo423nbm"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://cms357f23fmfy" path="res://scripts/CSharp/Common/Farming/PlantBehaviour2D.cs" id="1_0kfos"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://xtci0n8tquc0" path="res://art/farm/farming/farmobjekte/beetroot_00.png" id="2_rvwu0"]
|
||||||
|
[ext_resource type="Shader" uid="uid://braevmqauoek7" path="res://shader/swaying_plant.gdshader" id="3_up8td"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="4_cfgyx"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://dpbbroif2tnil" path="res://prefabs/interactions/generic_item_on_ground_2d.tscn" id="5_25lcb"]
|
||||||
|
[ext_resource type="Resource" uid="uid://blr8tine5m0ma" path="res://resources/items/tomato.tres" id="6_aml5p"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bleimj6jr1jka" path="res://art/general/rectangle.png" id="7_rvwu0"]
|
||||||
|
|
||||||
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u4cty"]
|
||||||
|
shader = ExtResource("3_up8td")
|
||||||
|
shader_parameter/speed = 3.0
|
||||||
|
shader_parameter/minStrength = 0.05
|
||||||
|
shader_parameter/maxStrength = 0.36
|
||||||
|
shader_parameter/strengthScale = 100.0
|
||||||
|
shader_parameter/interval = 3.5
|
||||||
|
shader_parameter/detail = 1.0
|
||||||
|
shader_parameter/distortion = 0.0
|
||||||
|
shader_parameter/heightOffset = 0.635
|
||||||
|
shader_parameter/offset = 0.0
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_2tt5u"]
|
||||||
|
resource_local_to_scene = true
|
||||||
|
radius = 300.0
|
||||||
|
|
||||||
|
[node name="BeetRoot" type="Node2D" node_paths=PackedStringArray("_seeds", "_smallPlants", "_bigPlants", "_readyPlants", "_harvestablePlant", "_magicEffect")]
|
||||||
|
z_index = 1
|
||||||
|
y_sort_enabled = true
|
||||||
|
script = ExtResource("1_0kfos")
|
||||||
|
_seeds = [NodePath("Seeds/BeetSeet"), NodePath("Seeds/BeetSeet2"), NodePath("Seeds/BeetSeet3")]
|
||||||
|
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), null, null]
|
||||||
|
_bigPlants = [NodePath("BigPlant/01"), NodePath("BigPlant/02"), NodePath("BigPlant/03"), NodePath("BigPlant/04")]
|
||||||
|
_readyPlants = [NodePath("ReadyPlantInventoryItem/ReadyPlant/01"), NodePath("ReadyPlantInventoryItem/ReadyPlant/02"), NodePath("ReadyPlantInventoryItem/ReadyPlant/03"), NodePath("ReadyPlantInventoryItem/ReadyPlant/04")]
|
||||||
|
_harvestablePlant = NodePath("ReadyPlantInventoryItem")
|
||||||
|
_magicEffect = NodePath("magic vfx")
|
||||||
|
|
||||||
|
[node name="Seeds" type="Node2D" parent="."]
|
||||||
|
position = Vector2(0, 0.5)
|
||||||
|
|
||||||
|
[node name="BeetSeet" type="Sprite2D" parent="Seeds"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
flip_v = true
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(166, 289, 28, 38)
|
||||||
|
|
||||||
|
[node name="BeetSeet2" type="Sprite2D" parent="Seeds"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
flip_v = true
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(166, 289, 28, 38)
|
||||||
|
|
||||||
|
[node name="BeetSeet3" type="Sprite2D" parent="Seeds"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
flip_v = true
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(243, 207, 35, 69)
|
||||||
|
|
||||||
|
[node name="SmallPlant" type="Node2D" parent="."]
|
||||||
|
position = Vector2(0, 0.5)
|
||||||
|
|
||||||
|
[node name="01" type="Sprite2D" parent="SmallPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(37, 178, 72, 116)
|
||||||
|
|
||||||
|
[node name="02" type="Sprite2D" parent="SmallPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(313, 179, 73, 115)
|
||||||
|
|
||||||
|
[node name="BigPlant" type="Node2D" parent="."]
|
||||||
|
position = Vector2(0, 2)
|
||||||
|
|
||||||
|
[node name="01" type="Sprite2D" parent="BigPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(6, 5, 136, 151)
|
||||||
|
|
||||||
|
[node name="02" type="Sprite2D" parent="BigPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(148, 58, 111, 140)
|
||||||
|
|
||||||
|
[node name="03" type="Sprite2D" parent="BigPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(264, 4, 131, 152)
|
||||||
|
|
||||||
|
[node name="04" type="Sprite2D" parent="BigPlant"]
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
scale = Vector2(2, 2)
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(18, 311, 129, 142)
|
||||||
|
|
||||||
|
[node name="InteractionArea" parent="." instance=ExtResource("4_cfgyx")]
|
||||||
|
position = Vector2(0, 2.3)
|
||||||
|
|
||||||
|
[node name="ReadyPlantInventoryItem" parent="." instance=ExtResource("5_25lcb")]
|
||||||
|
position = Vector2(0, 2.3)
|
||||||
|
IsActive = false
|
||||||
|
|
||||||
|
[node name="SpawnWithItem" parent="ReadyPlantInventoryItem" index="0"]
|
||||||
|
_blueprint = ExtResource("6_aml5p")
|
||||||
|
|
||||||
|
[node name="ItemLabel" parent="ReadyPlantInventoryItem" index="1"]
|
||||||
|
visible = false
|
||||||
|
|
||||||
|
[node name="PickupErrorLabel" parent="ReadyPlantInventoryItem" index="2"]
|
||||||
|
visible = false
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" parent="ReadyPlantInventoryItem/InteractionArea2/Area2D" index="0"]
|
||||||
|
shape = SubResource("CircleShape2D_2tt5u")
|
||||||
|
|
||||||
|
[node name="Icon" parent="ReadyPlantInventoryItem" index="4"]
|
||||||
|
visible = false
|
||||||
|
|
||||||
|
[node name="ReadyPlant" type="Node2D" parent="ReadyPlantInventoryItem"]
|
||||||
|
|
||||||
|
[node name="01" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(18, 311, 129, 142)
|
||||||
|
|
||||||
|
[node name="02" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(6, 5, 136, 151)
|
||||||
|
|
||||||
|
[node name="03" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(264, 4, 131, 152)
|
||||||
|
|
||||||
|
[node name="04" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
|
||||||
|
visible = false
|
||||||
|
y_sort_enabled = true
|
||||||
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
|
texture = ExtResource("2_rvwu0")
|
||||||
|
region_enabled = true
|
||||||
|
region_rect = Rect2(148, 58, 111, 140)
|
||||||
|
|
||||||
|
[node name="magic vfx" type="CPUParticles2D" parent="."]
|
||||||
|
position = Vector2(-133, -347)
|
||||||
|
rotation = -0.333807
|
||||||
|
emitting = false
|
||||||
|
amount = 20
|
||||||
|
texture = ExtResource("7_rvwu0")
|
||||||
|
lifetime = 0.5
|
||||||
|
randomness = 1.0
|
||||||
|
local_coords = true
|
||||||
|
draw_order = 1
|
||||||
|
emission_shape = 2
|
||||||
|
emission_sphere_radius = 128.0
|
||||||
|
linear_accel_min = 44.07
|
||||||
|
linear_accel_max = 78.81
|
||||||
|
scale_amount_min = 0.01
|
||||||
|
scale_amount_max = 0.1
|
||||||
|
color = Color(0.400601, 0.62444, 0.791217, 1)
|
||||||
|
hue_variation_max = 0.4
|
||||||
|
|
||||||
|
[connection signal="Interacted" from="InteractionArea" to="." method="Grow"]
|
||||||
|
|
||||||
|
[editable path="ReadyPlantInventoryItem"]
|
||||||
|
[editable path="ReadyPlantInventoryItem/InteractionArea2"]
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
[gd_scene load_steps=11 format=3 uid="uid://b1d2e7ely6hyw"]
|
[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="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_femni"]
|
[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_cus02"]
|
[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_msuq8"]
|
[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_21et0"]
|
[ext_resource type="Texture2D" uid="uid://djpigvoyadvjs" path="res://art/masks/field_outline_3.png" id="5_4a8nv"]
|
||||||
[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_l7j4c"]
|
||||||
[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_f504p"]
|
||||||
[ext_resource type="Texture2D" uid="uid://ctvdxwgmfaj5c" path="res://art/farm/tilable grounds/böden/nasse farming erde.png" id="7_rrmd3"]
|
[ext_resource type="PackedScene" uid="uid://c3hwbwo423nbm" path="res://prefabs/farm/beet_plant.tscn" id="8_pa15t"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_yi42k"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_yi42k"]
|
||||||
resource_local_to_scene = true
|
resource_local_to_scene = true
|
||||||
@@ -19,7 +19,7 @@ radius = 194.926
|
|||||||
|
|
||||||
[node name="BaseField" type="Node2D"]
|
[node name="BaseField" type="Node2D"]
|
||||||
|
|
||||||
[node name="InteractionArea2" parent="." instance=ExtResource("1_femni")]
|
[node name="InteractionArea2" parent="." instance=ExtResource("1_jrdc4")]
|
||||||
visible = false
|
visible = false
|
||||||
z_index = 1
|
z_index = 1
|
||||||
scale = Vector2(2.225, 2.225)
|
scale = Vector2(2.225, 2.225)
|
||||||
@@ -27,15 +27,16 @@ scale = Vector2(2.225, 2.225)
|
|||||||
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "_growingCollider")]
|
[node name="FieldBehaviour" type="Sprite2D" parent="." node_paths=PackedStringArray("_fieldSprite", "_maskSprite", "_growingCollider")]
|
||||||
z_index = -1
|
z_index = -1
|
||||||
scale = Vector2(0.9, 1)
|
scale = Vector2(0.9, 1)
|
||||||
script = ExtResource("2_femni")
|
script = ExtResource("2_vl3uw")
|
||||||
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
_fieldSprite = NodePath("MaskedField/FieldTexture")
|
||||||
_maskSprite = NodePath("MaskedField")
|
_maskSprite = NodePath("MaskedField")
|
||||||
_maskTexture = Array[Texture2D]([ExtResource("3_cus02"), ExtResource("4_msuq8"), ExtResource("5_21et0")])
|
_maskTexture = Array[Texture2D]([ExtResource("3_uqkef"), ExtResource("4_di17a"), ExtResource("5_4a8nv")])
|
||||||
Tilled = ExtResource("6_4k6eh")
|
Tilled = ExtResource("6_l7j4c")
|
||||||
Watered = ExtResource("7_rrmd3")
|
Watered = ExtResource("7_f504p")
|
||||||
_growingCollider = NodePath("BasePlant/InteractionArea")
|
_growingCollider = NodePath("BasePlant/InteractionArea")
|
||||||
|
|
||||||
[node name="BasePlant" parent="FieldBehaviour" node_paths=PackedStringArray("_field") instance=ExtResource("5_femni")]
|
[node name="BasePlant" parent="FieldBehaviour" node_paths=PackedStringArray("_smallPlants", "_field") instance=ExtResource("8_pa15t")]
|
||||||
|
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), null, null]
|
||||||
_field = NodePath("..")
|
_field = NodePath("..")
|
||||||
|
|
||||||
[node name="BigPlant" parent="FieldBehaviour/BasePlant" index="2"]
|
[node name="BigPlant" parent="FieldBehaviour/BasePlant" index="2"]
|
||||||
@@ -56,10 +57,10 @@ position = Vector2(0, -291.3)
|
|||||||
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
[node name="MaskedField" type="Sprite2D" parent="FieldBehaviour"]
|
||||||
clip_children = 1
|
clip_children = 1
|
||||||
scale = Vector2(1.5, 1.5)
|
scale = Vector2(1.5, 1.5)
|
||||||
texture = ExtResource("4_msuq8")
|
texture = ExtResource("4_di17a")
|
||||||
|
|
||||||
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
[node name="FieldTexture" type="Sprite2D" parent="FieldBehaviour/MaskedField"]
|
||||||
texture = ExtResource("6_4k6eh")
|
texture = ExtResource("6_l7j4c")
|
||||||
|
|
||||||
[connection signal="Interacted" from="InteractionArea2" to="FieldBehaviour/BasePlant" method="Grow"]
|
[connection signal="Interacted" from="InteractionArea2" to="FieldBehaviour/BasePlant" method="Grow"]
|
||||||
|
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
[gd_scene load_steps=11 format=3 uid="uid://c3hwbwo423nbm"]
|
[gd_scene load_steps=11 format=3 uid="uid://gishbn0a8eke"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://cms357f23fmfy" path="res://scripts/CSharp/Common/Farming/PlantBehaviour2D.cs" id="1_tikj4"]
|
[ext_resource type="Script" uid="uid://cms357f23fmfy" path="res://scripts/CSharp/Common/Farming/PlantBehaviour2D.cs" id="1_66p1c"]
|
||||||
[ext_resource type="Shader" uid="uid://braevmqauoek7" path="res://shader/swaying_plant.gdshader" id="2_goh03"]
|
[ext_resource type="Texture2D" uid="uid://dtr4uga5uspg" path="res://art/farm/farming/farmobjekte/tomaten/tomaten baby.png" id="2_vjw4j"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dtr4uga5uspg" path="res://art/farm/farming/farmobjekte/tomaten/tomaten baby.png" id="2_rmjrk"]
|
[ext_resource type="Shader" uid="uid://braevmqauoek7" path="res://shader/swaying_plant.gdshader" id="3_7hdur"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b2gu6ur2xc7s4" path="res://art/farm/farming/farmobjekte/tomaten/tomaten blume.png" id="3_goh03"]
|
[ext_resource type="Texture2D" uid="uid://b2gu6ur2xc7s4" path="res://art/farm/farming/farmobjekte/tomaten/tomaten blume.png" id="4_hmj2d"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cnwd3mb3jnuxm" path="res://art/farm/farming/farmobjekte/tomaten/teen adulte tomaten.png" id="4_u4cty"]
|
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="5_3j24b"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="5_tikj4"]
|
[ext_resource type="PackedScene" uid="uid://dpbbroif2tnil" path="res://prefabs/interactions/generic_item_on_ground_2d.tscn" id="6_gdrin"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dpbbroif2tnil" path="res://prefabs/interactions/generic_item_on_ground_2d.tscn" id="6_u4cty"]
|
[ext_resource type="Resource" uid="uid://blr8tine5m0ma" path="res://resources/items/tomato.tres" id="7_di4m0"]
|
||||||
[ext_resource type="Resource" uid="uid://blr8tine5m0ma" path="res://resources/items/tomato.tres" id="7_yntkb"]
|
[ext_resource type="Texture2D" uid="uid://cnwd3mb3jnuxm" path="res://art/farm/farming/farmobjekte/tomaten/teen adulte tomaten.png" id="8_evgr8"]
|
||||||
|
|
||||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u4cty"]
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u4cty"]
|
||||||
shader = ExtResource("2_goh03")
|
shader = ExtResource("3_7hdur")
|
||||||
shader_parameter/speed = 3.0
|
shader_parameter/speed = 3.0
|
||||||
shader_parameter/minStrength = 0.05
|
shader_parameter/minStrength = 0.05
|
||||||
shader_parameter/maxStrength = 0.36
|
shader_parameter/maxStrength = 0.36
|
||||||
@@ -28,7 +28,7 @@ radius = 300.0
|
|||||||
[node name="BasePlant" type="Node2D" node_paths=PackedStringArray("_seeds", "_smallPlants", "_bigPlants", "_readyPlants", "_harvestablePlant")]
|
[node name="BasePlant" type="Node2D" node_paths=PackedStringArray("_seeds", "_smallPlants", "_bigPlants", "_readyPlants", "_harvestablePlant")]
|
||||||
z_index = 1
|
z_index = 1
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
script = ExtResource("1_tikj4")
|
script = ExtResource("1_66p1c")
|
||||||
_seeds = [NodePath("Seeds/TomatoSeed"), NodePath("Seeds/TomatoSeed2"), NodePath("Seeds/TomatoSeed3")]
|
_seeds = [NodePath("Seeds/TomatoSeed"), NodePath("Seeds/TomatoSeed2"), NodePath("Seeds/TomatoSeed3")]
|
||||||
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), NodePath("SmallPlant/03"), NodePath("SmallPlant/04")]
|
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), NodePath("SmallPlant/03"), NodePath("SmallPlant/04")]
|
||||||
_bigPlants = [NodePath("BigPlant/01"), NodePath("BigPlant/02"), NodePath("BigPlant/03"), NodePath("BigPlant/04")]
|
_bigPlants = [NodePath("BigPlant/01"), NodePath("BigPlant/02"), NodePath("BigPlant/03"), NodePath("BigPlant/04")]
|
||||||
@@ -41,7 +41,7 @@ position = Vector2(0, 0.5)
|
|||||||
[node name="TomatoSeed" type="Sprite2D" parent="Seeds"]
|
[node name="TomatoSeed" type="Sprite2D" parent="Seeds"]
|
||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
flip_v = true
|
flip_v = true
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(-2, 15, 85, 81)
|
region_rect = Rect2(-2, 15, 85, 81)
|
||||||
@@ -49,7 +49,7 @@ region_rect = Rect2(-2, 15, 85, 81)
|
|||||||
[node name="TomatoSeed2" type="Sprite2D" parent="Seeds"]
|
[node name="TomatoSeed2" type="Sprite2D" parent="Seeds"]
|
||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
flip_v = true
|
flip_v = true
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(15, 177, 84, 108)
|
region_rect = Rect2(15, 177, 84, 108)
|
||||||
@@ -57,7 +57,7 @@ region_rect = Rect2(15, 177, 84, 108)
|
|||||||
[node name="TomatoSeed3" type="Sprite2D" parent="Seeds"]
|
[node name="TomatoSeed3" type="Sprite2D" parent="Seeds"]
|
||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
flip_v = true
|
flip_v = true
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(3, 337, 85, 82)
|
region_rect = Rect2(3, 337, 85, 82)
|
||||||
@@ -69,7 +69,7 @@ position = Vector2(0, 0.5)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(203, 1, 128, 164)
|
region_rect = Rect2(203, 1, 128, 164)
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ region_rect = Rect2(203, 1, 128, 164)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(218, 204, 112, 130)
|
region_rect = Rect2(218, 204, 112, 130)
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ region_rect = Rect2(218, 204, 112, 130)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(224, 399, 105, 105)
|
region_rect = Rect2(224, 399, 105, 105)
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ region_rect = Rect2(224, 399, 105, 105)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("2_rmjrk")
|
texture = ExtResource("2_vjw4j")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(228, 600, 85, 92)
|
region_rect = Rect2(228, 600, 85, 92)
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ position = Vector2(0, 2)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("3_goh03")
|
texture = ExtResource("4_hmj2d")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(-8, 1, 498, 682)
|
region_rect = Rect2(-8, 1, 498, 682)
|
||||||
|
|
||||||
@@ -112,7 +112,7 @@ region_rect = Rect2(-8, 1, 498, 682)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("3_goh03")
|
texture = ExtResource("4_hmj2d")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(575, 82, 516, 591)
|
region_rect = Rect2(575, 82, 516, 591)
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ region_rect = Rect2(575, 82, 516, 591)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("3_goh03")
|
texture = ExtResource("4_hmj2d")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(-25, 694, 521, 687)
|
region_rect = Rect2(-25, 694, 521, 687)
|
||||||
|
|
||||||
@@ -128,19 +128,19 @@ region_rect = Rect2(-25, 694, 521, 687)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("3_goh03")
|
texture = ExtResource("4_hmj2d")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(546, 697, 535, 687)
|
region_rect = Rect2(546, 697, 535, 687)
|
||||||
|
|
||||||
[node name="InteractionArea" parent="." instance=ExtResource("5_tikj4")]
|
[node name="InteractionArea" parent="." instance=ExtResource("5_3j24b")]
|
||||||
position = Vector2(0, 2.3)
|
position = Vector2(0, 2.3)
|
||||||
|
|
||||||
[node name="ReadyPlantInventoryItem" parent="." instance=ExtResource("6_u4cty")]
|
[node name="ReadyPlantInventoryItem" parent="." instance=ExtResource("6_gdrin")]
|
||||||
position = Vector2(0, 2.3)
|
position = Vector2(0, 2.3)
|
||||||
IsActive = false
|
IsActive = false
|
||||||
|
|
||||||
[node name="SpawnWithItem" parent="ReadyPlantInventoryItem" index="0"]
|
[node name="SpawnWithItem" parent="ReadyPlantInventoryItem" index="0"]
|
||||||
_blueprint = ExtResource("7_yntkb")
|
_blueprint = ExtResource("7_di4m0")
|
||||||
|
|
||||||
[node name="ItemLabel" parent="ReadyPlantInventoryItem" index="1"]
|
[node name="ItemLabel" parent="ReadyPlantInventoryItem" index="1"]
|
||||||
visible = false
|
visible = false
|
||||||
@@ -160,7 +160,7 @@ visible = false
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("4_u4cty")
|
texture = ExtResource("8_evgr8")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(399, 3, 679, 808)
|
region_rect = Rect2(399, 3, 679, 808)
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ region_rect = Rect2(399, 3, 679, 808)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("4_u4cty")
|
texture = ExtResource("8_evgr8")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(1077, 109, 633, 695)
|
region_rect = Rect2(1077, 109, 633, 695)
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ region_rect = Rect2(1077, 109, 633, 695)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("4_u4cty")
|
texture = ExtResource("8_evgr8")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(415, 838, 639, 817)
|
region_rect = Rect2(415, 838, 639, 817)
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ region_rect = Rect2(415, 838, 639, 817)
|
|||||||
visible = false
|
visible = false
|
||||||
y_sort_enabled = true
|
y_sort_enabled = true
|
||||||
material = SubResource("ShaderMaterial_u4cty")
|
material = SubResource("ShaderMaterial_u4cty")
|
||||||
texture = ExtResource("4_u4cty")
|
texture = ExtResource("8_evgr8")
|
||||||
region_enabled = true
|
region_enabled = true
|
||||||
region_rect = Rect2(1167, 863, 528, 785)
|
region_rect = Rect2(1167, 863, 528, 785)
|
||||||
|
|
||||||
@@ -56,6 +56,7 @@ directories/dtl_directory={
|
|||||||
"quest5_forest_end": "res://dialog/quest5_forest_end.dtl",
|
"quest5_forest_end": "res://dialog/quest5_forest_end.dtl",
|
||||||
"quest5_forest_start": "res://dialog/quest5_forest_start.dtl",
|
"quest5_forest_start": "res://dialog/quest5_forest_start.dtl",
|
||||||
"semi_cat": "res://dialog/semi_cat.dtl",
|
"semi_cat": "res://dialog/semi_cat.dtl",
|
||||||
|
"talk_to_plant": "res://dialog/talk_to_plant.dtl",
|
||||||
"test_time_line": "res://dialog/test_time_line.dtl",
|
"test_time_line": "res://dialog/test_time_line.dtl",
|
||||||
"yeli_intro_01": "res://dialog/yeli_intro_01.dtl",
|
"yeli_intro_01": "res://dialog/yeli_intro_01.dtl",
|
||||||
"yeli_intro_02": "res://dialog/yeli_intro_02.dtl",
|
"yeli_intro_02": "res://dialog/yeli_intro_02.dtl",
|
||||||
@@ -64,6 +65,7 @@ directories/dtl_directory={
|
|||||||
"yeli_intro_05": "res://dialog/yeli_intro_05.dtl"
|
"yeli_intro_05": "res://dialog/yeli_intro_05.dtl"
|
||||||
}
|
}
|
||||||
variables={
|
variables={
|
||||||
|
"MAGICWORD": "Hokus Pokus!s",
|
||||||
"PLAYERMOOD": "Good",
|
"PLAYERMOOD": "Good",
|
||||||
"SHOW": "IGF"
|
"SHOW": "IGF"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://0mnsr4anoaiq"]
|
||||||
|
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b5ade1s2ijunu" path="res://art/farm/farming/farmobjekte/beetroot/beetroot_icon.png" id="1_wddc8"]
|
||||||
|
[ext_resource type="Script" uid="uid://cbskymrxs6ksu" path="res://scripts/CSharp/Common/Inventory/ItemResource.cs" id="2_5t85d"]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
script = ExtResource("2_5t85d")
|
||||||
|
name = "Tomato"
|
||||||
|
color = Color(0.451671, 0.0462732, 0.396459, 1)
|
||||||
|
icon = ExtResource("1_wddc8")
|
||||||
|
maxStack = 20
|
||||||
|
metadata/_custom_type_script = "uid://cbskymrxs6ksu"
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -26,8 +26,11 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
[Export] private PlantState _state = PlantState.None;
|
[Export] private PlantState _state = PlantState.None;
|
||||||
[Export] private FieldBehaviour2D _field;
|
[Export] private FieldBehaviour2D _field;
|
||||||
[Export] private ItemOnGround2D _harvestablePlant;
|
[Export] private ItemOnGround2D _harvestablePlant;
|
||||||
|
[Export] private CpuParticles2D _magicEffect;
|
||||||
|
|
||||||
|
private string _magicWordDialogicEventName = "MagicWord";
|
||||||
private Sprite2D _currentPlantSprite = null;
|
private Sprite2D _currentPlantSprite = null;
|
||||||
|
private bool _magicWordSaid;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -35,7 +38,7 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Grow()
|
public void Grow()
|
||||||
{
|
{
|
||||||
if (_field.FieldState != FieldState.Watered)
|
if (_field.FieldState != FieldState.Watered || !_magicWordSaid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GetTree().CallGroup("PlantGrowing", Player2D.MethodName.PlayFarmingAnimation);
|
GetTree().CallGroup("PlantGrowing", Player2D.MethodName.PlayFarmingAnimation);
|
||||||
@@ -76,6 +79,7 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
}
|
}
|
||||||
|
|
||||||
_field.UpdateFieldState(FieldState.Tilled);
|
_field.UpdateFieldState(FieldState.Tilled);
|
||||||
|
_magicWordSaid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Sprite2D GetRandomSprite(Sprite2D[] sprites)
|
private Sprite2D GetRandomSprite(Sprite2D[] sprites)
|
||||||
@@ -83,4 +87,16 @@ public partial class PlantBehaviour2D : Node2D
|
|||||||
Random rand = new Random();
|
Random rand = new Random();
|
||||||
return sprites[rand.Next(sprites.Length)];
|
return sprites[rand.Next(sprites.Length)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SayMagicWord(string wordEvent)
|
||||||
|
{
|
||||||
|
GD.Print("Calling Dialogic event: " + wordEvent);
|
||||||
|
if (_magicWordDialogicEventName != wordEvent)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_magicEffect.Emitting = true;
|
||||||
|
_magicEffect.OneShot = true;
|
||||||
|
_magicWordSaid = true;
|
||||||
|
Grow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
extends Node
|
||||||
|
|
||||||
|
@export var eventName : String
|
||||||
|
|
||||||
|
signal dialogicEventTriggered(name)
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
Dialogic.signal_event.connect(_on_dialogic_signal)
|
||||||
|
|
||||||
|
func _on_dialogic_signal(argument:String):
|
||||||
|
if argument == eventName:
|
||||||
|
dialogicEventTriggered.emit(argument)
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
uid://drle5aies8ye4
|
||||||
Reference in New Issue
Block a user