working with new sprites

This commit is contained in:
Altaezio
2026-02-18 18:25:43 +01:00
parent 78072c7886
commit 53107b5f71
100 changed files with 1244 additions and 951 deletions

View File

@@ -3,80 +3,57 @@
[ext_resource type="Script" uid="uid://dt2ip3pw2cboy" path="res://entities/plants/scripts/texture_builder/plant_texture_builder.gd" id="1_s8rsj"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_cfiqo"]
[ext_resource type="Resource" uid="uid://bfyafiewcrjln" path="res://entities/plants/resources/plant_parts/Base1.tres" id="3_coupj"]
[ext_resource type="Resource" uid="uid://d2vdf2sth2xjm" path="res://entities/plants/resources/plant_parts/Base3.tres" id="4_coupj"]
[ext_resource type="Resource" uid="uid://7hrdkl6bf3o4" path="res://entities/plants/resources/plant_parts/Branch1.tres" id="4_ggud5"]
[ext_resource type="Resource" uid="uid://clruuysx80pnn" path="res://entities/plants/resources/plant_parts/Base4.tres" id="5_ggud5"]
[ext_resource type="Resource" uid="uid://ceisi5yyie7to" path="res://entities/plants/resources/plant_parts/Branch2.tres" id="5_ufbqh"]
[ext_resource type="Resource" uid="uid://cxiu8frk04b5i" path="res://entities/plants/resources/plant_parts/Branch3.tres" id="6_jbu3q"]
[ext_resource type="Resource" uid="uid://53p5g07e3pb4" path="res://entities/plants/resources/plant_parts/Branch4.tres" id="7_21cjy"]
[ext_resource type="Resource" uid="uid://d2y7o2hc6ffei" path="res://entities/plants/resources/plant_parts/Branch11.tres" id="8_rs2ow"]
[ext_resource type="Resource" uid="uid://civ4gr1c2pq7g" path="res://entities/plants/resources/plant_parts/Branch12.tres" id="9_5job5"]
[ext_resource type="Resource" uid="uid://bqfocs6f0iypo" path="res://entities/plants/resources/plant_parts/Branch13.tres" id="10_cynqk"]
[ext_resource type="Resource" uid="uid://drml5dm8i3j3a" path="res://entities/plants/resources/plant_parts/Branch14.tres" id="11_b21au"]
[ext_resource type="Resource" uid="uid://b1t5nfwcln5vo" path="res://entities/plants/resources/plant_parts/Branch15.tres" id="12_17ac3"]
[ext_resource type="Resource" uid="uid://b4s58a600q2rn" path="res://entities/plants/resources/plant_parts/Branch16.tres" id="13_fuh2b"]
[ext_resource type="Resource" uid="uid://dspugxsjw2aea" path="res://entities/plants/resources/plant_parts/Branch17.tres" id="14_28gvc"]
[ext_resource type="Resource" uid="uid://cnt38l2fmg8d7" path="res://entities/plants/resources/plant_parts/Branch18.tres" id="15_1cwvj"]
[ext_resource type="Resource" uid="uid://cyfyodtfxne1w" path="res://entities/plants/resources/plant_parts/Branch5.tres" id="8_qm7aw"]
[ext_resource type="Resource" uid="uid://cuvtf4y1dspcp" path="res://entities/plants/resources/plant_parts/Branch6.tres" id="9_3e4c1"]
[ext_resource type="Resource" uid="uid://wgmxpk52rg7x" path="res://entities/plants/resources/plant_parts/LeafA1.tres" id="11_fc4k8"]
[ext_resource type="Resource" uid="uid://cbejb0uvdke7k" path="res://entities/plants/resources/plant_parts/LeafA2.tres" id="12_1b4fr"]
[ext_resource type="Resource" uid="uid://dujxttu80g0lo" path="res://entities/plants/resources/plant_parts/LeafA3.tres" id="13_ggcwy"]
[ext_resource type="Resource" uid="uid://bix3qwmsvuxs4" path="res://entities/plants/resources/plant_parts/LeafA4.tres" id="14_15wue"]
[ext_resource type="Resource" uid="uid://bs66avdkmbxjm" path="res://entities/plants/resources/plant_parts/LeafD1.tres" id="15_hvwgo"]
[ext_resource type="Script" uid="uid://cfjd8jelpm8dt" path="res://entities/plants/scripts/texture_builder/part_mutation_association.gd" id="16_c3tk3"]
[ext_resource type="Resource" uid="uid://wxqxm6d5twdh" path="res://entities/plants/resources/plant_parts/Leaf8.tres" id="17_q0jli"]
[ext_resource type="Resource" uid="uid://uoikjpno37bi" path="res://entities/plants/resources/plant_parts/Leaf9.tres" id="18_rplk6"]
[ext_resource type="Resource" uid="uid://c5gqwck2p5h5n" path="res://entities/plants/resources/plant_parts/Leaf10.tres" id="19_mcckl"]
[ext_resource type="Resource" uid="uid://c5fj1cw0f4mu6" path="res://entities/plants/resources/plant_parts/Leaf11.tres" id="20_3hcun"]
[ext_resource type="Resource" uid="uid://dce788f0adauv" path="res://entities/plants/resources/plant_parts/Leaf12.tres" id="21_kvmj5"]
[ext_resource type="Resource" uid="uid://dd34dikqoynp3" path="res://entities/plants/resources/plant_parts/Leaf13.tres" id="22_ocu7e"]
[ext_resource type="Resource" uid="uid://bynje6g2wvuvl" path="res://entities/plants/resources/plant_parts/Leaf14.tres" id="23_q771y"]
[ext_resource type="Resource" uid="uid://bd2op6q1masjt" path="res://entities/plants/resources/plant_parts/Leaf15.tres" id="24_5fbyu"]
[ext_resource type="Resource" uid="uid://bvajuw0r47edw" path="res://entities/plants/resources/plant_parts/Leaf16.tres" id="25_2plsj"]
[ext_resource type="Resource" uid="uid://cxgw1vgket0fw" path="res://entities/plants/resources/plant_parts/Leaf1.tres" id="26_yjh7s"]
[ext_resource type="Resource" uid="uid://qb6bftgq0n6y" path="res://entities/plants/resources/plant_parts/Leaf2.tres" id="27_abtbh"]
[ext_resource type="Resource" uid="uid://ft112n57di0e" path="res://entities/plants/resources/plant_parts/Leaf3.tres" id="28_j5s6w"]
[ext_resource type="Resource" uid="uid://dwjj6qmcjhn68" path="res://entities/plants/resources/plant_parts/Leaf4.tres" id="29_p21mk"]
[ext_resource type="Resource" uid="uid://bkr70mstyf8pp" path="res://entities/plants/resources/plant_parts/Leaf5.tres" id="30_wmcor"]
[ext_resource type="Resource" uid="uid://dcuwupmqt34ju" path="res://entities/plants/resources/plant_parts/Leaf6.tres" id="31_dx2ud"]
[ext_resource type="Resource" uid="uid://djmidq7yq452i" path="res://entities/plants/resources/plant_parts/Leaf7.tres" id="32_fpktn"]
[ext_resource type="Resource" uid="uid://crmvc77bqax1y" path="res://entities/plants/resources/plant_parts/Flower1.tres" id="33_7b70u"]
[ext_resource type="Resource" uid="uid://c0hr7icfkjkoi" path="res://entities/plants/resources/plant_parts/Flower2.tres" id="34_q8uyx"]
[ext_resource type="Resource" uid="uid://clkoc1iccts2w" path="res://entities/plants/resources/plant_parts/Flower3.tres" id="35_r166b"]
[ext_resource type="Resource" uid="uid://bd8yapi1pokj6" path="res://entities/plants/resources/plant_parts/Flower4.tres" id="36_78dq1"]
[ext_resource type="Resource" uid="uid://brmd6d3l8trqs" path="res://entities/plants/resources/plant_parts/BottomLeaf1.tres" id="37_kyre2"]
[ext_resource type="Resource" uid="uid://cfr33014u7ig5" path="res://entities/plants/resources/plant_parts/BottomLeaf2.tres" id="38_hwp0s"]
[ext_resource type="Resource" uid="uid://cf70m1us8mfqp" path="res://entities/plants/resources/plant_parts/BottomLeaf3.tres" id="39_wjthp"]
[ext_resource type="Resource" uid="uid://ctlmah4ohqp25" path="res://entities/plants/resources/plant_parts/BottomLeaf4.tres" id="40_rf72b"]
[ext_resource type="Resource" uid="uid://b8o4q0hsm84ov" path="res://entities/plants/resources/plant_parts/BottomLeaf5.tres" id="41_fnybh"]
[ext_resource type="Resource" uid="uid://bb33v756anesy" path="res://entities/plants/resources/plant_parts/BottomLeaf6.tres" id="42_6o0xq"]
[ext_resource type="Resource" uid="uid://cbqrl72y0d1yg" path="res://entities/plants/resources/plant_parts/BottomLeaf7.tres" id="43_h02jx"]
[ext_resource type="Resource" uid="uid://dwppani7gyjl5" path="res://entities/plants/resources/plant_parts/BottomLeaf8.tres" id="44_1v1v5"]
[ext_resource type="Resource" uid="uid://dkta1u1u0efxk" path="res://entities/plants/resources/plant_parts/BottomLeaf9.tres" id="45_yha2t"]
[ext_resource type="Resource" uid="uid://cv2iad0m88cdr" path="res://entities/plants/resources/plant_parts/LeafD2.tres" id="16_npk80"]
[ext_resource type="Resource" uid="uid://b806ml8dd7gnn" path="res://entities/plants/resources/plant_parts/LeafD3.tres" id="17_hyb2i"]
[ext_resource type="Resource" uid="uid://ciga0npobiqc4" path="res://entities/plants/resources/plant_parts/LeafD4.tres" id="18_4gk8a"]
[ext_resource type="Resource" uid="uid://clh2iduja5emm" path="res://entities/plants/resources/plant_parts/LeafD5.tres" id="19_alra6"]
[ext_resource type="Resource" uid="uid://ckef0dno4j5mn" path="res://entities/plants/resources/plant_parts/FlowerF1.tres" id="20_lggh7"]
[ext_resource type="Resource" uid="uid://dhhyh56shnure" path="res://entities/plants/resources/plant_parts/FlowerF2.tres" id="21_8r35x"]
[ext_resource type="Resource" uid="uid://cowkewtw2lg4i" path="res://entities/plants/resources/plant_parts/FlowerA1.tres" id="22_rbd7l"]
[ext_resource type="Resource" uid="uid://drn8vt4sp7u6q" path="res://entities/plants/resources/plant_parts/FlowerA2.tres" id="23_nfxo0"]
[ext_resource type="Resource" uid="uid://b3oqeugtrtera" path="res://entities/plants/resources/plant_parts/FlowerA3.tres" id="24_i8j71"]
[ext_resource type="Resource" uid="uid://ydvnxfnkbr2g" path="res://entities/plants/resources/plant_parts/FlowerA4.tres" id="25_l2vrg"]
[sub_resource type="Resource" id="Resource_x75j3"]
script = ExtResource("16_c3tk3")
parts = Array[ExtResource("2_cfiqo")]([ExtResource("17_q0jli"), ExtResource("18_rplk6"), ExtResource("19_mcckl"), ExtResource("20_3hcun"), ExtResource("21_kvmj5"), ExtResource("22_ocu7e"), ExtResource("23_q771y"), ExtResource("24_5fbyu"), ExtResource("25_2plsj")])
part_amount = 2
parts = Array[ExtResource("2_cfiqo")]([ExtResource("11_fc4k8"), ExtResource("12_1b4fr"), ExtResource("13_ggcwy"), ExtResource("14_15wue")])
part_amount = 3
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
[sub_resource type="Resource" id="Resource_setyo"]
script = ExtResource("16_c3tk3")
parts = Array[ExtResource("2_cfiqo")]([ExtResource("26_yjh7s"), ExtResource("27_abtbh"), ExtResource("28_j5s6w"), ExtResource("29_p21mk"), ExtResource("30_wmcor"), ExtResource("31_dx2ud"), ExtResource("32_fpktn")])
part_amount = 2
parts = Array[ExtResource("2_cfiqo")]([ExtResource("15_hvwgo"), ExtResource("16_npk80"), ExtResource("17_hyb2i"), ExtResource("18_4gk8a"), ExtResource("19_alra6")])
part_amount = 3
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
[sub_resource type="Resource" id="Resource_n40r1"]
script = ExtResource("16_c3tk3")
parts = Array[ExtResource("2_cfiqo")]([ExtResource("33_7b70u"), ExtResource("34_q8uyx"), ExtResource("35_r166b"), ExtResource("36_78dq1")])
part_amount = 2
parts = Array[ExtResource("2_cfiqo")]([ExtResource("20_lggh7"), ExtResource("21_8r35x")])
part_amount = 3
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
[sub_resource type="Resource" id="Resource_pw6ot"]
script = ExtResource("16_c3tk3")
parts = Array[ExtResource("2_cfiqo")]([ExtResource("37_kyre2"), ExtResource("38_hwp0s"), ExtResource("39_wjthp"), ExtResource("40_rf72b"), ExtResource("41_fnybh"), ExtResource("42_6o0xq"), ExtResource("43_h02jx"), ExtResource("44_1v1v5"), ExtResource("45_yha2t")])
part_amount = 2
parts = Array[ExtResource("2_cfiqo")]([ExtResource("22_rbd7l"), ExtResource("23_nfxo0"), ExtResource("24_i8j71"), ExtResource("25_l2vrg")])
part_amount = 4
metadata/_custom_type_script = "uid://cfjd8jelpm8dt"
[node name="TextureBuilder" type="Node" unique_id=79184097]
script = ExtResource("1_s8rsj")
bases = Array[ExtResource("2_cfiqo")]([ExtResource("3_coupj")])
baby_bases = Array[ExtResource("2_cfiqo")]([ExtResource("4_coupj"), ExtResource("5_ggud5")])
branches = Array[ExtResource("2_cfiqo")]([ExtResource("4_ggud5"), ExtResource("5_ufbqh"), ExtResource("6_jbu3q"), ExtResource("7_21cjy"), ExtResource("8_rs2ow"), ExtResource("9_5job5"), ExtResource("10_cynqk"), ExtResource("11_b21au"), ExtResource("12_17ac3"), ExtResource("13_fuh2b"), ExtResource("14_28gvc"), ExtResource("15_1cwvj")])
branches = Array[ExtResource("2_cfiqo")]([ExtResource("4_ggud5"), ExtResource("5_ufbqh"), ExtResource("6_jbu3q"), ExtResource("7_21cjy"), ExtResource("8_qm7aw"), ExtResource("9_3e4c1")])
parts_mutation_associations = Dictionary[String, ExtResource("16_c3tk3")]({
"ANCIENT": SubResource("Resource_x75j3"),
"PRECOCIOUS": SubResource("Resource_setyo"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxcfkw1evy6hq"
path="res://.godot/imported/asset-plante-codecouleur.png-16267eeb2ed1e8f26442e3161e1f496b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/plants/assets/sprites/asset-plante-codecouleur.png"
dest_files=["res://.godot/imported/asset-plante-codecouleur.png-16267eeb2ed1e8f26442e3161e1f496b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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: 1.2 MiB

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b7nfpxk8nfnov"
path="res://.godot/imported/asset-plante-fin.png-cfc8c478ab084b591e723aa12fcb004a.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://entities/plants/assets/sprites/asset-plante-fin.png"
dest_files=["res://.godot/imported/asset-plante-fin.png-cfc8c478ab084b591e723aa12fcb004a.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
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/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
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

View File

@@ -1,41 +1,29 @@
[gd_scene format=3 uid="uid://cg6r56x11bvk2"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="1_8nppj"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="1_aiiik"]
[ext_resource type="Script" uid="uid://c360ic1aost1n" path="res://entities/plants/scripts/texture_builder/plant_part_builder.gd" id="2_a5yje"]
[ext_resource type="Script" uid="uid://d01kj3twwcrmu" path="res://entities/plants/scripts/texture_builder/plant_attach_builder.gd" id="3_yh7e0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("1_8nppj")
region = Rect2(46, 30, 308, 671)
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("1_aiiik")
region = Rect2(525, 122, 136, 98)
[node name="Base1" type="Sprite2D" unique_id=1642167049 node_paths=PackedStringArray("root", "attaches", "bottom_attaches")]
texture = SubResource("AtlasTexture_mypt2")
[node name="Sprite" type="Sprite2D" unique_id=1642167049 node_paths=PackedStringArray("root", "attaches")]
texture = SubResource("AtlasTexture_khbsd")
script = ExtResource("2_a5yje")
part_name = "Base1"
part_name = "Branch1"
root = NodePath("Root")
attaches = NodePath("Attaches")
bottom_attaches = NodePath("BottomAttaches")
[node name="Root" type="Node2D" parent="." unique_id=1974108401]
position = Vector2(14, 263)
[node name="Root" type="Node2D" parent="." unique_id=1437082577]
position = Vector2(-39, 2)
script = ExtResource("3_yh7e0")
attach_types = Array[int]([0])
metadata/_custom_type_script = "uid://d01kj3twwcrmu"
[node name="Attaches" type="Node" parent="." unique_id=2082226435]
[node name="Attaches" type="Node" parent="." unique_id=1834697767]
[node name="attach1" type="Node2D" parent="Attaches" unique_id=808392694]
position = Vector2(0, -251)
[node name="attach2" type="Node2D" parent="Attaches" unique_id=1951230244]
position = Vector2(10, -85)
[node name="attach3" type="Node2D" parent="Attaches" unique_id=1491711670]
position = Vector2(81, 80)
[node name="BottomAttaches" type="Node" parent="." unique_id=456407982]
[node name="battom_attach0" type="Node2D" parent="BottomAttaches" unique_id=885194661]
position = Vector2(-17, 293)
[node name="battom_attach1" type="Node2D" parent="BottomAttaches" unique_id=1362515589]
position = Vector2(27, 295)
[node name="battom_attach2" type="Node2D" parent="BottomAttaches" unique_id=1546335762]
position = Vector2(52, 300)
[node name="attach0" type="Node2D" parent="Attaches" unique_id=1511923721]
position = Vector2(8, -4)
script = ExtResource("3_yh7e0")
attach_types = Array[int]([1, 2])

View File

@@ -1,15 +1,46 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bfyafiewcrjln"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_10bgv"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_enq8o"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_10bgv"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_10bgv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_10bgv")
region = Rect2(46, 30, 308, 671)
[sub_resource type="Resource" id="Resource_10bgv"]
script = ExtResource("1_10bgv")
position = Vector2(55, 84)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_m78t0"]
script = ExtResource("1_10bgv")
position = Vector2(37, 13)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_hbwie"]
script = ExtResource("1_10bgv")
position = Vector2(-13, -86)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_obhnl"]
script = ExtResource("1_10bgv")
position = Vector2(-24, -250)
attach_types = Array[int]([0, 1])
[sub_resource type="Resource" id="Resource_dhqtw"]
script = ExtResource("1_10bgv")
position = Vector2(-56, -303)
attach_types = Array[int]([0, 1])
[sub_resource type="Resource" id="Resource_54ktm"]
script = ExtResource("1_10bgv")
position = Vector2(-7, 270)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_10bgv")
region = Rect2(112, 23, 224, 692)
[resource]
resource_name = "Base1"
script = ExtResource("1_enq8o")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(14, 263)
attaches = Array[Vector2]([Vector2(0, -251), Vector2(10, -85), Vector2(81, 80)])
bottom_attaches = Array[Vector2]([Vector2(-17, 293), Vector2(27, 295), Vector2(52, 300)])
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_54ktm")
attaches = Array[ExtResource("1_10bgv")]([SubResource("Resource_10bgv"), SubResource("Resource_m78t0"), SubResource("Resource_hbwie"), SubResource("Resource_obhnl"), SubResource("Resource_dhqtw")])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bgh8a4xwc5stw"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_ratl7"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_d45yo"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_d45yo")
region = Rect2(52, 724, 363, 448)
[resource]
script = ExtResource("1_ratl7")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(89, 180)
attaches = Array[Vector2]([Vector2(82, 84), Vector2(-27, 5), Vector2(-121, -64), Vector2(-94, -159)])
bottom_attaches = Array[Vector2]([Vector2(114, 191), Vector2(61, 187)])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://d2vdf2sth2xjm"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_p8ox4"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_3h2vf"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_3h2vf")
region = Rect2(58, 1268, 141, 393)
[resource]
script = ExtResource("1_p8ox4")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(7, 156)
attaches = Array[Vector2]([Vector2(0, 52), Vector2(19, -149), Vector2(-10, -52)])
bottom_attaches = Array[Vector2]([Vector2(21, 161), Vector2(-7, 162)])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://clruuysx80pnn"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_03in3"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_108r1"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_108r1")
region = Rect2(223, 1265, 200, 386)
[resource]
script = ExtResource("1_03in3")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(31, 158)
attaches = Array[Vector2]([Vector2(-8, 26), Vector2(-42, -156), Vector2(17, 54)])
bottom_attaches = Array[Vector2]([Vector2(49, 165), Vector2(19, 169)])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://brmd6d3l8trqs"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_mvsqc"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_oqbgr"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_oqbgr")
region = Rect2(117, 1662, 70, 100)
[resource]
script = ExtResource("1_mvsqc")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(1, 32)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cfr33014u7ig5"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_14sjf"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_ud5ex"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_ud5ex")
region = Rect2(9, 1751, 100, 94)
[resource]
script = ExtResource("1_14sjf")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(10, 35)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cf70m1us8mfqp"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_xplyn"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_uj75q"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_uj75q")
region = Rect2(210, 1644, 112, 220)
[resource]
script = ExtResource("1_xplyn")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(26, 79)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ctlmah4ohqp25"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_tv8sf"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_srnvv"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_srnvv")
region = Rect2(328, 1665, 118, 196)
[resource]
script = ExtResource("1_tv8sf")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-29, 81)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b8o4q0hsm84ov"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_5lgql"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_0b6yj"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_0b6yj")
region = Rect2(6, 1868, 101, 246)
[resource]
script = ExtResource("1_5lgql")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-21, 102)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bb33v756anesy"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_gcphf"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_tnhr7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_tnhr7")
region = Rect2(100, 1930, 121, 181)
[resource]
script = ExtResource("1_gcphf")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(7, 68)
type = 2
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cbqrl72y0d1yg"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_k38pp"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_cwsfe"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_cwsfe")
region = Rect2(238, 1897, 80, 82)
[resource]
script = ExtResource("1_k38pp")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(12, 25)
type = 2
is_back = true
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dwppani7gyjl5"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_2m37y"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_pyvr6"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_pyvr6")
region = Rect2(347, 1935, 87, 89)
[resource]
script = ExtResource("1_2m37y")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-5, 25)
type = 2
bottom_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dkta1u1u0efxk"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_2r1e2"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_tv2v3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_tv2v3")
region = Rect2(281, 2022, 97, 94)
[resource]
script = ExtResource("1_2r1e2")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(11, 25)
type = 2
bottom_attachable = true

