diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 14:24:09 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-07-19 14:24:09 +0200 |
commit | 294f87adb4441ec25316601505ca1a7e97fa24c7 (patch) | |
tree | e48ed54e97f19ae5dd189ee42ddb73c4e995175f /Scenes/Entities/Enemies/Slime.tscn | |
parent | 06647b11ee163bc40daf454d87e1fcae563c3ced (diff) |
update
Diffstat (limited to 'Scenes/Entities/Enemies/Slime.tscn')
-rw-r--r-- | Scenes/Entities/Enemies/Slime.tscn | 17 |
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")] |