Plus de feux rouges et des portes qui vont vivre

Et oui du nouveau encore!
This commit is contained in:
Thomas
2025-02-24 21:44:52 +01:00
parent 725584c477
commit 65a74f0845
14 changed files with 4212 additions and 97 deletions

View File

@@ -61,3 +61,15 @@ position = Vector2(-1, 37)
position = Vector2(1, -13)
shape = SubResource("RectangleShape2D_1kv0e")
target_position = Vector2(0, -48)
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, 43)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_a4vmx")
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]

View File

@@ -34,3 +34,6 @@ func _physics_process(delta):
last_facing_direction = velocity.normalized()
updateFacingDirectionInAnimationTree()
func _on_area_2d_body_entered(body: Node2D) -> void:
print(body)