[gd_scene format=3 uid="uid://bcx1d8kvp7o0h"]

[ext_resource type="Texture2D" uid="uid://bhdecga15imvk" path="res://Assets/Spritesheets/Trees/Big_Spruce_tree.png" id="1_xun88"]
[ext_resource type="PackedScene" uid="uid://d24gcv3umq60k" path="res://Scenes/Objects/Occlusion/occlusion_culler.tscn" id="2_45i4c"]
[ext_resource type="Material" uid="uid://1shsptwu7rdt" path="res://Resources/Materials/tree_sway.tres" id="2_bbkr4"]
[ext_resource type="Script" uid="uid://vmyfl4obus88" path="res://Scripts/Objects/Trees/leaf_spawner.gd" id="3_13veg"]
[ext_resource type="Texture2D" uid="uid://ckvfo6bl606hp" path="res://Assets/Spritesheets/Trees/Spruce_Needle_Particle.png" id="4_34ibr"]

[sub_resource type="CircleShape2D" id="CircleShape2D_13veg"]
radius = 15.033297

[sub_resource type="CircleShape2D" id="CircleShape2D_34ibr"]
radius = 8.0

[sub_resource type="CircleShape2D" id="CircleShape2D_bbkr4"]
radius = 3.0

[sub_resource type="AtlasTexture" id="AtlasTexture_5otsd"]
atlas = ExtResource("1_xun88")
region = Rect2(64, 0, 64, 80)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_0srx6"]
size = Vector2(16, 10)

[node name="Tree 03" type="StaticBody2D" unique_id=2046930104]
y_sort_enabled = true

[node name="Occlusion Culler" parent="." unique_id=1362480066 node_paths=PackedStringArray("nodes_to_occlude") instance=ExtResource("2_45i4c")]
nodes_to_occlude = [NodePath("../Sprite2D")]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Occlusion Culler" unique_id=585236031]
shape = SubResource("CircleShape2D_13veg")

[node name="CollisionShape2D2" type="CollisionShape2D" parent="Occlusion Culler" unique_id=1731688944]
position = Vector2(0, -18)
shape = SubResource("CircleShape2D_34ibr")

[node name="CollisionShape2D3" type="CollisionShape2D" parent="Occlusion Culler" unique_id=424659978]
position = Vector2(0, -32)
shape = SubResource("CircleShape2D_bbkr4")

[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1420512565]
y_sort_enabled = true
material = ExtResource("2_bbkr4")
position = Vector2(0, 24)
texture = SubResource("AtlasTexture_5otsd")
offset = Vector2(0, -24)

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=870152657]
position = Vector2(0, 19)
shape = SubResource("RectangleShape2D_0srx6")

[node name="Leaf Spawner" type="Node2D" parent="." unique_id=1308634781 node_paths=PackedStringArray("spawn_markers", "destination_markers")]
script = ExtResource("3_13veg")
leaf_texture = ExtResource("4_34ibr")
spawn_markers = NodePath("Spawn Markers")
destination_markers = NodePath("Destination Markers")

[node name="Spawn Markers" type="Node2D" parent="Leaf Spawner" unique_id=992261793]

[node name="Marker2D" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=1312492144]
position = Vector2(-14, 5)

[node name="Marker2D2" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=1942462835]
position = Vector2(-11, -4)

[node name="Marker2D3" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=810574820]
position = Vector2(-7, -15)

[node name="Marker2D4" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=291879085]
position = Vector2(-3, -29)

[node name="Marker2D5" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=1559139972]
position = Vector2(4, -30)

[node name="Marker2D6" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=842452431]
position = Vector2(7, -22)

[node name="Marker2D7" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=947896890]
position = Vector2(10, -12)

[node name="Marker2D8" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=1254697051]
position = Vector2(11, 1)

[node name="Marker2D9" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=598463156]
position = Vector2(13, 12)

[node name="Marker2D10" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=1632041472]
position = Vector2(7, 14)

[node name="Marker2D11" type="Marker2D" parent="Leaf Spawner/Spawn Markers" unique_id=705248658]
position = Vector2(-7, 14)

[node name="Destination Markers" type="Node2D" parent="Leaf Spawner" unique_id=1084196582]

[node name="Marker2D" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1434626655]
position = Vector2(-17, 19)

[node name="Marker2D2" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1985496050]
position = Vector2(-32, 27)

[node name="Marker2D3" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=612599198]
position = Vector2(-30, 15)

[node name="Marker2D4" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1750692117]
position = Vector2(-19, 33)

[node name="Marker2D5" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1637274691]
position = Vector2(-7, 38)

[node name="Marker2D6" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=270534968]
position = Vector2(-1, 30)

[node name="Marker2D7" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1580580484]
position = Vector2(-8, 27)

[node name="Marker2D8" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1666879158]
position = Vector2(14, 38)

[node name="Marker2D9" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=33388155]
position = Vector2(12, 30)

[node name="Marker2D10" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1245617655]
position = Vector2(24, 25)

[node name="Marker2D11" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=709006321]
position = Vector2(19, 20)

[node name="Marker2D12" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=602455411]
position = Vector2(28, 14)

[node name="Marker2D13" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=264453249]
position = Vector2(35, 28)

[node name="Marker2D14" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=2036567999]
position = Vector2(28, 36)

[node name="Marker2D15" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1663646612]
position = Vector2(-26, 34)

[node name="Marker2D16" type="Marker2D" parent="Leaf Spawner/Destination Markers" unique_id=1858656621]
position = Vector2(-26, 34)