View File

@@ -1,15 +1,26 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://7hrdkl6bf3o4"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_o5tro"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_peh48"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_o5tro"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_o5tro"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_o5tro")
region = Rect2(518, 116, 147, 110)
[sub_resource type="Resource" id="Resource_sfip3"]
script = ExtResource("1_o5tro")
position = Vector2(8, -4)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_iss37"]
script = ExtResource("1_o5tro")
position = Vector2(-39, 2)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_o5tro")
region = Rect2(525, 122, 136, 98)
[resource]
resource_name = "Branch1"
script = ExtResource("1_peh48")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-34, 2)
type = 1
is_back = true
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_iss37")
attaches = Array[ExtResource("1_o5tro")]([SubResource("Resource_sfip3")])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b68fyu1j5d6te"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_bxo74"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_fvydc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_fvydc")
region = Rect2(716, 966, 212, 172)
[resource]
script = ExtResource("1_bxo74")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-66, 11)
attaches = Array[Vector2]([Vector2(-14, 39), Vector2(58, -39)])
type = 1

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://d2y7o2hc6ffei"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_wnxgs"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_smg8i"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_smg8i")
region = Rect2(487, 1206, 111, 164)
[resource]
script = ExtResource("1_wnxgs")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(28, 47)
attaches = Array[Vector2]([Vector2(4, 29)])
type = 1

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://civ4gr1c2pq7g"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1cr0i"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h0d20"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_h0d20")
region = Rect2(753, 1188, 172, 191)
[resource]
script = ExtResource("1_1cr0i")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-19, 57)
attaches = Array[Vector2]([Vector2(6, 31), Vector2(1, -12)])
type = 1

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bqfocs6f0iypo"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_p4qfr"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_iibe2"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_iibe2")
region = Rect2(515, 1445, 123, 171)
[resource]
script = ExtResource("1_p4qfr")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-19, 57)
attaches = Array[Vector2]([Vector2(12, 16)])
type = 1
is_back = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://drml5dm8i3j3a"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_5xrel"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_0v6u4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_0v6u4")
region = Rect2(708, 1421, 178, 204)
[resource]
script = ExtResource("1_5xrel")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(34, 75)
attaches = Array[Vector2]([Vector2(18, 21)])
type = 1

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b1t5nfwcln5vo"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_0mgvf"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_k1p2k"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_k1p2k")
region = Rect2(450, 1656, 194, 235)
[resource]
script = ExtResource("1_0mgvf")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(33, 85)
attaches = Array[Vector2]([Vector2(-6, 19), Vector2(-33, -25)])
type = 1

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b4s58a600q2rn"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_l4nmf"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_ifu40"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_ifu40")
region = Rect2(745, 1655, 214, 183)
[resource]
script = ExtResource("1_l4nmf")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-42, 53)
attaches = Array[Vector2]([Vector2(19, 3)])
type = 1
is_back = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dspugxsjw2aea"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_gpxi3"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_e0an0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_e0an0")
region = Rect2(453, 1996, 156, 102)
[resource]
script = ExtResource("1_gpxi3")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(47, 30)
attaches = Array[Vector2]([Vector2(-11, 5)])
type = 1

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cnt38l2fmg8d7"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_wmuv5"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4klgd"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_4klgd")
region = Rect2(723, 1895, 198, 194)
[resource]
script = ExtResource("1_wmuv5")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-49, 73)
attaches = Array[Vector2]([Vector2(18, 21)])
type = 1

