🎨 💄 Created art template for farm plants and reworked existing plant prefabs and inventory resources

This commit is contained in:
2025-09-27 16:54:17 +02:00
parent 0713e334b3
commit e73f13d7d4
30 changed files with 289 additions and 173 deletions
+41 -58
View File
@@ -1,13 +1,11 @@
[gd_scene load_steps=13 format=3 uid="uid://gishbn0a8eke"]
[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_66p1c"]
[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://mrnc81ukugh6" path="res://art/farm/farming/farmobjekte/plant_template.png" id="2_oyl0t"]
[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="4_hmj2d"]
[ext_resource type="PackedScene" uid="uid://cqc72e4hq6bcd" path="res://prefabs/interactions/interaction_area_2d.tscn" id="5_3j24b"]
[ext_resource type="PackedScene" uid="uid://dpbbroif2tnil" path="res://prefabs/interactions/generic_item_on_ground_2d.tscn" id="6_gdrin"]
[ext_resource type="Resource" uid="uid://blr8tine5m0ma" path="res://resources/items/tomato.tres" id="7_vjw4j"]
[ext_resource type="Texture2D" uid="uid://cnwd3mb3jnuxm" path="res://art/farm/farming/farmobjekte/tomaten/teen adulte tomaten.png" id="8_evgr8"]
[ext_resource type="Texture2D" uid="uid://bleimj6jr1jka" path="res://art/general/rectangle.png" id="9_vjw4j"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_u4cty"]
@@ -35,9 +33,9 @@ z_index = 1
y_sort_enabled = true
script = ExtResource("1_66p1c")
_seeds = [NodePath("Seeds/Seed1"), NodePath("Seeds/Seed2"), NodePath("Seeds/Seed3")]
_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")]
_readyPlants = [NodePath("ReadyPlantInventoryItem/ReadyPlant/01"), NodePath("ReadyPlantInventoryItem/ReadyPlant/02"), NodePath("ReadyPlantInventoryItem/ReadyPlant/03"), NodePath("ReadyPlantInventoryItem/ReadyPlant/04")]
_smallPlants = [NodePath("SmallPlant/01"), NodePath("SmallPlant/02"), NodePath("SmallPlant/03")]
_bigPlants = [NodePath("BigPlant/01"), NodePath("BigPlant/02"), NodePath("BigPlant/03")]
_readyPlants = [NodePath("ReadyPlantInventoryItem/ReadyPlant/01"), NodePath("ReadyPlantInventoryItem/ReadyPlant/02"), NodePath("ReadyPlantInventoryItem/ReadyPlant/03")]
_harvestablePlant = NodePath("ReadyPlantInventoryItem")
_magicEffect = NodePath("magic vfx")
_magicWordNeeded = false
@@ -48,26 +46,26 @@ position = Vector2(0, 0.5)
[node name="Seed1" type="Sprite2D" parent="Seeds"]
visible = false
y_sort_enabled = true
texture = ExtResource("2_vjw4j")
flip_v = true
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(-2, 15, 85, 81)
region_rect = Rect2(524, 1182, 294, 284)
[node name="Seed2" type="Sprite2D" parent="Seeds"]
visible = false
y_sort_enabled = true
texture = ExtResource("2_vjw4j")
flip_v = true
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(15, 177, 84, 108)
region_rect = Rect2(930, 1182, 296, 289)
[node name="Seed3" type="Sprite2D" parent="Seeds"]
visible = false
y_sort_enabled = true
texture = ExtResource("2_vjw4j")
flip_v = true
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(3, 337, 85, 82)
region_rect = Rect2(1328, 1184, 282, 292)
[node name="SmallPlant" type="Node2D" parent="."]
position = Vector2(0, 0.5)
@@ -76,33 +74,28 @@ position = Vector2(0, 0.5)
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("2_vjw4j")
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(203, 1, 128, 164)
region_rect = Rect2(1810, 1190, 258, 299)
[node name="02" type="Sprite2D" parent="SmallPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("2_vjw4j")
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(218, 204, 112, 130)
region_rect = Rect2(2206, 1182, 274, 306)
[node name="03" type="Sprite2D" parent="SmallPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("2_vjw4j")
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(224, 399, 105, 105)
[node name="04" type="Sprite2D" parent="SmallPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("2_vjw4j")
region_enabled = true
region_rect = Rect2(228, 600, 85, 92)
region_rect = Rect2(2588, 1178, 282, 300)
[node name="BigPlant" type="Node2D" parent="."]
position = Vector2(0, -300)
@@ -111,33 +104,28 @@ position = Vector2(0, -300)
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("4_hmj2d")
position = Vector2(2.5, -56.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(-8, 1, 498, 682)
region_rect = Rect2(3454, 133, 850, 895)
[node name="02" type="Sprite2D" parent="BigPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("4_hmj2d")
position = Vector2(12.5, -44.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(575, 82, 516, 591)
region_rect = Rect2(4498, 134, 764, 903)
[node name="03" type="Sprite2D" parent="BigPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("4_hmj2d")
position = Vector2(16.5, -37.5)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(-25, 694, 521, 687)
[node name="04" type="Sprite2D" parent="BigPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("4_hmj2d")
region_enabled = true
region_rect = Rect2(546, 697, 535, 687)
region_rect = Rect2(5416, 136, 647, 895)
[node name="GrowingInteractionArea" parent="." instance=ExtResource("5_3j24b")]
position = Vector2(0, 2.3)
@@ -178,33 +166,28 @@ position = Vector2(0, -400)
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("8_evgr8")
position = Vector2(-24.5, 50.2)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(399, 3, 679, 808)
region_rect = Rect2(474, 130, 752, 887)
[node name="02" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("8_evgr8")
position = Vector2(-1.5, 49.2)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(1077, 109, 633, 695)
region_rect = Rect2(1418, 134, 843, 887)
[node name="03" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("8_evgr8")
position = Vector2(0.5, 49.2)
texture = ExtResource("2_oyl0t")
region_enabled = true
region_rect = Rect2(415, 838, 639, 817)
[node name="04" type="Sprite2D" parent="ReadyPlantInventoryItem/ReadyPlant"]
visible = false
y_sort_enabled = true
material = SubResource("ShaderMaterial_u4cty")
texture = ExtResource("8_evgr8")
region_enabled = true
region_rect = Rect2(1167, 863, 528, 785)
region_rect = Rect2(2461, 134, 841, 878)
[node name="magic vfx" type="CPUParticles2D" parent="."]
position = Vector2(-133, -347)