summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies/Slime.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Scenes/Entities/Enemies/Slime.tscn')
-rw-r--r--Scenes/Entities/Enemies/Slime.tscn17
1 files changed, 8 insertions, 9 deletions
diff --git a/Scenes/Entities/Enemies/Slime.tscn b/Scenes/Entities/Enemies/Slime.tscn
index 558b736..dcaaf52 100644
--- a/Scenes/Entities/Enemies/Slime.tscn
+++ b/Scenes/Entities/Enemies/Slime.tscn
@@ -14,9 +14,6 @@
[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 = 6.0
-
[sub_resource type="SpriteFrames" id="SpriteFrames_4e1a7"]
animations = [{
"frames": [{
@@ -65,24 +62,26 @@ animations = [{
"speed": 8.0
}]
+[sub_resource type="CircleShape2D" id="CircleShape2D_f54tg"]
+radius = 6.0
+
[node name="Slime" type="CharacterBody2D"]
collision_layer = 16
collision_mask = 188
script = ExtResource("1_2xftl")
-[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
-position = Vector2(0, -6)
-shape = SubResource("CircleShape2D_f54tg")
-
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
-position = Vector2(0, -6.25)
sprite_frames = SubResource("SpriteFrames_4e1a7")
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource("CircleShape2D_f54tg")
+
[node name="Movement" parent="." instance=ExtResource("6_u48ct")]
entityPath = NodePath("..")
spritePath = NodePath("../AnimatedSprite2D")
-SPEED = 12
+component_collision_path = NodePath("../Collision")
+SPEED = 1.0
timer_time = 5.0
[node name="Collision" parent="." instance=ExtResource("7_kjjor")]