View File

@@ -1,14 +1,26 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ceisi5yyie7to"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1eil5"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h27ow"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_h27ow"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_h27ow"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_h27ow")
region = Rect2(735, 104, 118, 109)
[sub_resource type="Resource" id="Resource_svi20"]
script = ExtResource("1_h27ow")
position = Vector2(-1, 1)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_60wnb"]
script = ExtResource("1_h27ow")
position = Vector2(28, 0)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_h27ow")
region = Rect2(743, 108, 104, 114)
[resource]
resource_name = "Branch2"
script = ExtResource("1_1eil5")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(28, 5)
type = 1
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_60wnb")
attaches = Array[ExtResource("1_h27ow")]([SubResource("Resource_svi20")])

View File

@@ -1,15 +1,31 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cxiu8frk04b5i"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_4au1t"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_qrhlr"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4au1t"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_4au1t"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_4au1t")
region = Rect2(487, 242, 188, 176)
[sub_resource type="Resource" id="Resource_liidl"]
script = ExtResource("1_4au1t")
position = Vector2(17, 28)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_mivnq"]
script = ExtResource("1_4au1t")
position = Vector2(-15, -36)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_psg71"]
script = ExtResource("1_4au1t")
position = Vector2(46, 43)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_4au1t")
region = Rect2(506, 248, 139, 173)
[resource]
resource_name = "Branch3"
script = ExtResource("1_qrhlr")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(39, 45)
attaches = Array[Vector2]([Vector2(6, 35), Vector2(-24, -34)])
type = 1
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_psg71")
attaches = Array[ExtResource("1_4au1t")]([SubResource("Resource_liidl"), SubResource("Resource_mivnq")])

