diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
commit | 8c0e8b5bf73caaf2fd6f04fb97b9c13f2970c431 (patch) | |
tree | 990b6e09eb2f6b3cb494cca17726ceae1bc7891f /Scenes/Entities | |
parent | 516d22c1737a9c94026b5ff0c9856bc5549aa416 (diff) |
update
Diffstat (limited to 'Scenes/Entities')
-rw-r--r-- | Scenes/Entities/Enemies/Flower.tscn | 2 | ||||
-rw-r--r-- | Scenes/Entities/Enemies/Flowers.gd | 2 | ||||
-rw-r--r-- | Scenes/Entities/Enemies/Slime.tscn | 4 | ||||
-rw-r--r-- | Scenes/Entities/Objects/Wood.tscn | 2 |
4 files changed, 7 insertions, 3 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")] diff --git a/Scenes/Entities/Objects/Wood.tscn b/Scenes/Entities/Objects/Wood.tscn index 23ba656..d9cd90e 100644 --- a/Scenes/Entities/Objects/Wood.tscn +++ b/Scenes/Entities/Objects/Wood.tscn @@ -4,7 +4,6 @@ [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_1je2f"] radius = 7.0 -height = 60.0 [node name="Wood" type="StaticBody2D"] z_index = -1 @@ -14,6 +13,7 @@ collision_mask = 30 [node name="Sprite2D" type="Sprite2D" parent="."] texture_filter = 1 +scale = Vector2(1, 0.5) texture = ExtResource("1_khy0w") region_enabled = true region_rect = Rect2(912, 0, 16, 64) |