small collision bug fixes

This commit is contained in:
Yannik
2023-04-11 16:31:54 +02:00
parent f149fa7c53
commit 15b938e0a0
3 changed files with 8 additions and 6 deletions

View File

@@ -11,6 +11,7 @@
[node name="dialog_bubble" type="CanvasLayer"]
process_mode = 4
script = ExtResource("1_xtj1q")
eventBeginAnswers = {}
metadata/_edit_use_anchors_ = true
[node name="typewriter_audio_stream" type="AudioStreamPlayer" parent="."]

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" path="res://src/scene-scripts/player.cs" id="1_qehox"]
[ext_resource type="Texture2D" uid="uid://olceowuycu8c" path="res://assets/textures/debug/dummy-player-atlas.png" id="2_yu1q5"]
[ext_resource type="PackedScene" uid="uid://bkm7365u1mm3o" path="res://scenes/gui/dialog_bubble.tscn" id="3_8f573"]
[ext_resource type="PackedScene" uid="uid://cqfthyrbb8k6v" path="res://scenes/gui/dialog_bubble.tscn" id="3_8f573"]
[sub_resource type="AtlasTexture" id="AtlasTexture_068kt"]
atlas = ExtResource("2_yu1q5")
@@ -128,7 +128,7 @@ metadata/_edit_lock_ = true
visible = false
[node name="collision_shape" type="CollisionShape2D" parent="."]
position = Vector2(0, 35)
position = Vector2(0, 34)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_38v5o")

View File

@@ -36,7 +36,7 @@ animations = [{
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_e6mi3"]
radius = 7.0
radius = 6.0
height = 40.0
[node name="slime" type="CharacterBody2D" groups=["enemies"]]
@@ -48,14 +48,15 @@ floor_constant_speed = true
script = ExtResource("1_l1742")
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
position = Vector2(0, 19)
position = Vector2(0, 24)
sprite_frames = SubResource("SpriteFrames_bwr2v")
frame_progress = 0.348187
[node name="collision_shape_2d" type="CollisionShape2D" parent="."]
position = Vector2(0, 27)
position = Vector2(0, 33)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_e6mi3")
[node name="visible_notifier_2d" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-25, 0, 50, 40)
position = Vector2(0, 9)
rect = Rect2(-25, 0, 50, 30)