View File

@@ -1,16 +1,36 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://53p5g07e3pb4"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_2wu38"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_tu2er"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_2wu38"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_5mbvh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_2wu38")
region = Rect2(743, 246, 192, 185)
[sub_resource type="Resource" id="Resource_2wu38"]
script = ExtResource("1_2wu38")
position = Vector2(-19, 37)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_5mbvh"]
script = ExtResource("1_2wu38")
position = Vector2(-3, 1)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_7ivk8"]
script = ExtResource("1_2wu38")
position = Vector2(29, -52)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_lwslo"]
script = ExtResource("1_2wu38")
position = Vector2(-44, 57)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_5mbvh")
region = Rect2(776, 250, 152, 177)
[resource]
resource_name = "Branch4"
script = ExtResource("1_tu2er")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-30, 56)
attaches = Array[Vector2]([Vector2(1, 27), Vector2(43, -54)])
type = 1
is_back = true
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_lwslo")
attaches = Array[ExtResource("1_2wu38")]([SubResource("Resource_2wu38"), SubResource("Resource_5mbvh"), SubResource("Resource_7ivk8")])

View File

@@ -1,15 +1,36 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cyfyodtfxne1w"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_7ri8e"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_sfan5"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_7ri8e"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_kwcpq"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_7ri8e")
region = Rect2(458, 495, 226, 204)
[sub_resource type="Resource" id="Resource_a5n1t"]
script = ExtResource("1_7ri8e")
position = Vector2(56, 24)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_d1jt0"]
script = ExtResource("1_7ri8e")
position = Vector2(36, -8)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_72tpv"]
script = ExtResource("1_7ri8e")
position = Vector2(-40, -66)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_04uhi"]
script = ExtResource("1_7ri8e")
position = Vector2(73, 61)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_kwcpq")
region = Rect2(442, 491, 225, 234)
[resource]
resource_name = "Branch5"
script = ExtResource("1_sfan5")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(54, 70)
attaches = Array[Vector2]([Vector2(18, 6), Vector2(-55, -52)])
type = 1
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_04uhi")
attaches = Array[ExtResource("1_7ri8e")]([SubResource("Resource_a5n1t"), SubResource("Resource_d1jt0"), SubResource("Resource_72tpv")])

View File

@@ -1,16 +1,36 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cuvtf4y1dspcp"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_l4h5t"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_yt05g"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_yt05g"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_cps4v"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_t38ym"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_yt05g")
region = Rect2(728, 493, 203, 179)
[sub_resource type="Resource" id="Resource_o1b7h"]
script = ExtResource("1_yt05g")
position = Vector2(-18, 26)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_pdqa4"]
script = ExtResource("1_yt05g")
position = Vector2(16, -16)
attach_types = Array[int]([1, 2])
[sub_resource type="Resource" id="Resource_y2r4w"]
script = ExtResource("1_yt05g")
position = Vector2(44, -63)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_83cbs"]
script = ExtResource("1_yt05g")
position = Vector2(-49, 42)
attach_types = Array[int]([0])
[sub_resource type="AtlasTexture" id="AtlasTexture_khbsd"]
atlas = ExtResource("3_t38ym")
region = Rect2(753, 507, 173, 183)
[resource]
script = ExtResource("1_l4h5t")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-36, 59)
attaches = Array[Vector2]([Vector2(16, 27)])
type = 1
is_back = true
resource_name = "Branch6"
script = ExtResource("2_cps4v")
texture = SubResource("AtlasTexture_khbsd")
root = SubResource("Resource_83cbs")
attaches = Array[ExtResource("1_yt05g")]([SubResource("Resource_o1b7h"), SubResource("Resource_pdqa4"), SubResource("Resource_y2r4w")])

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://6jnbms553dyd"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_ixygn"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_62ciq"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_62ciq")
region = Rect2(446, 743, 234, 186)
[resource]
script = ExtResource("1_ixygn")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(67, 31)
attaches = Array[Vector2]([Vector2(-4, 14), Vector2(-63, -45)])
type = 1

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bkpe0b38m0prg"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1kyqm"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_4kt4t"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_4kt4t")
region = Rect2(714, 787, 187, 129)
[resource]
script = ExtResource("1_1kyqm")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-55, -5)
attaches = Array[Vector2]([Vector2(-18, 16), Vector2(55, 2)])
type = 1
is_back = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://31oq17bv1t4t"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_36y6q"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_qdh8q"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_qdh8q")
region = Rect2(442, 964, 199, 159)
[resource]
script = ExtResource("1_36y6q")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(67, 23)
attaches = Array[Vector2]([Vector2(13, 31), Vector2(-29, -14)])
type = 1

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://crmvc77bqax1y"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_3u7fo"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_23bbh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_23bbh")
region = Rect2(1597, 5, 152, 159)
[resource]
script = ExtResource("1_3u7fo")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(49, 63)
type = 3
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c0hr7icfkjkoi"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_bcreq"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_af12b"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_af12b")
region = Rect2(1746, 8, 116, 165)
[resource]
script = ExtResource("1_bcreq")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(23, 67)
type = 3
is_back = true
branch_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://clkoc1iccts2w"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_vlome"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_157wb"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_157wb")
region = Rect2(1884, 8, 83, 202)
[resource]
script = ExtResource("1_vlome")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(11, 72)
type = 3
branch_attachable = true

View File

