Mejoras en el manejo del personaje, enemigo de pruebas

This commit is contained in:
ankdev committed 2026-10-01 16:39:07 +02:00
1 parent 1b797a3e90
commit e93efc533b
21 files changed
+774 -85

No files matched your search

+8 -5
View File
@@ -5,8 +5,8 @@
[sub_resource type="RectangleShape2D" id="BodyShape"]
size = Vector2(42, 78)
[sub_resource type="RectangleShape2D" id="ContactShape"]
size = Vector2(58, 88)
[sub_resource type="RectangleShape2D" id="AttackShape"]
size = Vector2(50, 60)
[node name="Walker" type="CharacterBody2D"]
collision_layer = 4
@@ -26,17 +26,20 @@ monitorable = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
shape = SubResource("BodyShape")
[node name="ContactHitbox" type="Area2D" parent="."]
[node name="AttackHitbox" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 8
monitoring = true
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="ContactHitbox"]
shape = SubResource("ContactShape")
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackHitbox"]
shape = SubResource("AttackShape")
[node name="FloorProbe" type="RayCast2D" parent="."]
position = Vector2(24, 34)
target_position = Vector2(0, 34)
collision_mask = 1
enabled = true
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-32, -48, 64, 96)