summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies/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/Enemies/Tree.tscn
parentc8a316e4b8987dad963656a34665fa0e23dedcb1 (diff)
update
Diffstat (limited to 'Scenes/Entities/Enemies/Tree.tscn')
-rw-r--r--Scenes/Entities/Enemies/Tree.tscn175
1 files changed, 175 insertions, 0 deletions
diff --git a/Scenes/Entities/Enemies/Tree.tscn b/Scenes/Entities/Enemies/Tree.tscn
new file mode 100644
index 0000000..aedc79f
--- /dev/null
+++ b/Scenes/Entities/Enemies/Tree.tscn
@@ -0,0 +1,175 @@
+[gd_scene load_steps=28 format=3 uid="uid://bjgcrqdntj5hl"]
+
+[ext_resource type="Script" path="res://Scenes/Entities/Enemies/Tree.gd" id="1_ktvfx"]
+[ext_resource type="Texture2D" uid="uid://bv1rs3ndtyqfx" path="res://Assets/Enemies/Tree_death.png" id="2_0yhl7"]
+[ext_resource type="Texture2D" uid="uid://cpl4n4jmgiwrv" path="res://Assets/Enemies/Enemy_death_01_01.png" id="3_2k0yc"]
+[ext_resource type="Texture2D" uid="uid://q7a7i15t8wpt" path="res://Assets/Enemies/Tree_spawn_10.png" id="3_7e4uh"]
+[ext_resource type="Texture2D" uid="uid://61nopmi2r6o2" path="res://Assets/Enemies/Tree_02.png" id="4_7rbqf"]
+[ext_resource type="Texture2D" uid="uid://d2gk5amafhctu" path="res://Assets/Enemies/Enemy_death_01_02.png" id="4_15pyx"]
+[ext_resource type="Texture2D" uid="uid://dqwxq3g3aph4i" path="res://Assets/Enemies/Enemy_death_01_03.png" id="5_7xj1s"]
+[ext_resource type="Texture2D" uid="uid://cjapfj57h55t3" path="res://Assets/Enemies/Tree_01.png" id="5_r5my6"]
+[ext_resource type="Texture2D" uid="uid://uoj5222vlq8q" path="res://Assets/Enemies/Enemy_death_01_04.png" id="6_5dleo"]
+[ext_resource type="Texture2D" uid="uid://divyusx4566qu" path="res://Assets/Enemies/Tree_spawn_01.png" id="6_uumup"]
+[ext_resource type="Texture2D" uid="uid://cxx2vv1ohiw07" path="res://Assets/Enemies/Enemy_death_01_05.png" id="7_n5hht"]
+[ext_resource type="Texture2D" uid="uid://bydf14nlpwcdx" path="res://Assets/Enemies/Tree_spawn_02.png" id="7_ogluj"]
+[ext_resource type="Texture2D" uid="uid://rx27eawdqihg" path="res://Assets/Enemies/Tree_spawn_03.png" id="8_lr37s"]
+[ext_resource type="Texture2D" uid="uid://b6raflxfxgafu" path="res://Assets/Enemies/Tree_spawn_04.png" id="9_4yykj"]
+[ext_resource type="Texture2D" uid="uid://cpyqewp3he31s" path="res://Assets/Enemies/Tree_spawn_05.png" id="10_1nh66"]
+[ext_resource type="Texture2D" uid="uid://cus616lvay47x" path="res://Assets/Enemies/Tree_spawn_06.png" id="11_qdau7"]
+[ext_resource type="Texture2D" uid="uid://lxqkmqie5vx1" path="res://Assets/Enemies/Tree_spawn_07.png" id="12_wsl7r"]
+[ext_resource type="Texture2D" uid="uid://psbdavhnvvn4" path="res://Assets/Enemies/Tree_spawn_08.png" id="13_2wcu3"]
+[ext_resource type="Texture2D" uid="uid://dfbuswdlfqylq" path="res://Assets/Enemies/Tree_spawn_09.png" id="14_adw3w"]
+[ext_resource type="Texture2D" uid="uid://brqywegqyotsh" path="res://Assets/Enemies/Tree_spawn_11.png" id="15_tpc2s"]
+[ext_resource type="Texture2D" uid="uid://bwfe51nka048i" path="res://Assets/Enemies/Tree_spawn_12.png" id="16_vf63h"]
+[ext_resource type="PackedScene" uid="uid://cq7yj2av01tqd" path="res://Scenes/Entities/Enemies/Components/Movement.tscn" id="17_wlky1"]
+[ext_resource type="PackedScene" uid="uid://ce3vv2pod6auc" path="res://Scenes/Entities/Enemies/Components/Collision.tscn" id="18_kpty6"]
+[ext_resource type="PackedScene" uid="uid://b3i372vgdbxk" path="res://Scenes/Entities/Enemies/Components/Health.tscn" id="19_u7yi8"]
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_c5ryj"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_0yhl7")
+}],
+"loop": false,
+"name": &"death",
+"speed": 1.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("3_2k0yc")
+}, {
+"duration": 1.0,
+"texture": ExtResource("4_15pyx")
+}, {
+"duration": 1.0,
+"texture": ExtResource("5_7xj1s")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_5dleo")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_n5hht")
+}],
+"loop": true,
+"name": &"death_post",
+"speed": 2.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("3_7e4uh")
+}, {
+"duration": 1.0,
+"texture": ExtResource("4_7rbqf")
+}, {
+"duration": 1.0,
+"texture": ExtResource("5_r5my6")
+}, {
+"duration": 1.0,
+"texture": ExtResource("4_7rbqf")
+}],
+"loop": true,
+"name": &"default",
+"speed": 6.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("6_uumup")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_ogluj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_uumup")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_ogluj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("6_uumup")
+}, {
+"duration": 1.0,
+"texture": ExtResource("7_ogluj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("8_lr37s")
+}, {
+"duration": 1.0,
+"texture": ExtResource("9_4yykj")
+}, {
+"duration": 1.0,
+"texture": ExtResource("10_1nh66")
+}, {
+"duration": 1.0,
+"texture": ExtResource("11_qdau7")
+}, {
+"duration": 1.0,
+"texture": ExtResource("12_wsl7r")
+}, {
+"duration": 1.0,
+"texture": ExtResource("13_2wcu3")
+}, {
+"duration": 1.0,
+"texture": ExtResource("14_adw3w")
+}, {
+"duration": 1.0,
+"texture": ExtResource("3_7e4uh")
+}, {
+"duration": 1.0,
+"texture": ExtResource("15_tpc2s")
+}, {
+"duration": 1.0,
+"texture": ExtResource("16_vf63h")
+}],
+"loop": false,
+"name": &"spawn",
+"speed": 6.0
+}]
+
+[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_u8qfj"]
+height = 22.0
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_ymwt3"]
+radius = 48.0
+
+[node name="Tree" type="CharacterBody2D"]
+collision_layer = 16
+collision_mask = 188
+script = ExtResource("1_ktvfx")
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
+position = Vector2(0, -8)
+sprite_frames = SubResource("SpriteFrames_c5ryj")
+animation = &"spawn"
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+position = Vector2(0, -8)
+shape = SubResource("CapsuleShape2D_u8qfj")
+
+[node name="Movement" parent="." instance=ExtResource("17_wlky1")]
+entityPath = NodePath("..")
+spritePath = NodePath("../AnimatedSprite2D")
+SPEED = 24
+timer_time = 2.0
+follows = true
+follow_chance = 50
+
+[node name="Collision" parent="." instance=ExtResource("18_kpty6")]
+entityPath = NodePath("..")
+collision_shape_path = NodePath("../CollisionShape2D")
+component_health_path = NodePath("../Health")
+
+[node name="Health" parent="." instance=ExtResource("19_u7yi8")]
+entityPath = NodePath("..")
+spritePath = NodePath("../AnimatedSprite2D")
+health = 1
+
+[node name="Detection" type="Area2D" parent="."]
+collision_layer = 64
+collision_mask = 2
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="Detection"]
+position = Vector2(0, -8)
+shape = SubResource("CircleShape2D_ymwt3")
+
+[connection signal="body_entered" from="Detection" to="." method="_on_detection_body_entered"]