@@ -1,15 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bd8yapi1pokj6"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_0uwmh"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_h3coc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_h3coc")
region = Rect2(1995, 32, 103, 187)
[resource]
script = ExtResource("1_0uwmh")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-13, 76)
type = 3
branch_attachable = true

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cowkewtw2lg4i"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_m6w7w"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_rmuvq"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_d3khu"]
[sub_resource type="Resource" id="Resource_m6w7w"]
script = ExtResource("1_m6w7w")
position = Vector2(12, 11)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_d3khu")
region = Rect2(1627, 1340, 86, 82)
[resource]
resource_name = "FlowerA1"
script = ExtResource("2_rmuvq")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_m6w7w")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://drn8vt4sp7u6q"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_ntn8n"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_8cijn"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_amrra"]
[sub_resource type="Resource" id="Resource_ntn8n"]
script = ExtResource("1_ntn8n")
position = Vector2(-16, 14)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_amrra")
region = Rect2(1714, 1341, 91, 87)
[resource]
resource_name = "FlowerA2"
script = ExtResource("2_8cijn")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_ntn8n")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b3oqeugtrtera"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_4i4bt"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_mbqq5"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_08wd6"]
[sub_resource type="Resource" id="Resource_4i4bt"]
script = ExtResource("1_4i4bt")
position = Vector2(6, 1)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_08wd6")
region = Rect2(1654, 1422, 56, 73)
[resource]
resource_name = "FlowerA3"
script = ExtResource("2_mbqq5")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_4i4bt")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ydvnxfnkbr2g"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_a64b2"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_b0i72"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_my41n"]
[sub_resource type="Resource" id="Resource_a64b2"]
script = ExtResource("1_a64b2")
position = Vector2(-7, 7)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_my41n")
region = Rect2(1710, 1425, 74, 70)
[resource]
resource_name = "FlowerA4"
script = ExtResource("2_b0i72")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_a64b2")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c4artcndro0r5"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_hkelp"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_37dm4"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_yyc7d"]
[sub_resource type="Resource" id="Resource_hkelp"]
script = ExtResource("1_hkelp")
position = Vector2(19, -19)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_yyc7d")
region = Rect2(1789, 1552, 186, 190)
[resource]
resource_name = "FlowerB1"
script = ExtResource("2_37dm4")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_hkelp")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b3dfua388ub4k"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_rnm6j"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_jhn52"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_8ri3q"]
[sub_resource type="Resource" id="Resource_rnm6j"]
script = ExtResource("1_rnm6j")
position = Vector2(-6, -1)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_8ri3q")
region = Rect2(1975, 1552, 172, 190)
[resource]
resource_name = "FlowerB2"
script = ExtResource("2_jhn52")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_rnm6j")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://banfc3pgm6a0m"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_aauvf"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_vf3wc"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_xkahm"]
[sub_resource type="Resource" id="Resource_aauvf"]
script = ExtResource("1_aauvf")
position = Vector2(20, 18)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_xkahm")
region = Rect2(2125, 1307, 97, 103)
[resource]
resource_name = "FlowerC1"
script = ExtResource("2_vf3wc")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_aauvf")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dmdyj7t4g48p"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_nquip"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_x22o7"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_83m6t"]
[sub_resource type="Resource" id="Resource_nquip"]
script = ExtResource("1_nquip")
position = Vector2(-29, 2)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_83m6t")
region = Rect2(2270, 1350, 127, 75)
[resource]
resource_name = "FlowerC2"
script = ExtResource("2_x22o7")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_nquip")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bhj7j78tokt25"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_wmge1"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_fo6bt"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_76mk8"]
[sub_resource type="Resource" id="Resource_wmge1"]
script = ExtResource("1_wmge1")
position = Vector2(-8, -13)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_76mk8")
region = Rect2(2223, 1432, 93, 95)
[resource]
resource_name = "FlowerC3"
script = ExtResource("2_fo6bt")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_wmge1")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c31h25xdll8si"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_0i0bo"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_gi2kd"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_rmgxy"]
[sub_resource type="Resource" id="Resource_0i0bo"]
script = ExtResource("1_0i0bo")
position = Vector2(0, 7)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_rmgxy")
region = Rect2(1798, 1007, 136, 136)
[resource]
resource_name = "FlowerD1"
script = ExtResource("2_gi2kd")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_0i0bo")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://r5mspvasrq6y"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_t11x3"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_ojo42"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_anyn2"]
[sub_resource type="Resource" id="Resource_t11x3"]
script = ExtResource("1_t11x3")
position = Vector2(-2, 6)
attach_types = Array[int]([1])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_anyn2")
region = Rect2(1934, 1007, 141, 142)
[resource]
resource_name = "FlowerD2"
script = ExtResource("2_ojo42")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_t11x3")

View File

@@ -0,0 +1,32 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://csny38sw5yonc"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_8n3db"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_uglcj"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_luaym"]
[sub_resource type="Resource" id="Resource_8n3db"]
script = ExtResource("1_8n3db")
position = Vector2(-11, -45)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_uglcj"]
script = ExtResource("1_8n3db")
position = Vector2(-12, 31)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_luaym"]
script = ExtResource("1_8n3db")
position = Vector2(49, -103)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_luaym")
region = Rect2(1613, 279, 134, 253)
[resource]
resource_name = "FlowerE1"
script = ExtResource("2_uglcj")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_luaym")
attaches = Array[ExtResource("1_8n3db")]([SubResource("Resource_8n3db"), SubResource("Resource_uglcj")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://rlhkbddm4gdd"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_t54k4"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_sy4rg"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_tepa2"]
[sub_resource type="Resource" id="Resource_t54k4"]
script = ExtResource("1_t54k4")
position = Vector2(37, 15)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_sy4rg"]
script = ExtResource("1_t54k4")
position = Vector2(-76, -92)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_tepa2")
region = Rect2(1744, 232, 179, 245)
[resource]
resource_name = "FlowerE2"
script = ExtResource("2_sy4rg")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_sy4rg")
attaches = Array[ExtResource("1_t54k4")]([SubResource("Resource_t54k4")])

View File

@@ -0,0 +1,32 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://jbk6ibphi204"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_0e0rk"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_hps7n"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_ohwvp"]
[sub_resource type="Resource" id="Resource_0e0rk"]
script = ExtResource("1_0e0rk")
position = Vector2(30, -55)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_hps7n"]
script = ExtResource("1_0e0rk")
position = Vector2(29, 39)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_ohwvp"]
script = ExtResource("1_0e0rk")
position = Vector2(-36, -59)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_ohwvp")
region = Rect2(1923, 232, 165, 245)
[resource]
resource_name = "FlowerE3"
script = ExtResource("2_hps7n")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_ohwvp")
attaches = Array[ExtResource("1_0e0rk")]([SubResource("Resource_0e0rk"), SubResource("Resource_hps7n")])

View File

@@ -0,0 +1,32 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ckef0dno4j5mn"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_wof8s"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_skl62"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_7j46p"]
[sub_resource type="Resource" id="Resource_wof8s"]
script = ExtResource("1_wof8s")
position = Vector2(31, -48)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_skl62"]
script = ExtResource("1_wof8s")
position = Vector2(-41, -13)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_7j46p"]
script = ExtResource("1_wof8s")
position = Vector2(55, 51)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_7j46p")
region = Rect2(1588, 12, 148, 167)
[resource]
resource_name = "FlowerF1"
script = ExtResource("2_skl62")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_7j46p")
attaches = Array[ExtResource("1_wof8s")]([SubResource("Resource_wof8s"), SubResource("Resource_skl62")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dhhyh56shnure"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_6cct5"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_d5e5n"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_yyrkf"]
[sub_resource type="Resource" id="Resource_6cct5"]
script = ExtResource("1_6cct5")
position = Vector2(25, -15)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_d5e5n"]
script = ExtResource("1_6cct5")
position = Vector2(22, 67)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_yyrkf")
region = Rect2(1736, 12, 134, 167)
[resource]
resource_name = "FlowerF2"
script = ExtResource("2_d5e5n")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_d5e5n")
attaches = Array[ExtResource("1_6cct5")]([SubResource("Resource_6cct5")])

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cxgw1vgket0fw"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_ajsfl"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_nif4i"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_nif4i")
region = Rect2(1108, 8, 123, 149)
[resource]
script = ExtResource("1_ajsfl")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(27, 42)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c5gqwck2p5h5n"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_205mu"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_nlpf8"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_nlpf8")
region = Rect2(1281, 504, 72, 89)
[resource]
script = ExtResource("1_205mu")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-10, 34)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://c5fj1cw0f4mu6"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_nyyxg"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_y2fie"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_y2fie")
region = Rect2(1251, 600, 74, 95)
[resource]
script = ExtResource("1_nyyxg")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-16, 32)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dce788f0adauv"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_eaujg"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_lsafj"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_lsafj")
region = Rect2(1419, 499, 195, 198)
[resource]
script = ExtResource("1_eaujg")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-58, 75)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dd34dikqoynp3"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_faxmp"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_0me46"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_0me46")
region = Rect2(952, 728, 189, 168)
[resource]
script = ExtResource("1_faxmp")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(70, -55)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bynje6g2wvuvl"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_55x88"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_dmctu"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_dmctu")
region = Rect2(1178, 720, 110, 95)
[resource]
script = ExtResource("1_55x88")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(25, 0)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bd2op6q1masjt"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_uhia7"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_atmi3"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_atmi3")
region = Rect2(1292, 810, 104, 95)
[resource]
script = ExtResource("1_uhia7")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-32, 5)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bvajuw0r47edw"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_761dd"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_3rcv4"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_3rcv4")
region = Rect2(1390, 745, 241, 143)
[resource]
script = ExtResource("1_761dd")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-86, 28)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://qb6bftgq0n6y"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_b4uc1"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_dc8tr"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_dc8tr")
region = Rect2(1230, 79, 81, 132)
[resource]
script = ExtResource("1_b4uc1")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(1, 48)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ft112n57di0e"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_sabo0"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_uvvih"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_uvvih")
region = Rect2(1302, 15, 87, 114)
[resource]
script = ExtResource("1_sabo0")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-18, 46)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dwjj6qmcjhn68"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_fvj4t"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_akiip"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_akiip")
region = Rect2(926, 108, 226, 322)
[resource]
script = ExtResource("1_fvj4t")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(80, 133)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bkr70mstyf8pp"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_07tkv"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_uotjj"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_uotjj")
region = Rect2(1154, 230, 137, 215)
[resource]
script = ExtResource("1_07tkv")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(40, 74)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dcuwupmqt34ju"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_m3t4k"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_qfabu"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_qfabu")
region = Rect2(1306, 214, 107, 221)
[resource]
script = ExtResource("1_m3t4k")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-28, 91)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://djmidq7yq452i"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_jg4cg"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_chdp7"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_chdp7")
region = Rect2(1431, 134, 191, 287)
[resource]
script = ExtResource("1_jg4cg")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(-58, 109)
type = 2
base_attachable = true
bottom_attachable = true

