add hitboxes

This commit is contained in:
2024-06-09 19:22:49 +02:00
parent e7a3167e60
commit 6d78598711
8 changed files with 136 additions and 25 deletions

View File

@@ -22,3 +22,12 @@ func _physics_process(delta):
var movement = MOVEMENT_VECTORS[randi() % 4]
move_and_collide(movement * 2)
pass
func _on_Hitbox_area_entered(area):
pass # Replace with function body.
func _on_Hurtbox_area_entered(area):
queue_free()
pass # Replace with function body.