37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
[gd_scene format=3 uid="uid://cc3qat6un2323"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://xygpf7c886pj" path="res://Assets/Spritesheets/Trees/Medium_Oak_Tree.png" id="1_i2ia5"]
|
|
[ext_resource type="PackedScene" uid="uid://d24gcv3umq60k" path="res://Scenes/Objects/Occlusion/occlusion_culler.tscn" id="1_jbed0"]
|
|
[ext_resource type="Material" uid="uid://1shsptwu7rdt" path="res://Resources/Materials/tree_sway.tres" id="2_o0u4i"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_jbed0"]
|
|
radius = 12.0
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5otsd"]
|
|
atlas = ExtResource("1_i2ia5")
|
|
region = Rect2(32, 0, 32, 48)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0srx6"]
|
|
size = Vector2(6, 3)
|
|
|
|
[node name="Tree 01" 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("1_jbed0")]
|
|
nodes_to_occlude = [NodePath("../Sprite2D")]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Occlusion Culler" unique_id=731605527]
|
|
position = Vector2(0, -10)
|
|
shape = SubResource("CircleShape2D_jbed0")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1420512565]
|
|
y_sort_enabled = true
|
|
material = ExtResource("2_o0u4i")
|
|
position = Vector2(0, 8)
|
|
texture = SubResource("AtlasTexture_5otsd")
|
|
offset = Vector2(0, -8)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=870152657]
|
|
position = Vector2(0, 6.5)
|
|
shape = SubResource("RectangleShape2D_0srx6")
|