View File

@@ -1,16 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://wxqxm6d5twdh"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_1f2ok"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_pu3mc"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_pu3mc")
region = Rect2(974, 502, 200, 162)
[resource]
script = ExtResource("1_1f2ok")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(73, 47)
type = 2
base_attachable = true
branch_attachable = true

View File

@@ -1,17 +0,0 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://uoikjpno37bi"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="1_g38jy"]
[ext_resource type="Texture2D" uid="uid://doo2cxxa2p70a" path="res://entities/plants/assets/sprites/plante-teste.png" id="2_unpmr"]
[sub_resource type="AtlasTexture" id="AtlasTexture_mypt2"]
atlas = ExtResource("2_unpmr")
region = Rect2(1171, 488, 94, 104)
[resource]
script = ExtResource("1_g38jy")
texture = SubResource("AtlasTexture_mypt2")
root = Vector2(23, 37)
type = 2
is_back = true
base_attachable = true
branch_attachable = true

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://wgmxpk52rg7x"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_fijpc"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_kuljt"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_gnga0"]
[sub_resource type="Resource" id="Resource_fijpc"]
script = ExtResource("1_fijpc")
position = Vector2(68, 49)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_gnga0")
region = Rect2(957, 500, 230, 170)
[resource]
resource_name = "LeafA1"
script = ExtResource("2_kuljt")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_fijpc")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cbejb0uvdke7k"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_1fplc"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_htdkc"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_oqrvj"]
[sub_resource type="Resource" id="Resource_1fplc"]
script = ExtResource("1_1fplc")
position = Vector2(-50, 70)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_oqrvj")
region = Rect2(1419, 500, 172, 205)
[resource]
resource_name = "LeafA2"
script = ExtResource("2_htdkc")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_1fplc")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dujxttu80g0lo"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_5fx8e"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_87vbh"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_1ivfe"]
[sub_resource type="Resource" id="Resource_5fx8e"]
script = ExtResource("1_5fx8e")
position = Vector2(65, -58)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_1ivfe")
region = Rect2(965, 739, 174, 158)
[resource]
resource_name = "LeafA3"
script = ExtResource("2_87vbh")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_5fx8e")

View File

@@ -0,0 +1,21 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bix3qwmsvuxs4"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_1fuxg"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_v5tsw"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_rc5w4"]
[sub_resource type="Resource" id="Resource_1fuxg"]
script = ExtResource("1_1fuxg")
position = Vector2(-83, 30)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_rc5w4")
region = Rect2(1395, 745, 222, 144)
[resource]
resource_name = "LeafA4"
script = ExtResource("2_v5tsw")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_1fuxg")

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dm7crxxg4kmw5"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_ss0ji"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_cdvqh"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_583ad"]
[sub_resource type="Resource" id="Resource_ss0ji"]
script = ExtResource("1_ss0ji")
position = Vector2(18, -24)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_cdvqh"]
script = ExtResource("1_ss0ji")
position = Vector2(90, 41)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_583ad")
region = Rect2(929, 1014, 232, 209)
[resource]
resource_name = "LeafB1"
script = ExtResource("2_cdvqh")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_cdvqh")
attaches = Array[ExtResource("1_ss0ji")]([SubResource("Resource_ss0ji")])

View File

