summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Objects/Tree.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-04-27 20:06:49 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-04-27 20:06:49 +0200
commit81cc6f1d22677dd4a60aa9377c91b291bf10e523 (patch)
tree9c22712a9746ed0598a44be6e88727d021436860 /Scenes/Entities/Objects/Tree.tscn
parentc8a316e4b8987dad963656a34665fa0e23dedcb1 (diff)
update
Diffstat (limited to 'Scenes/Entities/Objects/Tree.tscn')
-rw-r--r--Scenes/Entities/Objects/Tree.tscn62
1 files changed, 62 insertions, 0 deletions
diff --git a/Scenes/Entities/Objects/Tree.tscn b/Scenes/Entities/Objects/Tree.tscn
new file mode 100644
index 0000000..fdffec1
--- /dev/null
+++ b/Scenes/Entities/Objects/Tree.tscn
@@ -0,0 +1,62 @@
+[gd_scene load_steps=6 format=3 uid="uid://c2mescm8l71w6"]
+
+[ext_resource type="Script" path="res://Scenes/Entities/Objects/Tree.gd" id="1_8ww5x"]
+[ext_resource type="Texture2D" uid="uid://bxl3lqlm22eem" path="res://Assets/Stages/core_outdoor.png" id="1_td4yb"]
+
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_iw7db"]
+size = Vector2(12, 17)
+
+[sub_resource type="SegmentShape2D" id="SegmentShape2D_kp5bv"]
+a = Vector2(0, -18)
+b = Vector2(0, 1)
+
+[sub_resource type="SegmentShape2D" id="SegmentShape2D_yfa0c"]
+a = Vector2(0, -18)
+b = Vector2(0, 1)
+
+[node name="Tree" type="StaticBody2D"]
+texture_filter = 1
+collision_layer = 8
+collision_mask = 32
+script = ExtResource("1_8ww5x")
+
+[node name="SpriteStanding" type="Node2D" parent="."]
+
+[node name="Sprite2D" type="Sprite2D" parent="SpriteStanding"]
+z_index = -1
+texture = ExtResource("1_td4yb")
+region_enabled = true
+region_rect = Rect2(384, 464, 16, 16)
+
+[node name="Sprite2D2" type="Sprite2D" parent="SpriteStanding"]
+position = Vector2(0, -16)
+texture = ExtResource("1_td4yb")
+region_enabled = true
+region_rect = Rect2(384, 448, 16, 16)
+
+[node name="SpriteFallen" type="Node2D" parent="."]
+visible = false
+
+[node name="Sprite2D" type="Sprite2D" parent="SpriteFallen"]
+z_index = -1
+position = Vector2(0, -8)
+texture = ExtResource("1_td4yb")
+region_enabled = true
+region_rect = Rect2(384, 448, 16, 32)
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+position = Vector2(0, -1.5)
+shape = SubResource("RectangleShape2D_iw7db")
+
+[node name="Edges" type="StaticBody2D" parent="."]
+process_mode = 4
+collision_layer = 8
+collision_mask = 0
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Edges"]
+position = Vector2(10, -3)
+shape = SubResource("SegmentShape2D_kp5bv")
+
+[node name="CollisionShape2D2" type="CollisionShape2D" parent="Edges"]
+position = Vector2(-10, -3)
+shape = SubResource("SegmentShape2D_yfa0c")