summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies/Slime.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/Slime.tscn
parentc8a316e4b8987dad963656a34665fa0e23dedcb1 (diff)
update
Diffstat (limited to 'Scenes/Entities/Enemies/Slime.tscn')
-rw-r--r--Scenes/Entities/Enemies/Slime.tscn68
1 files changed, 68 insertions, 0 deletions
diff --git a/Scenes/Entities/Enemies/Slime.tscn b/Scenes/Entities/Enemies/Slime.tscn
new file mode 100644
index 0000000..f30d161
--- /dev/null
+++ b/Scenes/Entities/Enemies/Slime.tscn
@@ -0,0 +1,68 @@
+[gd_scene load_steps=11 format=3 uid="uid://d3evry1ketf0s"]
+
+[ext_resource type="Script" path="res://Scenes/Entities/Enemies/Slime.gd" id="1_2xftl"]
+[ext_resource type="Texture2D" uid="uid://ca7oars0vec8k" path="res://Assets/Enemies/Slime_death.png" id="2_mqou3"]
+[ext_resource type="Texture2D" uid="uid://b88dvu2ridy4t" path="res://Assets/Enemies/Slime_01.png" id="3_20mej"]
+[ext_resource type="Texture2D" uid="uid://bndhg7wom64mq" path="res://Assets/Enemies/Slime_02.png" id="4_r6mjl"]
+[ext_resource type="Texture2D" uid="uid://dh7vaujrw6i26" path="res://Assets/Enemies/Slime_03.png" id="5_mm7vy"]
+[ext_resource type="PackedScene" uid="uid://cq7yj2av01tqd" path="res://Scenes/Entities/Enemies/Components/Movement.tscn" id="6_u48ct"]
+[ext_resource type="PackedScene" uid="uid://ce3vv2pod6auc" path="res://Scenes/Entities/Enemies/Components/Collision.tscn" id="7_kjjor"]
+[ext_resource type="PackedScene" uid="uid://b3i372vgdbxk" path="res://Scenes/Entities/Enemies/Components/Health.tscn" id="8_klsy3"]
+
+[sub_resource type="CircleShape2D" id="CircleShape2D_f54tg"]
+radius = 7.0
+
+[sub_resource type="SpriteFrames" id="SpriteFrames_4e1a7"]
+animations = [{
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("2_mqou3")
+}],
+"loop": false,
+"name": &"death",
+"speed": 2.0
+}, {
+"frames": [{
+"duration": 1.0,
+"texture": ExtResource("3_20mej")
+}, {
+"duration": 1.0,
+"texture": ExtResource("4_r6mjl")
+}, {
+"duration": 1.0,
+"texture": ExtResource("3_20mej")
+}, {
+"duration": 1.0,
+"texture": ExtResource("5_mm7vy")
+}],
+"loop": true,
+"name": &"default",
+"speed": 8.0
+}]
+
+[node name="Slime" type="CharacterBody2D"]
+collision_layer = 16
+collision_mask = 188
+script = ExtResource("1_2xftl")
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource("CircleShape2D_f54tg")
+
+[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
+sprite_frames = SubResource("SpriteFrames_4e1a7")
+
+[node name="Movement" parent="." instance=ExtResource("6_u48ct")]
+entityPath = NodePath("..")
+spritePath = NodePath("../AnimatedSprite2D")
+SPEED = 12
+timer_time = 5.0
+
+[node name="Collision" parent="." instance=ExtResource("7_kjjor")]
+entityPath = NodePath("..")
+collision_shape_path = NodePath("../CollisionShape2D")
+component_health_path = NodePath("../Health")
+
+[node name="Health" parent="." instance=ExtResource("8_klsy3")]
+entityPath = NodePath("..")
+spritePath = NodePath("../AnimatedSprite2D")
+health = 1