@@ -0,0 +1,26 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://vlxrq3tw1t6m"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_xjkn4"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_oexr2"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_xjc6g"]
[sub_resource type="Resource" id="Resource_xjkn4"]
script = ExtResource("1_xjkn4")
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_oexr2"]
script = ExtResource("1_xjkn4")
position = Vector2(6, -54)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_xjc6g")
region = Rect2(1199, 1054, 157, 177)
[resource]
resource_name = "LeafB2"
script = ExtResource("2_oexr2")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_oexr2")
attaches = Array[ExtResource("1_xjkn4")]([SubResource("Resource_xjkn4")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bdwhp12xkvscr"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_fuu6r"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_a7irw"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_4s7gl"]
[sub_resource type="Resource" id="Resource_fuu6r"]
script = ExtResource("1_fuu6r")
position = Vector2(-2, -20)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_a7irw"]
script = ExtResource("1_fuu6r")
position = Vector2(-79, 13)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_4s7gl")
region = Rect2(1398, 1041, 214, 150)
[resource]
resource_name = "LeafB3"
script = ExtResource("2_a7irw")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_a7irw")
attaches = Array[ExtResource("1_fuu6r")]([SubResource("Resource_fuu6r")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dk7hp700k8iet"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_tjbks"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_3lqa5"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_kewn2"]
[sub_resource type="Resource" id="Resource_tjbks"]
script = ExtResource("1_tjbks")
position = Vector2(7, -16)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_3lqa5"]
script = ExtResource("1_tjbks")
position = Vector2(78, 45)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_kewn2")
region = Rect2(960, 1292, 193, 136)
[resource]
resource_name = "LeafC1"
script = ExtResource("2_3lqa5")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_3lqa5")
attaches = Array[ExtResource("1_tjbks")]([SubResource("Resource_tjbks")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dte3i6hma7nw5"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_vs6ro"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_bb5rl"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_urj5n"]
[sub_resource type="Resource" id="Resource_vs6ro"]
script = ExtResource("1_vs6ro")
position = Vector2(7, -7)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_bb5rl"]
script = ExtResource("1_vs6ro")
position = Vector2(12, -60)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_urj5n")
region = Rect2(1188, 1314, 171, 161)
[resource]
resource_name = "LeafC2"
script = ExtResource("2_bb5rl")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_bb5rl")
attaches = Array[ExtResource("1_vs6ro")]([SubResource("Resource_vs6ro")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://p2mveyriuh47"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_wnn4x"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_1g6ks"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_vuo6k"]
[sub_resource type="Resource" id="Resource_wnn4x"]
script = ExtResource("1_wnn4x")
position = Vector2(0, -17)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_1g6ks"]
script = ExtResource("1_wnn4x")
position = Vector2(-78, 14)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_vuo6k")
region = Rect2(1396, 1302, 215, 121)
[resource]
resource_name = "LeafC3"
script = ExtResource("2_1g6ks")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_1g6ks")
attaches = Array[ExtResource("1_wnn4x")]([SubResource("Resource_wnn4x")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://bs66avdkmbxjm"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_41qsi"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_aaw8d"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_ndrf0"]
[sub_resource type="Resource" id="Resource_41qsi"]
script = ExtResource("1_41qsi")
position = Vector2(10, 48)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_aaw8d"]
script = ExtResource("1_41qsi")
position = Vector2(11, 94)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_ndrf0")
region = Rect2(312, 753, 97, 248)
[resource]
resource_name = "LeafD1"
script = ExtResource("2_aaw8d")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_aaw8d")
attaches = Array[ExtResource("1_41qsi")]([SubResource("Resource_41qsi")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://cv2iad0m88cdr"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_vvmno"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_gf14b"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_aa8jx"]
[sub_resource type="Resource" id="Resource_vvmno"]
script = ExtResource("1_vvmno")
position = Vector2(-83, -8)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_gf14b"]
script = ExtResource("1_vvmno")
position = Vector2(-137, 0)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_aa8jx")
region = Rect2(110, 1011, 344, 138)
[resource]
resource_name = "LeafD2"
script = ExtResource("2_gf14b")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_gf14b")
attaches = Array[ExtResource("1_vvmno")]([SubResource("Resource_vvmno")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://b806ml8dd7gnn"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_qaivx"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_b3ef0"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_1exdb"]
[sub_resource type="Resource" id="Resource_qaivx"]
script = ExtResource("1_qaivx")
position = Vector2(-45, 68)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_b3ef0"]
script = ExtResource("1_qaivx")
position = Vector2(-102, 144)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_1exdb")
region = Rect2(507, 816, 288, 357)
[resource]
resource_name = "LeafD3"
script = ExtResource("2_b3ef0")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_b3ef0")
attaches = Array[ExtResource("1_qaivx")]([SubResource("Resource_qaivx")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://ciga0npobiqc4"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_wr80a"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_tcuv0"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_tnyml"]
[sub_resource type="Resource" id="Resource_wr80a"]
script = ExtResource("1_wr80a")
position = Vector2(-14, -31)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_tcuv0"]
script = ExtResource("1_wr80a")
position = Vector2(-49, -77)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_tnyml")
region = Rect2(455, 1178, 166, 219)
[resource]
resource_name = "LeafD4"
script = ExtResource("2_tcuv0")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_tcuv0")
attaches = Array[ExtResource("1_wr80a")]([SubResource("Resource_wr80a")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://clh2iduja5emm"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_3ipkr"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_35amt"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_qvwtt"]
[sub_resource type="Resource" id="Resource_3ipkr"]
script = ExtResource("1_3ipkr")
position = Vector2(-51, -42)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_35amt"]
script = ExtResource("1_3ipkr")
position = Vector2(-90, -69)
attach_types = Array[int]([0, 2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_qvwtt")
region = Rect2(664, 1180, 221, 187)
[resource]
resource_name = "LeafD5"
script = ExtResource("2_35amt")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_35amt")
attaches = Array[ExtResource("1_3ipkr")]([SubResource("Resource_3ipkr")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://be17y7clvf88e"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_oy0ue"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_6xgob"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_y6h75"]
[sub_resource type="Resource" id="Resource_oy0ue"]
script = ExtResource("1_oy0ue")
position = Vector2(-27, 8)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_6xgob"]
script = ExtResource("1_oy0ue")
position = Vector2(70, 55)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_y6h75")
region = Rect2(345, 1461, 203, 177)
[resource]
resource_name = "LeafE1"
script = ExtResource("2_6xgob")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_6xgob")
attaches = Array[ExtResource("1_oy0ue")]([SubResource("Resource_oy0ue")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://dw7wdihxxy0uf"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_pi0vi"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_5mv7l"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_enxeu"]
[sub_resource type="Resource" id="Resource_pi0vi"]
script = ExtResource("1_pi0vi")
position = Vector2(17, 2)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_5mv7l"]
script = ExtResource("1_pi0vi")
position = Vector2(-72, 60)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_enxeu")
region = Rect2(574, 1501, 204, 180)
[resource]
resource_name = "LeafE2"
script = ExtResource("2_5mv7l")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_5mv7l")
attaches = Array[ExtResource("1_pi0vi")]([SubResource("Resource_pi0vi")])

View File

@@ -0,0 +1,27 @@
[gd_resource type="Resource" script_class="PlantPart" format=3 uid="uid://3yi8hk73s5mm"]
[ext_resource type="Script" uid="uid://co46ywm8bgnfh" path="res://entities/plants/scripts/texture_builder/plant_attach.gd" id="1_40tq5"]
[ext_resource type="Script" uid="uid://b3jwglylqdqtw" path="res://entities/plants/scripts/texture_builder/plant_part.gd" id="2_4ru6m"]
[ext_resource type="Texture2D" uid="uid://b7nfpxk8nfnov" path="res://entities/plants/assets/sprites/asset-plante-fin.png" id="3_m6f42"]
[sub_resource type="Resource" id="Resource_40tq5"]
script = ExtResource("1_40tq5")
position = Vector2(1, 2)
attach_types = Array[int]([1])
[sub_resource type="Resource" id="Resource_4ru6m"]
script = ExtResource("1_40tq5")
position = Vector2(1, 2)
attach_types = Array[int]([2])
[sub_resource type="AtlasTexture" id="AtlasTexture_yh7e0"]
atlas = ExtResource("3_m6f42")
region = Rect2(397, 1652, 177, 170)
[resource]
resource_name = "LeafE3"
script = ExtResource("2_4ru6m")
texture = SubResource("AtlasTexture_yh7e0")
type = 1
root = SubResource("Resource_4ru6m")
attaches = Array[ExtResource("1_40tq5")]([SubResource("Resource_40tq5")])

View File

@@ -13,6 +13,8 @@ func generate_plants():
var plant_data: PlantData = PlantData.new(plant_position)
plant_data.day = plant_data.get_growing_time()
plant_data.mutations.append(plant_data.archetype.available_mutations.pick_random())
plant_data.mutations.append(plant_data.archetype.available_mutations.pick_random())
plant_data.mutations.append(plant_data.archetype.available_mutations.pick_random())
var plant: Plant = Plant.new(plant_data)
add_child(plant)
plant.global_position = plant_position

View File

@@ -0,0 +1,7 @@
extends Resource
class_name PlantAttach
enum AttachType {ORANGE_ATTACH, BLUE_ATTACH, PINK_ATTACH}
@export var position: Vector2
@export var attach_types: Array[AttachType]

View File

@@ -0,0 +1 @@
uid://co46ywm8bgnfh

View File

@@ -0,0 +1,10 @@
extends Node2D
class_name PlantAttachBuilder
@export var attach_types: Array[PlantAttach.AttachType]
static func to_plant_attach(builder: PlantAttachBuilder) -> PlantAttach:
var plant_attach := PlantAttach.new()
plant_attach.position = builder.position
plant_attach.attach_types = builder.attach_types
return plant_attach

View File

@@ -0,0 +1 @@
uid://d01kj3twwcrmu

View File

@@ -4,23 +4,12 @@ class_name PlantPart
enum PartType {BASE_PART, BRANCH_PART, LEAF_PART, FLOWER_PART}
@export var texture: Texture
@export var root: Vector2
@export var attaches: Array[Vector2]
@export var bottom_attaches: Array[Vector2]
@export var type: PartType
@export var root: PlantAttach
@export var attaches: Array[PlantAttach] # array of vec2
@export var is_back: bool
@export var base_attachable: bool
@export var bottom_attachable: bool
@export var branch_attachable: bool
func init(textute_arg: Texture, root_arg: Vector2, attaches_arg: Array[Vector2], bottom_attaches_arg: Array[Vector2], type_arg: PartType, is_back_arg: bool, base_attachable_arg: bool, bottom_attachable_arg: bool, branch_attachable_arg: bool) -> void:
func init(textute_arg: Texture, type_arg: PartType, root_arg: PlantAttach, attaches_arg: Array[PlantAttach]) -> void:
texture = textute_arg
type = type_arg
root = root_arg
attaches = attaches_arg
bottom_attaches = bottom_attaches_arg
type = type_arg
is_back = is_back_arg
base_attachable = base_attachable_arg
bottom_attachable = bottom_attachable_arg
branch_attachable = branch_attachable_arg

View File

@@ -1,82 +1,55 @@
@tool
extends Sprite2D
class_name PlantPartScene
class_name PlantPartBuilder
@export var part_name: String
@export_tool_button("Load resource") var load_resource_button = load_resource
@export var root: Node2D
@export var attaches: Node
@export var bottom_attaches: Node
@export var type: PlantPart.PartType
@export var is_back: bool
@export var base_attachable: bool
@export var bottom_attachable: bool
@export var branch_attachable: bool
@export var root: PlantAttachBuilder
@export var attaches: Node
@export_tool_button("Save as resource") var save_as_resource_button = save_as_resource
func load_resource():
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
print("Loading: ", part_name, " at: ", destination)
var plant_part = ResourceLoader.load(destination)
if plant_part is PlantPart:
root.position = plant_part.root
var plant_part: PlantPart = ResourceLoader.load(destination) as PlantPart
if plant_part:
texture = plant_part.texture
type = plant_part.type
root.position = plant_part.root.position
root.attach_types = plant_part.root.attach_types
var attaches_children := attaches.get_children()
for i in maxi(attaches_children.size(), plant_part.attaches.size()):
if i < attaches_children.size() && i < plant_part.attaches.size():
attaches_children[i].position = plant_part.attaches[i]
attaches_children[i].position = plant_part.attaches[i].position
elif i >= attaches_children.size():
var new_child = Node2D.new()
var new_child = PlantAttachBuilder.new()
new_child.name = "attach" + str(i)
new_child.position = plant_part.attaches[i]
new_child.position = plant_part.attaches[i].position
new_child.attach_types = plant_part.attaches[i].attach_types
attaches.add_child(new_child)
new_child.set_owner(self )
elif i >= plant_part.attaches.size():
attaches_children[i].free()
else:
printerr("Invalid code path")
var bottom_attaches_children := bottom_attaches.get_children()
for i in maxi(bottom_attaches_children.size(), plant_part.bottom_attaches.size()):
if i < bottom_attaches_children.size() && i < plant_part.bottom_attaches.size():
bottom_attaches_children[i].position = plant_part.bottom_attaches[i]
elif i >= bottom_attaches_children.size():
var new_child = Node2D.new()
new_child.name = "bottom_attach" + str(i)
new_child.position = plant_part.bottom_attaches[i]
bottom_attaches.add_child(new_child)
new_child.set_owner(self )
elif i >= plant_part.bottom_attaches.size():
bottom_attaches_children[i].free()
else:
printerr("Invalid code path")
type = plant_part.type
is_back = plant_part.is_back
base_attachable = plant_part.base_attachable
bottom_attachable = plant_part.bottom_attachable
branch_attachable = plant_part.branch_attachable
else:
printerr("Error loading ", part_name)
func save_as_resource():
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
print("Saving: ", part_name, " at: ", destination)
var attaches_vec2: Array[Vector2]
var attaches_vec2: Array[PlantAttach]
for attach in attaches.get_children():
attaches_vec2.append(attach.position)
var bottom_attaches_vec2: Array[Vector2]
for bottom_attach in bottom_attaches.get_children():
bottom_attaches_vec2.append(bottom_attach.position)
attaches_vec2.append(PlantAttachBuilder.to_plant_attach(attach))
var plant_part = PlantPart.new()
plant_part.init(texture, root.position, attaches_vec2, bottom_attaches_vec2, type, is_back, base_attachable, bottom_attachable, branch_attachable)
var err := ResourceSaver.save(plant_part, destination)
plant_part.init(texture, type, PlantAttachBuilder.to_plant_attach(root), attaches_vec2)
plant_part.resource_name = part_name
var err := ResourceSaver.save(plant_part, destination, ResourceSaver.FLAG_REPLACE_SUBRESOURCE_PATHS)
if err != OK:
printerr("Error saving resource: ", error_string(err))
else:

View File

@@ -16,6 +16,20 @@ const PLACEHOLDER_GROWING_TEXTURE: Texture = preload("res://entities/plants/asse
var rng := RandomNumberGenerator.new()
func random_ind(array: Array) -> int:
return rng.randi_range(0, array.size() - 1)
func pick_random(array: Array) -> Variant:
return array[random_ind(array)]
func shuffle(array: Array):
var available_ind := 0
for i in range(array.size()):
var temp = array[available_ind]
var picked_ind := rng.randi_range(available_ind, array.size() - 1)
array[available_ind] = array[picked_ind]
array[picked_ind] = temp
func build_seed_texture(_random_seed: int) -> Texture:
return PLACEHOLDER_SEED_TEXTURE
@@ -25,13 +39,10 @@ func build_plant_texture(plant_data: PlantData) -> Texture:
var mature_texture: Texture = PLACEHOLDER_MATURE_TEXTURE
var mature_image: Image = Image.create_empty(IMAGE_WIDTH, IMAGE_HEIGHT, false, Image.FORMAT_RGBA8)
var mature_image_center: Vector2i = 0.5 * mature_image.get_size()
var branch_parts: Array[PlantPart]
var base_part: PlantPart
var available_base_attaches: Array[Vector2]
var available_base_bottom_attach: Array[Vector2]
var branch_attaches: Array[Vector2]
var branch_root: Array[Vector2]
var branch_parent_attach: Array[Vector2]
var base_image_coord: Vector2i
var available_attaches: Array[PlantAttach]
var parent_image_coords: Array[Vector2]
var parts_to_place: Array[PlantPart]
match plant_data.get_state():
@@ -46,13 +57,14 @@ func build_plant_texture(plant_data: PlantData) -> Texture:
var base_image = base_part.texture.get_image()
var base_image_center: Vector2i = 0.5 * base_image.get_size()
mature_image.blend_rect(base_image, Rect2i(Vector2i.ZERO, base_image.get_size()), mature_image_center - base_image_center - Vector2i(base_part.root))
base_image_coord = mature_image_center - Vector2i(base_part.root.position)
mature_image.blend_rect(base_image, Rect2i(Vector2i.ZERO, base_image.get_size()), base_image_coord - base_image_center)
if branches.size() == 0:
printerr("No branches in archetype")
# var branch_parts: Array[PlantPart] = parts_archetype_associations[plant_archetype].branches
for i in n_branches:
branch_parts.append(pick_random(branches))
parts_to_place.append(pick_random(branches))
for m in plant_data.mutations:
print("mutations: ", m.id)
@@ -73,7 +85,8 @@ func build_plant_texture(plant_data: PlantData) -> Texture:
var base_image = base_part.texture.get_image()
var base_image_center: Vector2i = 0.5 * base_image.get_size()
mature_image.blend_rect(base_image, Rect2i(Vector2i.ZERO, base_image.get_size()), mature_image_center - base_image_center - Vector2i(base_part.root))
base_image_coord = mature_image_center - Vector2i(base_part.root.position)
mature_image.blend_rect(base_image, Rect2i(Vector2i.ZERO, base_image.get_size()), base_image_coord - base_image_center)
for m in plant_data.mutations:
print("mutations: ", m.id)
@@ -85,74 +98,34 @@ func build_plant_texture(plant_data: PlantData) -> Texture:
print("Not handled state")
return null
available_base_attaches = base_part.attaches.duplicate()
available_base_bottom_attach = base_part.bottom_attaches.duplicate()
assert(branch_parts.size() <= base_part.attaches.size(),
str("More branches (", branch_parts.size(), ") than base attaches (", base_part.attaches.size(), ")"))
for branch in branch_parts:
if available_base_attaches.size() == 0:
break
var ind: int = rng.randi_range(0, available_base_attaches.size() - 1)
var attach: Vector2 = available_base_attaches.pop_at(ind)
var branch_image: Image = branch.texture.get_image()
var branch_image_center: Vector2i = 0.5 * branch_image.get_size()
mature_image.blend_rect(branch_image, Rect2i(Vector2i.ZERO, branch.texture.get_size()), mature_image_center - branch_image_center + Vector2i(attach - branch.root - base_part.root))
for branch_attach in branch.attaches:
branch_attaches.append(branch_attach)
branch_root.append(branch.root)
branch_parent_attach.append(attach)
if parts_to_place.size() > branch_attaches.size() + base_part.attaches.size() - branch_parts.size():
printerr("ERROR generating : Parts to place : ", parts_to_place.size(),
"; Branch Attaches : ", branch_attaches.size(),
"; Base attaches : ", base_part.attaches.size(),
"; Branch parts : ", branch_parts.size())
available_attaches = base_part.attaches.duplicate()
parent_image_coords.resize(available_attaches.size())
parent_image_coords.fill(base_image_coord)
for part: PlantPart in parts_to_place:
print("create part")
var attach: Vector2
var parent_root: Vector2
var chosen_attach_type: int = 0
var attachables: Array[int]
if part.base_attachable && available_base_attaches.size() > 0:
attachables.append(1)
if part.bottom_attachable && available_base_bottom_attach.size() > 0:
attachables.append(2)
if part.branch_attachable && branch_attaches.size() > 0:
attachables.append(3)
# assert(attachables.size() > 0)
if attachables.size() == 0:
print("No attach available")
print("Add part : ", part.resource_name)
var ind := find_random_matching_attach_ind(part.root, available_attaches)
if ind == -1:
printerr("No attach found")
continue
chosen_attach_type = pick_random(attachables)
if chosen_attach_type == 1: # base attach
var ind := rng.randi_range(0, available_base_attaches.size() - 1)
attach = available_base_attaches.pop_at(ind)
parent_root = base_part.root
elif chosen_attach_type == 2: # bottom
var ind := rng.randi_range(0, available_base_bottom_attach.size() - 1)
attach = available_base_bottom_attach.pop_at(ind)
parent_root = base_part.root
elif chosen_attach_type == 3: # branch
var ind := rng.randi_range(0, branch_attaches.size() - 1)
attach = branch_attaches.pop_at(ind) - branch_root.pop_at(ind) + branch_parent_attach.pop_at(ind)
parent_root = base_part.root
var attach: PlantAttach = available_attaches.pop_at(ind)
var parent_image_coord: Vector2i = parent_image_coords.pop_at(ind)
var part_image: Image = part.texture.get_image()
var part_image_center: Vector2i = 0.5 * part_image.get_size()
var relative_root_centered_pos: Vector2 = Vector2(mature_image_center - part_image_center) - part.root
mature_image.blend_rect(part_image, Rect2i(Vector2i.ZERO, part.texture.get_size()), relative_root_centered_pos + attach - parent_root)
var part_image_coord: Vector2i = parent_image_coord + Vector2i(attach.position - part.root.position)
mature_image.blend_rect(part_image, Rect2i(Vector2i.ZERO, part.texture.get_size()), part_image_coord - part_image_center)
for sub_attach in part.attaches:
available_attaches.append(sub_attach)
parent_image_coords.append(part_image_coord)
if rng.randi() % 2 == 0:
mature_image.flip_x()
mature_texture = ImageTexture.create_from_image(mature_image)
return mature_texture
func pick_random(array: Array):
return array[rng.randi_range(0, array.size() - 1)]
## returns -1 if not found
func find_random_matching_attach_ind(attach_to_match: PlantAttach, array: Array[PlantAttach]) -> int:
var indices: Array = range(array.size())
shuffle(indices)
return indices.find_custom(func(i): return array[i].attach_types.any(func(type): return attach_to_match.attach_types.has(type)))

View File

@@ -9,11 +9,12 @@ region = Rect2(536, 22.5, 210, 210)
[node name="TestSprites" type="Node2D" unique_id=1624731692]
script = ExtResource("1_wqioj")
n_plants_to_generate = 3
space_between_plants = 125.0
n_plants_to_generate = 4
space_between_plants = 100.0
[node name="Camera2D" type="Camera2D" parent="." unique_id=628954249]
position = Vector2(123, -46)
zoom = Vector2(2.26, 2.26)
[node name="MossContaminationAtlasTexture" type="Sprite2D" parent="." unique_id=1497811487]
position = Vector2(255, -66)