summaryrefslogtreecommitdiff
path: root/Scenes/Entities/Enemies
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-05-03 13:59:15 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-05-03 13:59:15 +0200
commit8c0e8b5bf73caaf2fd6f04fb97b9c13f2970c431 (patch)
tree990b6e09eb2f6b3cb494cca17726ceae1bc7891f /Scenes/Entities/Enemies
parent516d22c1737a9c94026b5ff0c9856bc5549aa416 (diff)
update
Diffstat (limited to 'Scenes/Entities/Enemies')
-rw-r--r--Scenes/Entities/Enemies/Flower.tscn2
-rw-r--r--Scenes/Entities/Enemies/Flowers.gd2
-rw-r--r--Scenes/Entities/Enemies/Slime.tscn4
3 files changed, 6 insertions, 2 deletions
diff --git a/Scenes/Entities/Enemies/Flower.tscn b/Scenes/Entities/Enemies/Flower.tscn
index 71f61e9..e67f9ee 100644
--- a/Scenes/Entities/Enemies/Flower.tscn
+++ b/Scenes/Entities/Enemies/Flower.tscn
@@ -100,6 +100,7 @@ collision_mask = 184
script = ExtResource("1_0uei7")
[node name="Body" type="Node2D" parent="."]
+position = Vector2(0, 5)
metadata/_edit_group_ = true
[node name="Bottom" type="AnimatedSprite2D" parent="Body"]
@@ -112,6 +113,7 @@ position = Vector2(0, -8)
sprite_frames = SubResource("SpriteFrames_sokwy")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+visible = false
position = Vector2(0, -6)
shape = SubResource("CapsuleShape2D_tq41g")
diff --git a/Scenes/Entities/Enemies/Flowers.gd b/Scenes/Entities/Enemies/Flowers.gd
index d18a244..5f8e974 100644
--- a/Scenes/Entities/Enemies/Flowers.gd
+++ b/Scenes/Entities/Enemies/Flowers.gd
@@ -20,7 +20,7 @@ var flowers: Array = []
func _ready():
$Timer.wait_time = mode_duration
- $CollisionShape2D.shape.radius = max_radius + 16 # + tile width
+ $CollisionShape2D.shape.radius = max_radius + 16*0.5 # + tile width * 0.5
var FlowerScene = preload("res://Scenes/Entities/Enemies/Flower.tscn")
diff --git a/Scenes/Entities/Enemies/Slime.tscn b/Scenes/Entities/Enemies/Slime.tscn
index 50927b3..558b736 100644
--- a/Scenes/Entities/Enemies/Slime.tscn
+++ b/Scenes/Entities/Enemies/Slime.tscn
@@ -15,7 +15,7 @@
[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
+radius = 6.0
[sub_resource type="SpriteFrames" id="SpriteFrames_4e1a7"]
animations = [{
@@ -71,10 +71,12 @@ 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="Movement" parent="." instance=ExtResource("6_u48ct")]